spl: mmc: Introduce proper layering for spl_mmc_get_uboot_raw_sector()
PATCH v2 1/4 spl: mmc: Introduce proper layering for spl_mmc_get_uboot_raw_sector()
Quoted 11 lines
Introduce two new weak functions,
arch_spl_mmc_get_uboot_raw_sector()andboard_spl_mmc_get_uboot_raw_sector(), each of which can be overridden at a matching level, that isarch/and board/ , in addition to the existing weak functionspl_mmc_get_uboot_raw_sector().
This way, architecture code can define a default architecture specific implementation ofarch_spl_mmc_get_uboot_raw_sector(), while the board code can override that usingboard_spl_mmc_get_uboot_raw_sector()which takes precedence over the architecture code. In some sort of unlikely special case where code has to take precedence over board code too, thespl_mmc_get_uboot_raw_sector()is still left out to be a weak function, but it should be unlikely that this is ever needed to be overridden.
Quoted 1 line
Signed-off-by Marek Vasut <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected] =====================================================================