summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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