freemyipod r196 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r195‎ | r196 | r197 >
Date:17:38, 5 September 2010
Author:theseven
Status:new
Tags:
Comment:
Wait a bit after initializing the PMU before initializing the backlight, seems to prevent a sudden power-off.
Modified paths:
  • /apps/installer-nano2g/bootstub/bootstub.S (modified) (history)
  • /embios/trunk/loader/ipodnano2g/main.S (modified) (history)

Diff [purge]

Index: apps/installer-nano2g/bootstub/bootstub.S
@@ -50,7 +50,7 @@
5151
5252 cacheflush_done:
5353 adr r0, _start
54 - adr r1, _stubend + 16 @ should be +4, increased to make it fit into a shifter arg
 54+ adr r1, _stubend + 4
5555 mov r2, #0x22000000
5656 copyloop:
5757 cmp r1, r0
@@ -169,7 +169,6 @@
170170 .byte 9, 0x13, 3, 0, 0, 7, 0, 5, 2, 0x6b, 0
171171 .byte 4, 0x1e, 0x12, 1, 0, 0x10
172172 .byte 6, 0x22, 0x2f, 1, 0, 0x10, 9, 1
173 - .byte 1, 0x2a, 6
174173 .byte 6, 0x31, 0x15, 1, 0x0f, 3, 0x15, 0
175174 .byte 1, 0x43, 0
176175 .byte 1, 0x4e, 0
@@ -321,6 +320,10 @@
322321 orr r0, r0, #0x1000
323322 mcr p15, 0, r0,c1,c0 @ Re-enable the Protection Unit and caches
324323 mov r0, #0xe6
 324+ mov r1, #0x2a
 325+ mov r2, #6
 326+ bl i2csendbyte
 327+ mov r0, #0xe6
325328 mov r1, #0x2b
326329 mov r2, #4
327330 bl i2csendbyte
Index: embios/trunk/loader/ipodnano2g/main.S
@@ -160,7 +160,6 @@
161161 .byte 9, 0x13, 3, 0, 0, 7, 0, 5, 2, 0x6b, 0
162162 .byte 4, 0x1e, 0x12, 1, 0, 0x10
163163 .byte 6, 0x22, 0x2f, 1, 0, 0x10, 9, 1
164 - .byte 1, 0x2a, 6
165164 .byte 6, 0x31, 0x15, 1, 0x0f, 3, 0x15, 0
166165 .byte 1, 0x43, 0
167166 .byte 1, 0x4e, 0
@@ -335,6 +334,10 @@
336335 str r11, [sp]
337336 bl displaylcd
338337 mov r0, #0xe6
 338+ mov r1, #0x2a
 339+ mov r2, #6
 340+ bl i2csendbyte
 341+ mov r0, #0xe6
339342 mov r1, #0x2b
340343 mov r2, #4
341344 bl i2csendbyte