CS0: OneDRAM: 0x3000'0000 ~ 0x34FF'FFFF (80MiB)
CS1: Mobile DDR: 0x3800'0000 ~ 0x3FFF'FFFF (128MiB)
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
/*
* Note:
- * If Bank0 has OneDRAM we place it at 0x3800'0000 (s5pc100 only)
- * So finally Bank1 should address start at at 0x3000'0000
+ * If Bank0 has Mobile RAM we place it at 0x3800'0000 (s5pc100 only)
+ * So finally Bank1 OneDRAM should address start at at 0x3000'0000
*/
mov r4, #0x0
str r4, [r1]
ldr r2, [r1]
cmp r2, r4
- bne swap_memory
+ beq swap_memory
1:
mov pc, lr
setenv("meminfo", "mem=80M mem=128M@0x40000000");
setenv("mtdparts", MTDPARTS_DEFAULT_4KB);
} else {
+ setenv("meminfo", "mem=80M mem=128M@0x38000000");
setenv("bootk", "onenand read 0x30007FC0 0x60000 0x300000; bootm 0x30007FC0");
setenv("updatek", "onenand erase 0x60000 0x300000; onenand write 0x31008000 0x60000 0x300000");
}
"verify=n\0" \
"rootfstype=cramfs\0" \
"mtdparts=" MTDPARTS_DEFAULT "\0" \
- "meminfo=mem=208M\0" \
+ "meminfo=mem=80M mem=128M@0x40000000\0" \
"nfsroot=/nfsroot/arm\0" \
"bootblock=5\0" \
"ubiblock=4\0" \