0070-sunxi-Move-TEXT_BASE-to-the-board-Kconfig.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 08b45a89c7b25eb7828589360cf4ca2d9910cc59 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Fri, 5 Aug 2022 21:48:53 -0500
  4. Subject: [PATCH 70/90] sunxi: Move TEXT_BASE to the board Kconfig
  5. This is how the vast majority of platforms provided TEXT_BASE.
  6. sunxi was the exception here.
  7. Signed-off-by: Samuel Holland <[email protected]>
  8. ---
  9. board/sunxi/Kconfig | 6 ++++++
  10. boot/Kconfig | 4 ----
  11. 2 files changed, 6 insertions(+), 4 deletions(-)
  12. --- a/board/sunxi/Kconfig
  13. +++ b/board/sunxi/Kconfig
  14. @@ -137,6 +137,12 @@ config SYS_LOAD_ADDR
  15. config SYS_SOC
  16. default "sunxi"
  17. +config TEXT_BASE
  18. + default 0x81700000 if MACH_SUNIV
  19. + default 0x2a000000 if MACH_SUN9I
  20. + default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
  21. + default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
  22. +
  23. menu "sunxi board options"
  24. choice
  25. --- a/boot/Kconfig
  26. +++ b/boot/Kconfig
  27. @@ -633,10 +633,6 @@ config TEXT_BASE
  28. depends on HAVE_TEXT_BASE
  29. default 0x0 if POSITION_INDEPENDENT
  30. default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
  31. - default 0x81700000 if MACH_SUNIV
  32. - default 0x2a000000 if MACH_SUN9I
  33. - default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
  34. - default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
  35. hex "Text Base"
  36. help
  37. The address in memory that U-Boot will be running from, initially.