summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2008-03-04 13:52:07 +0000
committerBarry Wardell <rockbox@barrywardell.net>2008-03-04 13:52:07 +0000
commitfdb5a4b0c242b394fc79c9240be0863ca5b6194c (patch)
tree83b0e601e5b9eae55f356ff14fa0f5f88be776f2 /firmware
parent52df7addcf3d60b4955b0ce8bfc8955e4d33b933 (diff)
downloadrockbox-fdb5a4b0c242b394fc79c9240be0863ca5b6194c.tar.gz
rockbox-fdb5a4b0c242b394fc79c9240be0863ca5b6194c.zip
FS#8272 - Erratic reboot behaviour on sansa e200. Makes reboot on USB connect work consistently.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16512 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/system-pp502x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 3dd802a3ed..27d11aa815 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -427,8 +427,6 @@ void system_reboot(void)
427#if defined(SANSA_E200) || defined(SANSA_C200) 427#if defined(SANSA_E200) || defined(SANSA_C200)
428 CACHE_CTL &= ~CACHE_CTL_VECT_REMAP; 428 CACHE_CTL &= ~CACHE_CTL_VECT_REMAP;
429 429
430 pp_i2c_send(AS3514_I2C_ADDR, DCDC15, 0x0); /* backlight off */
431
432 /* Magic used by the c200 OF: 0x23066000 430 /* Magic used by the c200 OF: 0x23066000
433 Magic used by the c200 BL: 0x23066b7b 431 Magic used by the c200 BL: 0x23066b7b
434 In both cases, the OF executes these 2 commands from iram. */ 432 In both cases, the OF executes these 2 commands from iram. */
@@ -437,6 +435,8 @@ void system_reboot(void)
437#else 435#else
438 DEV_RS |= DEV_SYSTEM; 436 DEV_RS |= DEV_SYSTEM;
439#endif 437#endif
438 /* wait until reboot kicks in */
439 while (1);
440} 440}
441 441
442int system_memory_guard(int newmode) 442int system_memory_guard(int newmode)