summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2016-04-26 17:46:33 +0800
committerFrank Li <Frank.Li@nxp.com>2016-04-29 10:08:53 -0500
commitb47c715c5e5afb1f0468bf3052cc02203f91ad6a (patch)
tree885ca82861a7ffbd4527bed5f19d27a0698fe9bb
parentd7d7c4312b71dd3879fa8640b23f6a5bac30e303 (diff)
downloadu-boot-imx-b47c715c5e5afb1f0468bf3052cc02203f91ad6a.zip
u-boot-imx-b47c715c5e5afb1f0468bf3052cc02203f91ad6a.tar.gz
u-boot-imx-b47c715c5e5afb1f0468bf3052cc02203f91ad6a.tar.bz2
MLK-12705-1 ARM: imx: add support for i.MX7D TO1.2
i.MX7D TO1.2 uses same DDR script as TO1.0, TO1.1 uses dedicated DDR script. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
-rw-r--r--board/freescale/mx7d_12x12_ddr3_arm2/imximage.cfg13
-rw-r--r--board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_1.cfg (renamed from board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_0.cfg)13
-rw-r--r--board/freescale/mx7d_12x12_lpddr3_arm2/imximage.cfg5
-rw-r--r--board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_1.cfg (renamed from board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_0.cfg)5
-rw-r--r--board/freescale/mx7d_12x12_lpddr3_arm2/plugin.S6
-rw-r--r--board/freescale/mx7d_19x19_ddr3_arm2/imximage.cfg13
-rw-r--r--board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_1.cfg (renamed from board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_0.cfg)13
-rw-r--r--board/freescale/mx7d_19x19_lpddr3_arm2/imximage.cfg5
-rw-r--r--board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_1.cfg (renamed from board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_0.cfg)5
-rw-r--r--board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2.cfg7
-rw-r--r--board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_1.cfg (renamed from board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_0.cfg)7
-rw-r--r--board/freescale/mx7dsabresd/imximage.cfg13
-rw-r--r--board/freescale/mx7dsabresd/imximage_TO_1_1.cfg (renamed from board/freescale/mx7dsabresd/imximage_TO_1_0.cfg)13
13 files changed, 59 insertions, 59 deletions
diff --git a/board/freescale/mx7d_12x12_ddr3_arm2/imximage.cfg b/board/freescale/mx7d_12x12_ddr3_arm2/imximage.cfg
index c6ec80c..cbb8ce2 100644
--- a/board/freescale/mx7d_12x12_ddr3_arm2/imximage.cfg
+++ b/board/freescale/mx7d_12x12_ddr3_arm2/imximage.cfg
@@ -48,12 +48,6 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
-DATA 4 0x30360070 0x00703021
-DATA 4 0x30360090 0x0
-DATA 4 0x30360070 0x00603021
-CHECK_BITS_SET 4 0x30360070 0x80000000
-DATA 4 0x30389880 0x1
-
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -89,12 +83,7 @@ DATA 4 0x30391000 0x00000000
DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
-DATA 4 0x3079009c 0x00000dee
-DATA 4 0x3079007c 0x18181818
-DATA 4 0x30790080 0x18181818
-DATA 4 0x30790084 0x40401818
-DATA 4 0x30790088 0x00000040
-DATA 4 0x3079006c 0x40404040
+DATA 4 0x3079009c 0x00000d6e
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010
diff --git a/board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_0.cfg b/board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_1.cfg
index cbb8ce2..c6ec80c 100644
--- a/board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_0.cfg
+++ b/board/freescale/mx7d_12x12_ddr3_arm2/imximage_TO_1_1.cfg
@@ -48,6 +48,12 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
+DATA 4 0x30360070 0x00703021
+DATA 4 0x30360090 0x0
+DATA 4 0x30360070 0x00603021
+CHECK_BITS_SET 4 0x30360070 0x80000000
+DATA 4 0x30389880 0x1
+
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -83,7 +89,12 @@ DATA 4 0x30391000 0x00000000
DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
-DATA 4 0x3079009c 0x00000d6e
+DATA 4 0x3079009c 0x00000dee
+DATA 4 0x3079007c 0x18181818
+DATA 4 0x30790080 0x18181818
+DATA 4 0x30790084 0x40401818
+DATA 4 0x30790088 0x00000040
+DATA 4 0x3079006c 0x40404040
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010
diff --git a/board/freescale/mx7d_12x12_lpddr3_arm2/imximage.cfg b/board/freescale/mx7d_12x12_lpddr3_arm2/imximage.cfg
index 00a74f7..3c4ace4 100644
--- a/board/freescale/mx7d_12x12_lpddr3_arm2/imximage.cfg
+++ b/board/freescale/mx7d_12x12_lpddr3_arm2/imximage.cfg
@@ -92,11 +92,6 @@ DATA 4 0x30790000 0x17421e40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790008 0x00010000
DATA 4 0x30790010 0x0007080c
-DATA 4 0x3079007c 0x1c1c1c1c
-DATA 4 0x30790080 0x1c1c1c1c
-DATA 4 0x30790084 0x30301c1c
-DATA 4 0x30790088 0x00000030
-DATA 4 0x3079006c 0x30303030
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
diff --git a/board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_0.cfg b/board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_1.cfg
index 3c4ace4..00a74f7 100644
--- a/board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_0.cfg
+++ b/board/freescale/mx7d_12x12_lpddr3_arm2/imximage_TO_1_1.cfg
@@ -92,6 +92,11 @@ DATA 4 0x30790000 0x17421e40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790008 0x00010000
DATA 4 0x30790010 0x0007080c
+DATA 4 0x3079007c 0x1c1c1c1c
+DATA 4 0x30790080 0x1c1c1c1c
+DATA 4 0x30790084 0x30301c1c
+DATA 4 0x30790088 0x00000030
+DATA 4 0x3079006c 0x30303030
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
diff --git a/board/freescale/mx7d_12x12_lpddr3_arm2/plugin.S b/board/freescale/mx7d_12x12_lpddr3_arm2/plugin.S
index e80d7ed..0533055 100644
--- a/board/freescale/mx7d_12x12_lpddr3_arm2/plugin.S
+++ b/board/freescale/mx7d_12x12_lpddr3_arm2/plugin.S
@@ -230,7 +230,7 @@ TUNE_END:
cmp r7, #0x10
beq 2f
- /* TO1.1 */
+ /* from TO1.1 */
ldr r7, [r11]
bic r7, r7, #(1 << 27)
str r7, [r11]
@@ -266,8 +266,8 @@ TUNE_END:
ldr r7, [r1, #0x800]
and r7, r7, #0xFF
- cmp r7, #0x10
- beq 4f
+ cmp r7, #0x11
+ bne 4f
ldr r6, =0x7c
ldr r7, =0x1c1c1c1c
diff --git a/board/freescale/mx7d_19x19_ddr3_arm2/imximage.cfg b/board/freescale/mx7d_19x19_ddr3_arm2/imximage.cfg
index 29007f5..2d6c025 100644
--- a/board/freescale/mx7d_19x19_ddr3_arm2/imximage.cfg
+++ b/board/freescale/mx7d_19x19_ddr3_arm2/imximage.cfg
@@ -50,12 +50,6 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
-DATA 4 0x30360070 0x00703021
-DATA 4 0x30360090 0x0
-DATA 4 0x30360070 0x00603021
-CHECK_BITS_SET 4 0x30360070 0x80000000
-DATA 4 0x30389880 0x1
-
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -91,12 +85,7 @@ DATA 4 0x30391000 0x00000000
DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
-DATA 4 0x3079009c 0x00000dee
-DATA 4 0x3079007c 0x18181818
-DATA 4 0x30790080 0x18181818
-DATA 4 0x30790084 0x40401818
-DATA 4 0x30790088 0x00000040
-DATA 4 0x3079006c 0x40404040
+DATA 4 0x3079009c 0x00000d6e
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010
diff --git a/board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_0.cfg b/board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_1.cfg
index 2d6c025..29007f5 100644
--- a/board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_0.cfg
+++ b/board/freescale/mx7d_19x19_ddr3_arm2/imximage_TO_1_1.cfg
@@ -50,6 +50,12 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
+DATA 4 0x30360070 0x00703021
+DATA 4 0x30360090 0x0
+DATA 4 0x30360070 0x00603021
+CHECK_BITS_SET 4 0x30360070 0x80000000
+DATA 4 0x30389880 0x1
+
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -85,7 +91,12 @@ DATA 4 0x30391000 0x00000000
DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
-DATA 4 0x3079009c 0x00000d6e
+DATA 4 0x3079009c 0x00000dee
+DATA 4 0x3079007c 0x18181818
+DATA 4 0x30790080 0x18181818
+DATA 4 0x30790084 0x40401818
+DATA 4 0x30790088 0x00000040
+DATA 4 0x3079006c 0x40404040
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010
diff --git a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage.cfg b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage.cfg
index 253b7cd..dd16856 100644
--- a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage.cfg
+++ b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage.cfg
@@ -92,11 +92,6 @@ DATA 4 0x30790000 0x17421e40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790008 0x00010000
DATA 4 0x30790010 0x0007080c
-DATA 4 0x3079007c 0x1c1c1c1c
-DATA 4 0x30790080 0x1c1c1c1c
-DATA 4 0x30790084 0x30301c1c
-DATA 4 0x30790088 0x00000030
-DATA 4 0x3079006c 0x30303030
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
diff --git a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_0.cfg b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_1.cfg
index dd16856..253b7cd 100644
--- a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_0.cfg
+++ b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_TO_1_1.cfg
@@ -92,6 +92,11 @@ DATA 4 0x30790000 0x17421e40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790008 0x00010000
DATA 4 0x30790010 0x0007080c
+DATA 4 0x3079007c 0x1c1c1c1c
+DATA 4 0x30790080 0x1c1c1c1c
+DATA 4 0x30790084 0x30301c1c
+DATA 4 0x30790088 0x00000030
+DATA 4 0x3079006c 0x30303030
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
diff --git a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2.cfg b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2.cfg
index ab49d57..171d2ad 100644
--- a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2.cfg
+++ b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2.cfg
@@ -96,12 +96,7 @@ DATA 4 0x30790010 0x00050408
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
-DATA 4 0x3079009C 0x00000dee
-DATA 4 0x3079007c 0x08080808
-DATA 4 0x30790080 0x08080808
-DATA 4 0x30790084 0x0a0a0808
-DATA 4 0x30790088 0x0000000a
-DATA 4 0x3079006c 0x0a0a0a0a
+DATA 4 0x3079009C 0x00000d6e
DATA 4 0x30790018 0x0000000f
DATA 4 0x30790030 0x06060606
diff --git a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_0.cfg b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_1.cfg
index 171d2ad..ab49d57 100644
--- a/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_0.cfg
+++ b/board/freescale/mx7d_19x19_lpddr3_arm2/imximage_lpddr2_TO_1_1.cfg
@@ -96,7 +96,12 @@ DATA 4 0x30790010 0x00050408
DATA 4 0x307900b0 0x1010007e
DATA 4 0x3079001C 0x01010000
-DATA 4 0x3079009C 0x00000d6e
+DATA 4 0x3079009C 0x00000dee
+DATA 4 0x3079007c 0x08080808
+DATA 4 0x30790080 0x08080808
+DATA 4 0x30790084 0x0a0a0808
+DATA 4 0x30790088 0x0000000a
+DATA 4 0x3079006c 0x0a0a0a0a
DATA 4 0x30790018 0x0000000f
DATA 4 0x30790030 0x06060606
diff --git a/board/freescale/mx7dsabresd/imximage.cfg b/board/freescale/mx7dsabresd/imximage.cfg
index db4c939..11f113a 100644
--- a/board/freescale/mx7dsabresd/imximage.cfg
+++ b/board/freescale/mx7dsabresd/imximage.cfg
@@ -50,12 +50,6 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
-DATA 4 0x30360070 0x00703021
-DATA 4 0x30360090 0x0
-DATA 4 0x30360070 0x00603021
-CHECK_BITS_SET 4 0x30360070 0x80000000
-DATA 4 0x30389880 0x1
-
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -93,12 +87,7 @@ DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
DATA 4 0x307900b0 0x1010007e
-DATA 4 0x3079009c 0x00000dee
-DATA 4 0x3079007c 0x18181818
-DATA 4 0x30790080 0x18181818
-DATA 4 0x30790084 0x40401818
-DATA 4 0x30790088 0x00000040
-DATA 4 0x3079006c 0x40404040
+DATA 4 0x3079009c 0x00000d6e
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010
diff --git a/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg b/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg
index 11f113a..db4c939 100644
--- a/board/freescale/mx7dsabresd/imximage_TO_1_0.cfg
+++ b/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg
@@ -50,6 +50,12 @@ CSF CONFIG_CSF_SIZE
* value value to be stored in the register
*/
+DATA 4 0x30360070 0x00703021
+DATA 4 0x30360090 0x0
+DATA 4 0x30360070 0x00603021
+CHECK_BITS_SET 4 0x30360070 0x80000000
+DATA 4 0x30389880 0x1
+
DATA 4 0x30340004 0x4F400005
DATA 4 0x30391000 0x00000002
@@ -87,7 +93,12 @@ DATA 4 0x30790000 0x17420f40
DATA 4 0x30790004 0x10210100
DATA 4 0x30790010 0x00060807
DATA 4 0x307900b0 0x1010007e
-DATA 4 0x3079009c 0x00000d6e
+DATA 4 0x3079009c 0x00000dee
+DATA 4 0x3079007c 0x18181818
+DATA 4 0x30790080 0x18181818
+DATA 4 0x30790084 0x40401818
+DATA 4 0x30790088 0x00000040
+DATA 4 0x3079006c 0x40404040
DATA 4 0x30790020 0x08080808
DATA 4 0x30790030 0x08080808
DATA 4 0x30790050 0x01000010