diff options
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r-- | firmware/target/arm/system-pp502x.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c index 64153eefc4..a234edab8c 100644 --- a/firmware/target/arm/system-pp502x.c +++ b/firmware/target/arm/system-pp502x.c | |||
@@ -255,7 +255,16 @@ void system_init(void) | |||
255 | void system_reboot(void) | 255 | void system_reboot(void) |
256 | { | 256 | { |
257 | /* Reboot */ | 257 | /* Reboot */ |
258 | #ifdef SANSA_C200 | ||
259 | CACHE_CTL &= ~0x10; | ||
260 | |||
261 | /* Magic used by the c200 OF. The BL uses a magic value of 0x23066b7b. | ||
262 | In both cases, the OF executes these 2 commands from iram. */ | ||
263 | outl(0x23066000, 0x70000008); | ||
264 | DEV_RS = DEV_SYSTEM; | ||
265 | #else | ||
258 | DEV_RS |= DEV_SYSTEM; | 266 | DEV_RS |= DEV_SYSTEM; |
267 | #endif | ||
259 | } | 268 | } |
260 | 269 | ||
261 | int system_memory_guard(int newmode) | 270 | int system_memory_guard(int newmode) |