summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-09-02 20:19:12 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-09-02 20:19:12 +0000
commitd88094daa4a7b33f1713a2715823cd845d12a298 (patch)
treef61f499c59ee818304076e4529718e35019ba0c4
parent95c62a28f9d9491fbe7c2270d16b52a40cb746d7 (diff)
downloadrockbox-d88094daa4a7b33f1713a2715823cd845d12a298.tar.gz
rockbox-d88094daa4a7b33f1713a2715823cd845d12a298.tar.bz2
rockbox-d88094daa4a7b33f1713a2715823cd845d12a298.zip
set PWRON bit to 1 so the player doesn't turn off immediately (should work on M6SL and M3, not sure about the others)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18386 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/crt0.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8700/crt0.S b/firmware/target/arm/s5l8700/crt0.S
index 17c41cbe4f..77582f17bd 100644
--- a/firmware/target/arm/s5l8700/crt0.S
+++ b/firmware/target/arm/s5l8700/crt0.S
@@ -39,6 +39,18 @@ start:
newstart:
msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */
+ /* set PWRON to 1 */
+ ldr r1, =0x3CF00014
+ ldr r2, [r1]
+ orr r2, r2, #0x8
+ str r2, [r1]
+
+ ldr r1, =0x3CF00010
+ ldr r2, [r1]
+ bic r2, r2, #0xf000
+ orr r2, r2, #0x1000
+ str r2, [r1]
+
/* Initialise bss section to zero */
ldr r2, =_edata
ldr r3, =_end