[U-Boot] [PATCH 0/2] drivers: omap_hsmmc: move to DM_MMC_OPS

Jean-Jacques Hiblot jjhiblot at ti.com
Fri Apr 14 17:50:00 UTC 2017


This series adapts the omap_hsmmc driver to DM_MMC_OPS.
To reduce the number of #idef/#else/#endif, I voluntarily did not use
CONFIG_DM_MMC_OPS in the driver. It's supposed to go away at one point anyway.
The consequence is that DM_MMC_OPS must be selected if DM_MMC is selected. This
is handled in the Kconfig.

The first patch disables DM_MMC_OPS when DM_MMC is manually disabled in the plaform
configuration header file (am335x_evm.h for example). This is done on some platforms
when building the SPL. Those #undef could probably haven been removed but it requires
some testing that I haven't done yet.
The second patch implements the real DM_MMC_OPS support.


This has been tested on DRA7 boards.
buildman has been run for dra7 am43 am33 am57.

Jean-Jacques Hiblot (2):
  include: config: am335x: disable DM_MMC_OPS if DM_MMC is disabled
  drivers: omap_hsmmc: move to DM_MMC_OPS

 drivers/mmc/Kconfig          |  1 +
 drivers/mmc/omap_hsmmc.c     | 39 ++++++++++++++++++++++++++++++++-------
 include/configs/am335x_evm.h |  1 +
 include/configs/am335x_shc.h |  1 +
 include/configs/chiliboard.h |  1 +
 5 files changed, 36 insertions(+), 7 deletions(-)

-- 
1.9.1



More information about the U-Boot mailing list