]> git.baikalelectronics.ru Git - uboot.git/commit
omap_hsmmc: update struct hsmmc to accommodate omap3 from DT
authorAdam Ford <aford173@gmail.com>
Mon, 17 Apr 2017 13:09:37 +0000 (08:09 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 10 May 2017 00:35:35 +0000 (20:35 -0400)
commit660a6cf3e4f09b40de2cf3b56f2c1c392205ed7e
tree6415bad79e33d3a189847611d56281ff6337b38f
parent6ccd42172e7367196e34202cde9fa388b6e616b9
omap_hsmmc: update struct hsmmc to accommodate omap3 from DT

This patch changes the way DM_MMC calculates offset to the base register of
MMC. Previously this was through an #ifdef but that wasn't necessary for OMAP3.

This patch will now add in the offset to the base address based on the
.compatible flags.

Signed-off-by: Adam Ford <aford173@gmail.com>
V2: Remove ifdef completely and reference offset from the omap_hsmmc_ids table.

V1: Change ifdef to ignore OMAP3
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/omap_mmc.h
drivers/mmc/omap_hsmmc.c