]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPL
authorFaiz Abbas <faiz_abbas@ti.com>
Fri, 22 May 2020 02:02:28 +0000 (07:32 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Sat, 13 Jun 2020 17:42:17 +0000 (23:12 +0530)
commitc78ae11e07d84c10ad5ee91593e49fcf20b07359
tree83f02a3299f0c0fa711571e9c868b68fa3fdb5b3
parentfedfa374fff3d1c82464e7c0ca3f6c088e3197e0
mmc: davinci_mmc: Cleanup to use dt in U-boot and static platdata in SPL

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@ti.com>
Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
arch/arm/mach-davinci/include/mach/sdmmc_defs.h
board/davinci/da8xxevm/omapl138_lcdk.c
configs/omapl138_lcdk_defconfig
drivers/mmc/davinci_mmc.c