1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Rafaël Carré 2008-11-16 22:36:13 +00:00
parent d3e783b268
commit aeb60e20a3

View file

@ -241,7 +241,13 @@ void system_init(void)
/* enable VIC */ /* enable VIC */
CGU_PERI |= CGU_VIC_CLOCK_ENABLE; CGU_PERI |= CGU_VIC_CLOCK_ENABLE;
VIC_INT_SELECT = 0; /* only IRQ, no FIQ */ 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) void system_reboot(void)