summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-11-16 22:36:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-11-16 22:36:13 +0000
commitaeb60e20a30bc53e1fc9bfe605cce167f6fb55b4 (patch)
treedf050f267db9f7c72b877c14f4ed826905b66a31
parentd3e783b268afd3ef9c96eaefaa0b3af5158b48a0 (diff)
Sansa AMS: when not in the bootloader, disable fast hardware power off
A button press of ~10s will trigger the hardware power off instead of ~1s git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19123 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/system-as3525.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index f42387d024..d6b042d539 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -241,7 +241,13 @@ void system_init(void)
/* enable VIC */
CGU_PERI |= CGU_VIC_CLOCK_ENABLE;
VIC_INT_SELECT = 0; /* only IRQ, no FIQ */
-#endif
+
+#else
+ /* disable fast hardware power-off, to use power button normally */
+ ascodec_init();
+ ascodec_write(AS3514_CVDD_DCDC3, ascodec_read(AS3514_CVDD_DCDC3) & (1<<2));
+
+#endif /* BOOTLOADER */
}
void system_reboot(void)