]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap_hsmmc: update struct hsmmc to accomodate base address from DT
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 28 Sep 2015 07:26:28 +0000 (12:56 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:22:28 +0000 (14:22 -0400)
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>
arch/arm/include/asm/omap_mmc.h

index 617e22fa52d49a57bbfe95538fde57fbe62be05c..b69d0731e1f86a1fb8da301f1541fc570ae3ae53 100644 (file)
@@ -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 */