mmc: fsl_esdhc_spl: pre-PBL: implement redundancy support
authorPali Rohár <pali@kernel.org>
Mon, 4 Apr 2022 16:33:11 +0000 (18:33 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:48:39 +0000 (17:18 +0530)
commit0980cbba7b3cdec23bafb9cf6dbedc22979a38a1
tree15938537370beee667ddc3cf802fe00bf8eafd23
parent44564e79eb2eac4b38f5493748018906e7239e2e
mmc: fsl_esdhc_spl: pre-PBL: implement redundancy support

QorIQ pre-PBL BootROM scans first 24 SD card sectors (each with fixed 512
bytes length) for boot signature. Implement same redundancy behavior in
fsl_esdhc_spl driver to allow loading proper U-Boot when boot sector is not
the first one.

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