]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fsl_esdhc_spl: pre-PBL: check for BOOT signature instead of MBR/DBR
authorPali Rohár <pali@kernel.org>
Sat, 2 Apr 2022 22:16:59 +0000 (00:16 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit0f58f033d410e91466723bb288d555c710de49fc
treef96480afd671ba41d58d51030407f22291c5444d
parentefd9914ffa05dc89f7d2830267b27ba2f06ecad1
mmc: fsl_esdhc_spl: pre-PBL: check for BOOT signature instead of MBR/DBR

Pre-PBL BootROMs (MPC8536E, MPC8569E, P2020, P1011, P1012, P1013, P1020,
P1021, P1022) require custom BOOT signature on sector 0 and MBR/DBR
signature is not required at all.

So add check for BOOT signature and remove check for MBR/DBR.

This allows U-Boot SPL to load proper U-Boot on pre-PBL BootROMs platforms
also from SD cards which do not have MBR/DBR signature on sector 0.

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