]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/include/asm/omap_mmc.h
dm: mmc: omap_hsmmc: Update to support of-platdata
[people/ms/u-boot.git] / arch / arm / include / asm / omap_mmc.h
index f2bf645b33b1d438c6aaf10d27e388e8ac8b6bec..f6eb51ee3c61cca7b39aa60daa61e22c79a70fbf 100644 (file)
 #ifndef OMAP_MMC_H_
 #define OMAP_MMC_H_
 
+#include <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 */
@@ -52,6 +51,13 @@ struct hsmmc {
        unsigned int capa;              /* 0x140 */
 };
 
+struct omap_hsmmc_plat {
+       struct mmc_config cfg;
+       struct hsmmc *base_addr;
+       struct mmc mmc;
+       bool cd_inverted;
+};
+
 /*
  * OMAP HS MMC Bit definitions
  */