From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Jacques Hiblot Date: Fri, 14 Apr 2017 19:50:00 +0200 Subject: [U-Boot] [PATCH 0/2] drivers: omap_hsmmc: move to DM_MMC_OPS Message-ID: <1492192202-32550-1-git-send-email-jjhiblot@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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