]> git.sur5r.net Git - u-boot/blobdiff - include/sdhci.h
MIPS: provide a default u-boot-spl.lds
[u-boot] / include / sdhci.h
index 2c480d07bfe438f89de75703bd5b71393f6e43ee..e0f66670b6a926aa4feacdf26fa467eed0149eb6 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <asm/io.h>
 #include <mmc.h>
+#include <asm/gpio.h>
 
 /*
  * Controller registers
@@ -234,7 +235,7 @@ struct sdhci_ops {
 };
 
 struct sdhci_host {
-       char *name;
+       const char *name;
        void *ioaddr;
        unsigned int quirks;
        unsigned int host_caps;
@@ -244,6 +245,10 @@ 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;