Skip to contentSkip to conversation

atmel_mci: add devname pdata support

PATCH Applied Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Sep 17, 2013 – Sep 18, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel_mci: add devname pdata support

so we can specify the devname in the board

---
 arch/arm/mach-at91/include/mach/board.h | 1 +
 drivers/mci/atmel_mci.c                 | 1 +
 2 files changed, 2 insertions(+)
arch/arm/mach-at91/include/mach/board.h +1 -0
index d695020..aa0fdae 100644
@@ -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);
drivers/mci/atmel_mci.c +1 -0
index dca3813..36107a6 100644
@@ -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;
Signature · 7 lines
1.8.4.rc1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD

so we can specify the devname in the board

Applied, thanks

Sascha

Quoted 38 lines
---
 arch/arm/mach-at91/include/mach/board.h | 1 +
 drivers/mci/atmel_mci.c                 | 1 +
 2 files changed, 2 insertions(+)
arch/arm/mach-at91/include/mach/board.h +1 -0
index d695020..aa0fdae 100644
@@ -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);
drivers/mci/atmel_mci.c +1 -0
index dca3813..36107a6 100644
@@ -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;
Signature · 7 lines
1.8.4.rc1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox