summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
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 /firmware/target/arm
parent25fdcf3c148dd1ed208719e900a51ecc11f22c92 (diff)
downloadrockbox-cabd45086a206301302f99eaf80e381498a6e3fc.tar.gz
rockbox-cabd45086a206301302f99eaf80e381498a6e3fc.tar.bz2
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
Diffstat (limited to 'firmware/target/arm')
-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 @@
#ifndef BOOTLOADER
#include "mmu-arm.h"
#endif
+#include "backlight-target.h"
#define default_interrupt(name) \
extern __attribute__((weak,alias("UIRQ"))) void name (void)
@@ -305,6 +306,7 @@ void system_init(void)
void system_reboot(void)
{
+ _backlight_off();
/* use watchdog to reset */
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
WDT_LOAD = 1; /* set counter to 1 */