summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2016-04-08 01:14:22 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-09-18 13:45:15 +0200
commita8bd0f5f3be5809d4960af553c8dced3bba3df6b (patch)
tree2d229e1d6926331965b64aaa2e9c85c23a95f6ac /include
parent1051a80e9f5f28eeaf3d0cd2e6c76624d702562a (diff)
sunxi: enable SPL for sun9i
Diffstat (limited to 'include')
-rw-r--r--include/configs/sunxi-common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 7fd1cd1f7e..5952e5e50d 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -193,7 +193,11 @@
#define CONFIG_SPL_BOARD_LOAD_IMAGE
+#if defined(CONFIG_MACH_SUN9I)
+#define CONFIG_SPL_TEXT_BASE 0x10020 /* sram start+header */
+#else
#define CONFIG_SPL_TEXT_BASE 0x20 /* sram start+header */
+#endif
#define CONFIG_SPL_MAX_SIZE 0x5fe0 /* 24KB on sun4i/sun7i */
#define CONFIG_SPL_LIBDISK_SUPPORT
@@ -208,7 +212,11 @@
#define CONFIG_SPL_PAD_TO 32768 /* decimal for 'dd' */
/* end of 32 KiB in sram */
+#if defined(CONFIG_MACH_SUN9I)
+#define LOW_LEVEL_SRAM_STACK 0x0001a000 /* 40KiB */
+#else
#define LOW_LEVEL_SRAM_STACK 0x00008000 /* End of sram */
+#endif
#define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK
/* I2C */