Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev identify TAS3001 from i2c address if the...
details: https://anonhg.NetBSD.org/src/rev/110a5c41250c
branches: trunk
changeset: 459670:110a5c41250c
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Sep 20 17:25:11 2019 +0000
description:
identify TAS3001 from i2c address if there is no 'compatible' property
diffstat:
sys/arch/macppc/dev/deq.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r b837869644e8 -r 110a5c41250c sys/arch/macppc/dev/deq.c
--- a/sys/arch/macppc/dev/deq.c Fri Sep 20 15:25:19 2019 +0000
+++ b/sys/arch/macppc/dev/deq.c Fri Sep 20 17:25:11 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: deq.c,v 1.16 2018/06/26 06:03:57 thorpej Exp $ */
+/* $NetBSD: deq.c,v 1.17 2019/09/20 17:25:11 macallan Exp $ */
/*-
* Copyright (C) 2005 Michael Lorenz
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.16 2018/06/26 06:03:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: deq.c,v 1.17 2019/09/20 17:25:11 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -88,11 +88,14 @@
sc->sc_address = ia->ia_addr;
sc->sc_i2c = ia->ia_tag;
if (OF_getprop(sc->sc_node, "compatible", name, 256) <= 0) {
- /* deq has no 'compatible' on my iBook G4 */
+ /* deq has no 'compatible' on my iBook G4 or Quicksilver */
switch (sc->sc_address) {
case 0x35:
strcpy(name, "tas3004");
break;
+ case 0x34:
+ strcpy(name, "tas3001");
+ break;
default:
strcpy(name, "unknown");
}
Home |
Main Index |
Thread Index |
Old Index