summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2015-09-28 12:56:28 +0530
committerTom Rini <trini@konsulko.com>2015-10-22 14:22:28 -0400
commit11e1582506c615cc444e9ba8f34e877386aa4f45 (patch)
tree7d5c96605064b802c0054536f8af1544e8c71740 /arch/arm
parente5520e188bbb8e2537a4b5a3f9df73f78287c7b8 (diff)
omap_hsmmc: update struct hsmmc to accomodate base address from DT
Existing driver gets the actual omap hammc base address + 0x100 bytes as the first 0x100 bytes is not used by the driver. But with DM conversion the base address from DT is different, to accommodate the offset adding res0[0x100] to struct hsmmc. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/omap_mmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/arm/include/asm/omap_mmc.h
index 617e22fa52..b69d0731e1 100644
--- a/arch/arm/include/asm/omap_mmc.h
+++ b/arch/arm/include/asm/omap_mmc.h
@@ -26,6 +26,9 @@
#define OMAP_MMC_H_
struct hsmmc {
+#ifdef CONFIG_DM_MMC
+ unsigned char res0[0x100];
+#endif
unsigned char res1[0x10];
unsigned int sysconfig; /* 0x10 */
unsigned int sysstatus; /* 0x14 */