Commit c6e8f49a16915822ffe25904daf1fc9c28115ed4

Authored by Haijun.Zhang
Committed by York Sun
1 parent e0d809647f

powerpc/mpc8536DS:Increase binary size for mpc8536DS board

u-boot binary size for Freescale mpc8536DS platforms is 512KB.
This has been reached to upper limit of the platforms and causig
linker error. So increase the u-boot binary size to 768KB.

Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>

Showing 1 changed file with 3 additions and 7 deletions Side-by-side Diff

include/configs/MPC8536DS.h
... ... @@ -42,7 +42,7 @@
42 42 #endif
43 43  
44 44 #ifndef CONFIG_SYS_TEXT_BASE
45   -#define CONFIG_SYS_TEXT_BASE 0xeff80000
  45 +#define CONFIG_SYS_TEXT_BASE 0xeff40000
46 46 #endif
47 47  
48 48 #ifndef CONFIG_RESET_VECTOR_ADDRESS
... ... @@ -326,7 +326,7 @@
326 326  
327 327 /* NAND boot: 4K NAND loader config */
328 328 #define CONFIG_SYS_NAND_SPL_SIZE 0x1000
329   -#define CONFIG_SYS_NAND_U_BOOT_SIZE ((512 << 10) - 0x2000)
  329 +#define CONFIG_SYS_NAND_U_BOOT_SIZE ((768 << 10) - 0x2000)
330 330 #define CONFIG_SYS_NAND_U_BOOT_DST (CONFIG_SYS_INIT_L2_ADDR)
331 331 #define CONFIG_SYS_NAND_U_BOOT_START \
332 332 (CONFIG_SYS_INIT_L2_ADDR + CONFIG_SYS_NAND_SPL_SIZE)
... ... @@ -626,7 +626,7 @@
626 626 #if defined(CONFIG_RAMBOOT_NAND)
627 627 #define CONFIG_ENV_IS_IN_NAND 1
628 628 #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
629   -#define CONFIG_ENV_OFFSET ((512 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
  629 +#define CONFIG_ENV_OFFSET ((768 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
630 630 #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE)
631 631 #elif defined(CONFIG_RAMBOOT_SPIFLASH)
632 632 #define CONFIG_ENV_IS_IN_SPI_FLASH
633 633  
... ... @@ -649,11 +649,7 @@
649 649 #endif
650 650 #else
651 651 #define CONFIG_ENV_IS_IN_FLASH 1
652   - #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
653   - #define CONFIG_ENV_ADDR 0xfff80000
654   - #else
655 652 #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
656   - #endif
657 653 #define CONFIG_ENV_SIZE 0x2000
658 654 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */
659 655 #endif