]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: config: update CONFIG_SPL_MAX_SIZE for 64bit CPUs
authorKever Yang <kever.yang@rock-chips.com>
Fri, 18 Oct 2019 07:54:16 +0000 (15:54 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 10 Nov 2019 12:40:20 +0000 (20:40 +0800)
Since we move the ATF bl31 entry for 64bit CPUs to 0x40000, we need to
limit the SPL size in 0x40000(start from 0) so that we don't need to do
the relocate for ATF loading.
Note that there will be separate BSS, STACK and MALLOC heap, so the size
0x40000(256KB) should be enough for SPL text.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
include/configs/rk3328_common.h
include/configs/rk3368_common.h
include/configs/rk3399_common.h

index 3ff3331c80870dec5051769193f748fe89aa8efa..e51e1b0e0e79e628ece61085fcb724649b6e55a8 100644 (file)
@@ -18,7 +18,7 @@
 #define CONFIG_SYS_INIT_SP_ADDR                0x00300000
 #define CONFIG_SYS_LOAD_ADDR           0x00800800
 #define CONFIG_SPL_STACK               0x00400000
-#define CONFIG_SPL_MAX_SIZE            0x100000
+#define CONFIG_SPL_MAX_SIZE            0x40000
 #define CONFIG_SPL_BSS_START_ADDR      0x2000000
 #define CONFIG_SPL_BSS_MAX_SIZE                0x2000
 
index e4b2114a0dd5f2d9aab2d9b3a994844cbbc4a8ce..e57d0efa7f92d6164816f6100baa384a14993742 100644 (file)
@@ -27,7 +27,7 @@
 #define CONFIG_SYS_INIT_SP_ADDR                0x00300000
 #define CONFIG_SYS_LOAD_ADDR           0x00280000
 
-#define CONFIG_SPL_MAX_SIZE             0x60000
+#define CONFIG_SPL_MAX_SIZE             0x40000
 #define CONFIG_SPL_BSS_START_ADDR       0x400000
 #define CONFIG_SPL_BSS_MAX_SIZE         0x20000
 #define CONFIG_SPL_STACK                0x00188000
index 126c34763ea86cb6974530e24cbca3a12c9a8dbc..7331c6dc026e53f52de8d0c46888213969dc903d 100644 (file)
@@ -21,7 +21,7 @@
 
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_TPL_BOOTROM_SUPPORT)
 #define CONFIG_SPL_STACK               0x00400000
-#define CONFIG_SPL_MAX_SIZE             0x100000
+#define CONFIG_SPL_MAX_SIZE             0x40000
 #define CONFIG_SPL_BSS_START_ADDR      0x00400000
 #define CONFIG_SPL_BSS_MAX_SIZE         0x2000
 #else