Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbmips/loongson wait after twiddling the gpio to p...



details:   https://anonhg.NetBSD.org/src/rev/76b471509ecc
branches:  trunk
changeset: 769719:76b471509ecc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Sep 20 05:57:11 2011 +0000

description:
wait after twiddling the gpio to power down, it takes a few seconds for it to
take effect. Without this we would run into gdium_reset() and reboot instead
of powering down.

diffstat:

 sys/arch/evbmips/loongson/gdium_machdep.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r fbd815a02c1a -r 76b471509ecc sys/arch/evbmips/loongson/gdium_machdep.c
--- a/sys/arch/evbmips/loongson/gdium_machdep.c Tue Sep 20 05:51:34 2011 +0000
+++ b/sys/arch/evbmips/loongson/gdium_machdep.c Tue Sep 20 05:57:11 2011 +0000
@@ -311,6 +311,8 @@
 {
        REGVAL(BONITO_GPIODATA) |= 0x00000002;
        REGVAL(BONITO_GPIOIE) &= ~0x00000002;
+       printf("Powering down...\n");
+       while(1) delay(1000);
 }
 
 void



Home | Main Index | Thread Index | Old Index