* [PATCH 1/1] atmel_mci: add devname pdata support
@ 2013-09-17 7:50 Jean-Christophe PLAGNIOL-VILLARD
2013-09-18 6:48 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-17 7:50 UTC (permalink / raw)
To: barebox
so we can specify the devname in the board
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/mach-at91/include/mach/board.h | 1 +
drivers/mci/atmel_mci.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
index d695020..aa0fdae 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 dca3813..36107a6 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;
--
1.8.4.rc1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] atmel_mci: add devname pdata support
2013-09-17 7:50 [PATCH 1/1] atmel_mci: add devname pdata support Jean-Christophe PLAGNIOL-VILLARD
@ 2013-09-18 6:48 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-09-18 6:48 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Tue, Sep 17, 2013 at 09:50:45AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> so we can specify the devname in the board
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Applied, thanks
Sascha
> ---
> arch/arm/mach-at91/include/mach/board.h | 1 +
> drivers/mci/atmel_mci.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
> index d695020..aa0fdae 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 dca3813..36107a6 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;
> --
> 1.8.4.rc1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-18 6:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-17 7:50 [PATCH 1/1] atmel_mci: add devname pdata support Jean-Christophe PLAGNIOL-VILLARD
2013-09-18 6:48 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox