From aeb60e20a30bc53e1fc9bfe605cce167f6fb55b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 16 Nov 2008 22:36:13 +0000 Subject: 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 --- firmware/target/arm/as3525/system-as3525.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'firmware/target') 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) -- cgit v1.2.3