summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2022-07-26 11:40:31 +0300
committerStefano Babic <sbabic@denx.de>2022-07-26 12:28:59 +0300
commit658ff9d035f558676dfcad091fbb985f4d15bad6 (patch)
treee01c0f643e2b50edb0aae2bff3e04944d52856ff /common/spl
parentbb19f85168957a658a7d0aa19bda95158aeb3520 (diff)
downloadu-boot-658ff9d035f558676dfcad091fbb985f4d15bad6.tar.xz
spl: imx8mm: enlarge SPL_MAX_SIZE
The CONFIG_SPL_MAX_SIZE could be 0x27000 for i.MX8MM when SPL_TEXT_BASE set to 0x7E1000. The DDR firmware max uses 96KB, there is a 4KB padding header before SPL_TEXT_BASE, so the SPL MAX SIZE is `256KB - 96KB - 4KB`. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Fabio Estevam <festevam@denx.de>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index b8c21f557f..1358b45e28 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -83,6 +83,7 @@ config SPL_MAX_SIZE
default 0x7000 if RCAR_GEN3
default 0x5fa0 if SUNXI_SRAM_ADDRESS = 0x0
default 0x10000 if ASPEED_AST2600
+ default 0x27000 if IMX8MM && SPL_TEXT_BASE = 0x7E1000
default 0x0
help
Maximum size of the SPL image (text, data, rodata, and linker lists