From fdb5a4b0c242b394fc79c9240be0863ca5b6194c Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Tue, 4 Mar 2008 13:52:07 +0000 Subject: 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 --- firmware/target/arm/system-pp502x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/arm/system-pp502x.c') 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) #if defined(SANSA_E200) || defined(SANSA_C200) CACHE_CTL &= ~CACHE_CTL_VECT_REMAP; - pp_i2c_send(AS3514_I2C_ADDR, DCDC15, 0x0); /* backlight off */ - /* Magic used by the c200 OF: 0x23066000 Magic used by the c200 BL: 0x23066b7b In both cases, the OF executes these 2 commands from iram. */ @@ -437,6 +435,8 @@ void system_reboot(void) #else DEV_RS |= DEV_SYSTEM; #endif + /* wait until reboot kicks in */ + while (1); } int system_memory_guard(int newmode) -- cgit v1.2.3