Module Name: src
Committed By: macallan
Date: Tue Sep 20 05:57:11 UTC 2011
Modified Files:
src/sys/arch/evbmips/loongson: gdium_machdep.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbmips/loongson/gdium_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbmips/loongson/gdium_machdep.c
diff -u src/sys/arch/evbmips/loongson/gdium_machdep.c:1.2 src/sys/arch/evbmips/loongson/gdium_machdep.c:1.3
--- src/sys/arch/evbmips/loongson/gdium_machdep.c:1.2 Tue Sep 20 05:41:58 2011
+++ src/sys/arch/evbmips/loongson/gdium_machdep.c Tue Sep 20 05:57:11 2011
@@ -311,6 +311,8 @@
{
REGVAL(BONITO_GPIODATA) |= 0x00000002;
REGVAL(BONITO_GPIOIE) &= ~0x00000002;
+ printf("Powering down...\n");
+ while(1) delay(1000);
}
void