diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-09-17 09:50:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-18 08:48:07 +0200 |
commit | dde9161963c8dfd32bea9eac5749c0ec6ca3ee5c (patch) | |
tree | 75320cf650a37e503e4fb0bbf18706e4a6927aed | |
parent | c6c3afb3ebd37ab36926f660c081f3d5ee16ff81 (diff) | |
download | barebox-dde9161963c8dfd32bea9eac5749c0ec6ca3ee5c.tar.gz barebox-dde9161963c8dfd32bea9eac5749c0ec6ca3ee5c.tar.xz |
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>
-rw-r--r-- | arch/arm/mach-at91/include/mach/board.h | 1 | ||||
-rw-r--r-- | drivers/mci/atmel_mci.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index d695020b74..aa0fdae141 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h @@ -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); diff --git a/drivers/mci/atmel_mci.c b/drivers/mci/atmel_mci.c index dca3813c6d..36107a6ef8 100644 --- a/drivers/mci/atmel_mci.c +++ b/drivers/mci/atmel_mci.c @@ -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; |