summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-07-06 14:46:19 +0000
committerThomas Martitz <kugel@rockbox.org>2009-07-06 14:46:19 +0000
commitcabd45086a206301302f99eaf80e381498a6e3fc (patch)
tree9617b30448696d2db873b21836d8518d817c1b6f
parent25fdcf3c148dd1ed208719e900a51ecc11f22c92 (diff)
downloadrockbox-cabd45086a206301302f99eaf80e381498a6e3fc.tar.gz
rockbox-cabd45086a206301302f99eaf80e381498a6e3fc.zip
sAMSa: Turn the backlight off before rebooting to avoid irritating lcd flash.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21692 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/system-as3525.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 60be7ddac0..e973354b8b 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -32,6 +32,7 @@
32#ifndef BOOTLOADER 32#ifndef BOOTLOADER
33#include "mmu-arm.h" 33#include "mmu-arm.h"
34#endif 34#endif
35#include "backlight-target.h"
35 36
36#define default_interrupt(name) \ 37#define default_interrupt(name) \
37 extern __attribute__((weak,alias("UIRQ"))) void name (void) 38 extern __attribute__((weak,alias("UIRQ"))) void name (void)
@@ -305,6 +306,7 @@ void system_init(void)
305 306
306void system_reboot(void) 307void system_reboot(void)
307{ 308{
309 _backlight_off();
308 /* use watchdog to reset */ 310 /* use watchdog to reset */
309 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); 311 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
310 WDT_LOAD = 1; /* set counter to 1 */ 312 WDT_LOAD = 1; /* set counter to 1 */