summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-09-15 23:36:12 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-09-15 23:36:12 +0000
commite5c68bdac0809127699b3f3f74f6931c4013d464 (patch)
tree99b7f5f52d21c141d8ba7bfd44ef1a9ee8e7b30e
parentc8b2e5bde17e5521fa7d65f7e5f7ad9d67c18513 (diff)
Reset the sysfail led on thecus, so that it doesn't blink
(machines with older firmware). yes deraadt@
-rw-r--r--sys/arch/armish/dev/i80321_mainbus.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/armish/dev/i80321_mainbus.c b/sys/arch/armish/dev/i80321_mainbus.c
index e4b14c2ee2f..ce711aac6fd 100644
--- a/sys/arch/armish/dev/i80321_mainbus.c
+++ b/sys/arch/armish/dev/i80321_mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i80321_mainbus.c,v 1.9 2006/08/01 22:22:20 kettenis Exp $ */
+/* $OpenBSD: i80321_mainbus.c,v 1.10 2006/09/15 23:36:11 drahn Exp $ */
/* $NetBSD: i80321_mainbus.c,v 1.16 2005/12/15 01:44:00 briggs Exp $ */
/*
@@ -365,6 +365,14 @@ i80321_mainbus_attach(struct device *parent, struct device *self, void *aux)
PLD_BTN));
#endif
}
+ {
+ extern struct cfdriver pcaled_cd;
+ void pcaled_gpio_pin_write(void *arg, int pin, int value);
+ if (pcaled_cd.cd_ndevs > 0 && pcaled_cd.cd_devs[0] != NULL) {
+ pcaled_gpio_pin_write(pcaled_cd.cd_devs[0], 13, 0);
+ pcaled_gpio_pin_write(pcaled_cd.cd_devs[0], 14, 0);
+ }
+ }
}
void