9
0
Fork 0

atmel_mci: add devname pdata support

so we can specify the devname in the board

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-09-17 09:50:45 +02:00 committed by Sascha Hauer
parent c6c3afb3eb
commit dde9161963
2 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ struct atmel_mci_platform_data {
unsigned bus_width;
int detect_pin;
int wp_pin;
char *devname;
};
void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data);

View File

@ -563,6 +563,7 @@ static int atmci_probe(struct device_d *hw_dev)
host->mci.init = atmci_reset;
host->mci.card_present = atmci_card_present;
host->mci.hw_dev = hw_dev;
host->mci.devname = pd->devname;
if (pd->bus_width >= 4)
host->mci.host_caps |= MMC_CAP_4_BIT_DATA;