summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-09-17 13:25:29 +0800
committerTerry Lv <r65388@freescale.com>2010-09-20 13:25:43 +0800
commite71b1b9ced8b2478446d931a47a94296b72b833b (patch)
tree2d37cd7b8d23fbc1cf79686ba2dfa7471ede0992
parent71ba5d33991342c566b92961b5c98e99861e20c0 (diff)
downloadu-boot-imx-e71b1b9ced8b2478446d931a47a94296b72b833b.zip
u-boot-imx-e71b1b9ced8b2478446d931a47a94296b72b833b.tar.gz
u-boot-imx-e71b1b9ced8b2478446d931a47a94296b72b833b.tar.bz2
ENGR00131662: Fix that iram boot don't work
iram boot don't work. The reason is that ivt plugins copy too much data than that iram can hold. Signed-off-by: Terry Lv <r65388@freescale.com>
-rw-r--r--board/freescale/mx50_arm2/flash_header.S10
-rw-r--r--include/configs/mx50_arm2_iram.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/board/freescale/mx50_arm2/flash_header.S b/board/freescale/mx50_arm2/flash_header.S
index 8b0edca..94549bb 100644
--- a/board/freescale/mx50_arm2/flash_header.S
+++ b/board/freescale/mx50_arm2/flash_header.S
@@ -39,7 +39,7 @@ self_ptr: .long 0xF8006400
app_code_csf: .long 0x0 /* reserve 4K for csf */
reserv2: .long 0x0
boot_data: .long 0xF8006000
-image_len: .long 8*1024 /* Can copy upto 72K, OCRAM free space */
+image_len: .long 4*1024 /* Can copy upto 72K, OCRAM free space */
plugin: .long 0x1 /* Enable plugin flag */
/* Second IVT to give entry point into the bootloader copied to DDR */
@@ -1166,10 +1166,10 @@ after_calling_rom___pu_irom_hwcnfg_setup:
mov r0, #1
bx lr /* return back to ROM code */
-DDR_DEST_ADDR: .word 0x77800000
-COPY_SIZE: .word 0x40000
-BOOT_DATA: .word 0x77800000
- .word 0x40000 /*data be copied by pu_irom_hwcnfg_setup()*/
+DDR_DEST_ADDR: .word TEXT_BASE
+COPY_SIZE: .word _end - TEXT_BASE
+BOOT_DATA: .word TEXT_BASE
+ .word _end - TEXT_BASE /*data be copied by pu_irom_hwcnfg_setup()*/
.word 0
#endif
diff --git a/include/configs/mx50_arm2_iram.h b/include/configs/mx50_arm2_iram.h
index 0e7f4b4..a0a5e99 100644
--- a/include/configs/mx50_arm2_iram.h
+++ b/include/configs/mx50_arm2_iram.h
@@ -41,7 +41,7 @@
*/
#define CONFIG_MX50_HCLK_FREQ 24000000
-#define CONFIG_SYS_PLL2_FREQ 600
+#define CONFIG_SYS_PLL2_FREQ 400
#define CONFIG_SYS_AHB_PODF 4
#define CONFIG_SYS_AXIA_PODF 1
#define CONFIG_SYS_AXIB_PODF 2