]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/sdhci.h
dm: core: allow device_bind() to not return a device pointer
[karo-tx-uboot.git] / include / sdhci.h
index 74d06ae18a229ff7182249815ba53ec17cdfb166..23893b57408056ea3cd077af2923a300e53c36fb 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <asm/io.h>
 #include <mmc.h>
+#include <asm/gpio.h>
 
 /*
  * Controller registers
@@ -244,9 +245,15 @@ struct sdhci_host {
        const struct sdhci_ops *ops;
        int index;
 
+       int bus_width;
+       struct gpio_desc pwr_gpio;      /* Power GPIO */
+       struct gpio_desc cd_gpio;               /* Card Detect GPIO */
+
        void (*set_control_reg)(struct sdhci_host *host);
        void (*set_clock)(int dev_index, unsigned int div);
        uint    voltages;
+
+       struct mmc_config cfg;
 };
 
 #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS