@@ -1036,6 +1036,11 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power)
{
u8 pwr;
+ if (host->ops->set_power) {
+ host->ops->set_power(host, power);
+ return;
+ }
+
if (power == (unsigned short)-1)
pwr = 0;
else {
@@ -316,6 +316,7 @@ struct sdhci_ops {
#endif
void (*set_clock)(struct sdhci_host *host, unsigned int clock);
+ void (*set_power)(struct sdhci_host *host, unsigned int power);
int (*enable_dma)(struct sdhci_host *host);
unsigned int (*get_max_clock)(struct sdhci_host *host);