Commit 4d82c4b53e3c911f21383a547477d6f5916c17a7

Authored by Andrew F. Davis
Committed by Tom Rini
1 parent 7410f1464e

am335x: configs: Use ISW_ENTRY_ADDR to set SPL_TEXT_BASE

The SPL load address changes based on boot type in HS devices,
ISW_ENTRY_ADDR is used to set this address for AM43xx based SoCs
for similar reasons. Add this same logic for AM33xx devices.

Also make the default value for ISW_ENTRY_ADDR correct for GP
devices based on SoC, HS devices already pick the correct
value in their defconfig.

Signed-off-by: Andrew F. Davis <afd@ti.com>

Showing 2 changed files with 3 additions and 2 deletions Side-by-side Diff

arch/arm/mach-omap2/am33xx/Kconfig
... ... @@ -119,7 +119,8 @@
119 119 point address depending on the device type
120 120 (secure/non-secure), boot media (xip/non-xip) and
121 121 image headers.
122   - default 0x402F4000
  122 + default 0x402F4000 if AM43XX
  123 + default 0x402F0400 if AM33XX
123 124  
124 125 config PUB_ROM_DATA_SIZE
125 126 hex "Size in bytes of the L3 SRAM reserved by ROM to store data"
include/configs/ti_am335x_common.h
... ... @@ -56,7 +56,7 @@
56 56 * supports X-MODEM loading via UART, and we leverage this and then use
57 57 * Y-MODEM to load u-boot.img, when booted over UART.
58 58 */
59   -#define CONFIG_SPL_TEXT_BASE 0x402F0400
  59 +#define CONFIG_SPL_TEXT_BASE CONFIG_ISW_ENTRY_ADDR
60 60 #define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + \
61 61 (128 << 20))
62 62