summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525
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 /firmware/target/arm/as3525
parentd3e783b268afd3ef9c96eaefaa0b3af5158b48a0 (diff)
downloadrockbox-aeb60e20a30bc53e1fc9bfe605cce167f6fb55b4.tar.gz
rockbox-aeb60e20a30bc53e1fc9bfe605cce167f6fb55b4.zip
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
Diffstat (limited to 'firmware/target/arm/as3525')
-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)
241 /* enable VIC */ 241 /* enable VIC */
242 CGU_PERI |= CGU_VIC_CLOCK_ENABLE; 242 CGU_PERI |= CGU_VIC_CLOCK_ENABLE;
243 VIC_INT_SELECT = 0; /* only IRQ, no FIQ */ 243 VIC_INT_SELECT = 0; /* only IRQ, no FIQ */
244#endif 244
245#else
246 /* disable fast hardware power-off, to use power button normally */
247 ascodec_init();
248 ascodec_write(AS3514_CVDD_DCDC3, ascodec_read(AS3514_CVDD_DCDC3) & (1<<2));
249
250#endif /* BOOTLOADER */
245} 251}
246 252
247void system_reboot(void) 253void system_reboot(void)