summaryrefslogtreecommitdiffstats
path: root/utils/rk27utils
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2014-07-23 12:32:16 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2014-07-23 12:32:16 +0200
commitdcd8172f4f3de41f163a0a0fdc79565074a32c44 (patch)
tree39833be24fafb9fcd135f032741173df29aa71d2 /utils/rk27utils
parent9fb65294fb8bd9cfcf3e830f82bf01c3afdbbcce (diff)
downloadrockbox-dcd8172f4f3de41f163a0a0fdc79565074a32c44.tar.gz
rockbox-dcd8172f4f3de41f163a0a0fdc79565074a32c44.tar.bz2
rockbox-dcd8172f4f3de41f163a0a0fdc79565074a32c44.zip
rk27load: fix stage1 dram config bug
Change-Id: I03d44dbd05fcd5dfc0e508020fae7006d8a97505
Diffstat (limited to 'utils/rk27utils')
-rw-r--r--utils/rk27utils/rk27load/stage1/main.S18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/rk27utils/rk27load/stage1/main.S b/utils/rk27utils/rk27load/stage1/main.S
index 6e2770b369..2564ad3cc4 100644
--- a/utils/rk27utils/rk27load/stage1/main.S
+++ b/utils/rk27utils/rk27load/stage1/main.S
@@ -52,11 +52,11 @@ col_loop:
add r5, r4, #8 /* col_num_bits */
mov r6, r3, lsl r5 /* offset to the col1 (1<<col_num_bits) */
mov r7, #0
- str r7, [r1] /* *(0x60000000) = 0 */
- str r1, [r1, r6] /* store test pattern in col1 addr */
- ldr r7, [r1]
+ str r7, [r2] /* *(0x60000000) = 0 */
+ str r1, [r2, r6] /* store test pattern in col1 addr */
+ ldr r7, [r2]
cmp r7, #0 /* check if beginning of dram is not touched */
- ldreq r7, [r1, r6] /* readback col1 addr */
+ ldreq r7, [r2, r6] /* readback col1 addr */
cmpeq r7, r1 /* check if test pattern is valid */
beq row_loop_setup /* quit column loop */
subs r4, #1
@@ -76,12 +76,12 @@ row_loop:
*/
mov r7, #0
- str r7, [r1] /* *(0x60000000) = 0 */
- str r2, [r1, lr] /* store test pattern */
- ldr r7, [r1]
+ str r7, [r2] /* *(0x60000000) = 0 */
+ str r2, [r2, lr] /* store test pattern */
+ ldr r7, [r2]
cmp r7, #0 /* check if beginning of dram is not touched */
- ldreq lr, [r1, lr] /* readback row1,col1 addr */
- cmpeq lr, r2 /* check if test pattern is valid */
+ ldreq lr, [r2, lr] /* readback row1,col1 addr */
+ cmpeq lr, r1 /* check if test pattern is valid */
beq end
subs r5, #1
bpl row_loop