summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2010-11-04 14:07:21 -0500
committerTerry Lv <r65388@freescale.com>2010-12-01 18:02:07 +0800
commit48457509cdc009fddcdad859f3d5fc9a75eb9024 (patch)
treedd37f588b63476167e7dcc35bc941936bc87ad47 /board/freescale
parent7a9a5e1d912fbdcdf80b51a60dfd45214f65ddc8 (diff)
downloadu-boot-imx-48457509cdc009fddcdad859f3d5fc9a75eb9024.zip
u-boot-imx-48457509cdc009fddcdad859f3d5fc9a75eb9024.tar.gz
u-boot-imx-48457509cdc009fddcdad859f3d5fc9a75eb9024.tar.bz2
ENGR00133437 MX50 Uboot support for TO 1.1.1 precode
Precoding: Update DDR configuration plugin to check SI Rev and change ROM addresses as needed. Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx50_arm2/flash_header.S10
-rw-r--r--board/freescale/mx50_arm2/mx50_arm2.c13
-rw-r--r--board/freescale/mx50_rdp/flash_header.S13
-rw-r--r--board/freescale/mx50_rdp/mx50_rdp.c13
4 files changed, 42 insertions, 7 deletions
diff --git a/board/freescale/mx50_arm2/flash_header.S b/board/freescale/mx50_arm2/flash_header.S
index 94549bb..055d947 100644
--- a/board/freescale/mx50_arm2/flash_header.S
+++ b/board/freescale/mx50_arm2/flash_header.S
@@ -1139,14 +1139,20 @@ wait_pll1_lock:
* Final image size on exit.
* boot_data - Initial @ref ivt Boot Data load address.
*/
+ ldr r0, =ROM_SI_REV
+ ldr r1, [r0]
+ cmp r1, #0x11
+
adr r0, DDR_DEST_ADDR
adr r1, COPY_SIZE
adr r2, BOOT_DATA
before_calling_rom___pu_irom_hwcnfg_setup:
mov r4, #0x2a00
- add r4, r4, #0x19
- blx r4 // This address might change in future ROM versions
+ /* Different ROM address for TO 1.0 & TO 1.1.1 */
+ addeq r4, r4, #0xad
+ addne r4, r4, #0x19
+ blx r4
after_calling_rom___pu_irom_hwcnfg_setup:
diff --git a/board/freescale/mx50_arm2/mx50_arm2.c b/board/freescale/mx50_arm2/mx50_arm2.c
index 5b3a8e1..08e8051 100644
--- a/board/freescale/mx50_arm2/mx50_arm2.c
+++ b/board/freescale/mx50_arm2/mx50_arm2.c
@@ -116,7 +116,18 @@ u32 get_board_rev(void)
static inline void setup_soc_rev(void)
{
- system_rev = 0x50000 | CHIP_REV_1_0;
+ int reg = __REG(ROM_SI_REV);
+
+ switch (reg) {
+ case 0x10:
+ system_rev = 0x50000 | CHIP_REV_1_0;
+ break;
+ case 0x11:
+ system_rev = 0x50000 | CHIP_REV_1_1_1;
+ break;
+ default:
+ system_rev = 0x50000 | CHIP_REV_1_1_1;
+ }
}
static inline void setup_board_rev(int rev)
diff --git a/board/freescale/mx50_rdp/flash_header.S b/board/freescale/mx50_rdp/flash_header.S
index 38ad560..530a079 100644
--- a/board/freescale/mx50_rdp/flash_header.S
+++ b/board/freescale/mx50_rdp/flash_header.S
@@ -576,15 +576,22 @@ delay1:
* Final image size on exit.
* boot_data - Initial @ref ivt Boot Data load address.
*/
+
+ ldr r0, =ROM_SI_REV
+ ldr r1, [r0]
+ cmp r1, #0x11
+
adr r0, DDR_DEST_ADDR
adr r1, COPY_SIZE
adr r2, BOOT_DATA
before_calling_rom___pu_irom_hwcnfg_setup:
mov r3, #0x2a00
- add r3, r3, #0x19
- cmp r4, #0xF8000000
- blxhi r3 // This address might change in future ROM versions
+ /* Different ROM address for TO 1.0 & TO 1.1.1 */
+ addeq r3, r3, #0xad
+ addne r3, r3, #0x19
+ cmp r4, #0xf8000000
+ blxhi r3
after_calling_rom___pu_irom_hwcnfg_setup:
pop {r0-r4, lr}
diff --git a/board/freescale/mx50_rdp/mx50_rdp.c b/board/freescale/mx50_rdp/mx50_rdp.c
index 0235441..924c7e6 100644
--- a/board/freescale/mx50_rdp/mx50_rdp.c
+++ b/board/freescale/mx50_rdp/mx50_rdp.c
@@ -112,7 +112,18 @@ u32 get_board_rev(void)
static inline void setup_soc_rev(void)
{
- system_rev = 0x50000 | CHIP_REV_1_0;
+ int reg = __REG(ROM_SI_REV);
+
+ switch (reg) {
+ case 0x10:
+ system_rev = 0x50000 | CHIP_REV_1_0;
+ break;
+ case 0x11:
+ system_rev = 0x50000 | CHIP_REV_1_1_1;
+ break;
+ default:
+ system_rev = 0x50000 | CHIP_REV_1_1_1;
+ }
}
static inline void setup_board_rev(int rev)