0065-sunxi-Clean-up-the-SPL_STACK_R_ADDR-defaults.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 41e5a94533e9744b8eac718dd2c359eca57573f8 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Fri, 5 Aug 2022 23:25:26 -0500
  4. Subject: [PATCH 65/90] sunxi: Clean up the SPL_STACK_R_ADDR defaults
  5. Update this option to be based on SUNXI_MINIMUM_DRAM_MB. This corrects
  6. the value used on V3s, which previously was the MACH_SUN8I default, and
  7. so relied on addresses wrapping modulo the DRAM size.
  8. Signed-off-by: Samuel Holland <[email protected]>
  9. ---
  10. board/sunxi/Kconfig | 9 ++-------
  11. 1 file changed, 2 insertions(+), 7 deletions(-)
  12. --- a/board/sunxi/Kconfig
  13. +++ b/board/sunxi/Kconfig
  14. @@ -57,14 +57,9 @@ config IDENT_STRING
  15. config SPL_STACK_R_ADDR
  16. default 0x81e00000 if MACH_SUNIV
  17. - default 0x4fe00000 if MACH_SUN4I
  18. - default 0x4fe00000 if MACH_SUN5I
  19. - default 0x4fe00000 if MACH_SUN6I
  20. - default 0x4fe00000 if MACH_SUN7I
  21. - default 0x4fe00000 if MACH_SUN8I
  22. default 0x2fe00000 if MACH_SUN9I
  23. - default 0x4fe00000 if MACH_SUN50I
  24. - default 0x4fe00000 if SUN50I_GEN_H6
  25. + default 0x4fe00000 if SUNXI_MINIMUM_DRAM_MB >= 256
  26. + default 0x43e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
  27. config SUNXI_MINIMUM_DRAM_MB
  28. int