summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2007-09-28 07:56:20 +0000
committerBjörn Stenberg <bjorn@haxx.se>2007-09-28 07:56:20 +0000
commit0a231de5360555d659328dcb0c224c1bac9509ca (patch)
tree71d9195ecb8d7de88cc206a69818d23171c84d1d
parentc13eba29ff5615cc74a7818e42cc9d464a7c7075 (diff)
downloadrockbox-0a231de5360555d659328dcb0c224c1bac9509ca.tar.gz
rockbox-0a231de5360555d659328dcb0c224c1bac9509ca.zip
Improved magic by Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14876 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/system-pp502x.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index a234edab8c..d17fb6d37a 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -258,9 +258,12 @@ void system_reboot(void)
258#ifdef SANSA_C200 258#ifdef SANSA_C200
259 CACHE_CTL &= ~0x10; 259 CACHE_CTL &= ~0x10;
260 260
261 /* Magic used by the c200 OF. The BL uses a magic value of 0x23066b7b. 261 pp_i2c_send( 0x46, 0x23, 0x0); /* backlight off */
262
263 /* Magic used by the c200 OF: 0x23066000
264 Magic used by the c200 BL: 0x23066b7b
262 In both cases, the OF executes these 2 commands from iram. */ 265 In both cases, the OF executes these 2 commands from iram. */
263 outl(0x23066000, 0x70000008); 266 outl(0x23066b7b, 0x70000008);
264 DEV_RS = DEV_SYSTEM; 267 DEV_RS = DEV_SYSTEM;
265#else 268#else
266 DEV_RS |= DEV_SYSTEM; 269 DEV_RS |= DEV_SYSTEM;