mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
mmc: sdhci: add mmc structure for host
So that sdhci host would tell in the driver that the mmc current attributes. Signed-off-by: Lei Wen <leiwen@marvell.com>
This commit is contained in:
@@ -377,6 +377,7 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mmc->priv = host;
|
mmc->priv = host;
|
||||||
|
host->mmc = mmc;
|
||||||
|
|
||||||
sprintf(mmc->name, "%s", host->name);
|
sprintf(mmc->name, "%s", host->name);
|
||||||
mmc->send_cmd = sdhci_send_command;
|
mmc->send_cmd = sdhci_send_command;
|
||||||
|
@@ -27,6 +27,8 @@
|
|||||||
#define __SDHCI_HW_H
|
#define __SDHCI_HW_H
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
#include <mmc.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Controller registers
|
* Controller registers
|
||||||
*/
|
*/
|
||||||
@@ -239,6 +241,7 @@ struct sdhci_host {
|
|||||||
unsigned int quirks;
|
unsigned int quirks;
|
||||||
unsigned int version;
|
unsigned int version;
|
||||||
unsigned int clock;
|
unsigned int clock;
|
||||||
|
struct mmc *mmc;
|
||||||
const struct sdhci_ops *ops;
|
const struct sdhci_ops *ops;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user