X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fsdhci.h;h=e0f66670b6a926aa4feacdf26fa467eed0149eb6;hb=3551b24f5354fc47bb4ddf99d2f095ccc6b03f2d;hp=74d06ae18a229ff7182249815ba53ec17cdfb166;hpb=113e5dfcd77cfef4a1719c9a6ba3933c2ef06320;p=u-boot diff --git a/include/sdhci.h b/include/sdhci.h index 74d06ae18a..e0f66670b6 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -12,6 +12,7 @@ #include #include +#include /* * 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,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