summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2008-11-22 17:05:36 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2008-11-22 17:05:36 +0000
commit1c115c2f30d8e245da8f01d78fbfeec62ae0945e (patch)
tree304037a629c0ff9faafdaccb57b5e989381dc972 /sys
parent7c8bd6b07b520b6cab268b9737cb3c788271536c (diff)
scoop is specific to zaurus, it should have some other mechansim to
make this associate, however ifdef zaurus it for now.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_com.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_com.c b/sys/arch/arm/xscale/pxa2x0_com.c
index 32b672e7dd0..fd9a8b634ef 100644
--- a/sys/arch/arm/xscale/pxa2x0_com.c
+++ b/sys/arch/arm/xscale/pxa2x0_com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_com.c,v 1.8 2008/05/15 22:17:08 brad Exp $ */
+/* $OpenBSD: pxa2x0_com.c,v 1.9 2008/11/22 17:05:35 drahn Exp $ */
/* $NetBSD: pxa2x0_com.c,v 1.4 2003/07/15 00:24:55 lukem Exp $ */
/*
@@ -158,8 +158,10 @@ pxauart_power(int why, void *arg)
switch (why) {
case PWR_SUSPEND:
case PWR_STANDBY:
+#ifdef __zaurus__
if (sc->enabled && ISSET(sc->sc_hwflags, COM_HW_SIR))
scoop_set_irled(0);
+#endif
break;
case PWR_RESUME:
if (sc->enabled) {
@@ -168,7 +170,9 @@ pxauart_power(int why, void *arg)
bus_space_write_1(iot, ioh, com_ier, sc->sc_ier);
if (ISSET(sc->sc_hwflags, COM_HW_SIR)) {
+#ifdef __zaurus__
scoop_set_irled(1);
+#endif
bus_space_write_1(iot, ioh, com_isr,
ISR_RECV);
}