sunxi: Move TEXT_BASE to the board Kconfig

This is how the vast majority of platforms provided TEXT_BASE.
sunxi was the exception here.

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland 2022-08-05 21:48:53 -05:00
parent 9c3f889d72
commit ac7381da70
2 changed files with 6 additions and 4 deletions

View File

@ -137,6 +137,12 @@ config SYS_LOAD_ADDR
config SYS_SOC config SYS_SOC
default "sunxi" default "sunxi"
config TEXT_BASE
default 0x81700000 if MACH_SUNIV
default 0x2a000000 if MACH_SUN9I
default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
menu "sunxi board options" menu "sunxi board options"
choice choice

View File

@ -633,10 +633,6 @@ config TEXT_BASE
depends on HAVE_TEXT_BASE depends on HAVE_TEXT_BASE
default 0x0 if POSITION_INDEPENDENT default 0x0 if POSITION_INDEPENDENT
default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3 default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
default 0x81700000 if MACH_SUNIV
default 0x2a000000 if MACH_SUN9I
default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
hex "Text Base" hex "Text Base"
help help
The address in memory that U-Boot will be running from, initially. The address in memory that U-Boot will be running from, initially.