[PATCH] mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPL
sjg at chromium.org
Mon May 25 16:57:26 CEST 2020
On Thu, 21 May 2020 at 20:02, Faiz Abbas <faiz_abbas at ti.com> wrote:
> Cleanup this driver to use dt in U-boot and static platdata in SPL.
> This requires the following steps:
> 1. Move all platdata assignment from probe() to ofdata_to_platdata().
> This function is only called in U-boot.
> 2. Replicate all the platdata assignment being done in
> ofdata_to_platdata() in the omapl138 board file. This data is used in
> the SPL case where SPL_OF_CONTROL is not enabled.
> 3. Remove SPL_OF_CONTROL and related configs from omapl138_lcdk_defconfig
> This cleanup effectively reverts 3ef94715cc ('mmc: davinci: fix mmc boot in SPL')
> Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>
> This patch fixes things being broken by Simon's series disabling
> libfdt when using of-platdata:
> .../mach-davinci/include/mach/sdmmc_defs.h | 7 +++
> board/davinci/da8xxevm/omapl138_lcdk.c | 12 ++++
> configs/omapl138_lcdk_defconfig | 4 --
> drivers/mmc/davinci_mmc.c | 63 ++++++++-----------
> 4 files changed, 45 insertions(+), 41 deletions(-)
Could this use of-platdata instead?
More information about the U-Boot