projects
/
oweals
/
u-boot_mod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a5cbe
)
Use BIT13 from BOOT_STRAP register for memory recognition
author
Piotr Dymacz
<pepe2k@gmail.com>
Tue, 3 Jun 2014 22:45:06 +0000
(
00:45
+0200)
committer
Piotr Dymacz
<pepe2k@gmail.com>
Tue, 3 Jun 2014 22:45:06 +0000
(
00:45
+0200)
u-boot/cpu/mips/ar7240/hornet_ddr_init.S
patch
|
blob
|
history
diff --git
a/u-boot/cpu/mips/ar7240/hornet_ddr_init.S
b/u-boot/cpu/mips/ar7240/hornet_ddr_init.S
index 49009d888fe3bf4d445849654119fb91a20cf8c9..ef572809056d334907022d103962a4f9b299ec08 100755
(executable)
--- a/
u-boot/cpu/mips/ar7240/hornet_ddr_init.S
+++ b/
u-boot/cpu/mips/ar7240/hornet_ddr_init.S
@@
-62,9
+62,9
@@
mem_type:
// 0x180600AC (BOOT_STRAP, p. 81)
li t8, 0xB80600AC // load BOOT_STRAP reg address
lw t9, 0(t8) // and its value
- li t8, 0x
1000 // 0x1000 -> BIT12
is set
+ li t8, 0x
2000 // 0x2000 -> BIT13
is set
and t9, t9, t8
- b
ne
t9, zero, ddr1_config // jump if we have DDR1
+ b
eq
t9, zero, ddr1_config // jump if we have DDR1
ddr2_config:
// Enable DDR2