Skip to content

omapl138_lcdk: fix MMC boot

Bartosz Golaszewski u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: davinci: drop support for ti,dm6441-mmcarch/arm/mach-davinci/include/mach/sdmmc_defs.h board/davinci/da8xxevm/omapl138_lcdk.c drivers/mmc/davinci_mmc.c+5 -441 reply
2/4mmc: davinci: drop struct davinci_mmc_platdrivers/mmc/davinci_mmc.c+4 -102 replies
2/4mmc: davinci: drop struct davinci_mmc_plat+0 -02 replies
3/4board: omapl138_lcdk: add the mmc device to SPLarch/arm/mach-davinci/Kconfig board/davinci/da8xxevm/omapl138_lcdk.c+10 -01 reply
4/4mmc: davinci: fix mmc boot in SPLdrivers/mmc/davinci_mmc.c+17 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/4] omapl138_lcdk: fix MMC boot

From: Bartosz Golaszewski <[email protected]>

Booting from MMC on omapl138-lcdk is currently broken after we enabled driver-model in SPL. While I know what's wrong - the bind() callback not being called - I can't for the life of me figure out how to fix it.

I'm still working on proper changes, but for now, I'd like to propose this series which fixes MMC boot with a workaround in which we call mmc_boot() manually from probe.

First two patches drop some legacy code that's no longer needed. The third patch adds a U_BOOT_DEVICE() for mmc as we don't yet have full DT support (also in-progress). The last patch adds the workaround to the davinci mmc driver.

This series depends on Adam Ford's patch increasing the pre-reloc malloc pool.

[1] https://patchwork.ozlabs.org/patch/1192574/

Bartosz Golaszewski (4):
mmc: davinci: drop support for ti,dm6441-mmc
mmc: davinci: drop struct davinci_mmc_plat
board: omapl138_lcdk: add the mmc device to SPL
mmc: davinci: fix mmc boot in SPL

 arch/arm/mach-davinci/Kconfig                 |  1 +
 .../mach-davinci/include/mach/sdmmc_defs.h    |  6 --
 board/davinci/da8xxevm/omapl138_lcdk.c        | 10 ++-
 drivers/mmc/davinci_mmc.c                     | 73 +++++++------------
 4 files changed, 36 insertions(+), 54 deletions(-)
Signature · 1 line
2.23.0