]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc_spl: pre-PBL: fix determining U-Boot size
authorPali Rohár <pali@kernel.org>
Sat, 2 Apr 2022 22:17:00 +0000 (00:17 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit0ee50499b1e7c2dd9d616099c914f37e6b530aa4
treeded44f19fe23e158cc1953db416817d91e2913f1
parent921d227fda51bee78f3af19e641f8960bd5bcbe7
mmc: fsl_esdhc_spl: pre-PBL: fix determining U-Boot size

In pre-PBL header is stored size of code which BootROM copies from SD card
to L2/SRAM. This size has upper limit of L2 cache size. In most cases this
is size of U-Boot SPL or size of L2 cache.

Therefore this size in pre-PBL header cannot be used for determining size
of proper U-Boot.

So always use CONFIG_SYS_MMC_U_BOOT_SIZE for determining size of proper
U-Boot which stored on SD card.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/mmc/fsl_esdhc_spl.c