]> 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 83726ee0a241b41f09932b260decea96c07777be..f6eb51ee3c61cca7b39aa60daa61e22c79a70fbf 100644 (file)
@@ -25,6 +25,8 @@
 #ifndef OMAP_MMC_H_
 #define OMAP_MMC_H_
 
+#include <mmc.h>
+
 struct hsmmc {
        unsigned char res1[0x10];
        unsigned int sysconfig;         /* 0x10 */
@@ -49,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
  */
@@ -161,7 +170,8 @@ struct hsmmc {
 #define mmc_reg_out(addr, mask, val)\
        writel((readl(addr) & (~(mask))) | ((val) & (mask)), (addr))
 
-int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max);
-
+int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio,
+               int wp_gpio);
 
+void vmmc_pbias_config(uint voltage);
 #endif /* OMAP_MMC_H_ */