Skip to content
Snippets Groups Projects
Commit 6cf1b17c authored by Lei Wen's avatar Lei Wen Committed by Andy Fleming
Browse files

mmc: sdhci: add mmc structure for host


So that sdhci host would tell in the driver that the mmc current
attributes.

Signed-off-by: default avatarLei Wen <leiwen@marvell.com>
parent 0d2f15f9
No related branches found
No related tags found
No related merge requests found
......@@ -377,6 +377,7 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
}
mmc->priv = host;
host->mmc = mmc;
sprintf(mmc->name, "%s", host->name);
mmc->send_cmd = sdhci_send_command;
......
......@@ -27,6 +27,8 @@
#define __SDHCI_HW_H
#include <asm/io.h>
#include <mmc.h>
/*
* Controller registers
*/
......@@ -239,6 +241,7 @@ struct sdhci_host {
unsigned int quirks;
unsigned int version;
unsigned int clock;
struct mmc *mmc;
const struct sdhci_ops *ops;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment