[PATCH] Correct sun8i-v3s SRAM size

Benedikt-Alexander Mokroß catchall at bamkrs.de
Tue Apr 28 16:33:04 CEST 2020


According to the Datasheet, the V3s has a 32KiB SRAM.
This patch corrects CONFIG_SPL_MAX_SIZE and LOW_LEVEL_SRAM_STACK
accordingly.

Signed-off-by: Benedikt-Alexander Mokroß <u-boot at bamkrs.de>
---
  include/configs/sunxi-common.h | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 0ef289fd64..623501edce 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -185,8 +185,11 @@
  #define CONFIG_SPL_MAX_SIZE		0x7fa0		/* 32 KiB */
  /* end of SRAM A2 on H6 for now */
  #define LOW_LEVEL_SRAM_STACK		0x00118000
+#elif defined CONFIG_MACH_SUN8I_V3S
+#define CONFIG_SPL_MAX_SIZE		0x7fa0		/* 32 KiB */
+#define LOW_LEVEL_SRAM_STACK		0x0000F000	/* End of sram */
  #else
  #define CONFIG_SPL_MAX_SIZE		0x5fa0		/* 24KB on sun4i/sun7i */
  #define LOW_LEVEL_SRAM_STACK		0x00008000	/* End of sram */
  #endif

-- 
2.20.1



More information about the U-Boot mailing list