[PATCH 2/3] pm9g45: enable MCI0

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Mar 1 12:10:27 EST 2012


On 18:21 Thu 01 Mar     , Asen Chavdarov Dimov wrote:
> FIXME: part of or no data is written. File copy ends
> with message: "atmel_mci at atmel_mci0: command/data timeout"
> 
> Signed-off-by: Asen Chavdarov Dimov <dimov at ronetix.at>
> ---
>  arch/arm/boards/pm9g45/init.c     |   17 ++++++++++++++++-
>  arch/arm/configs/pm9g45_defconfig |   34 +++++++++++++++++++++++++++++++---
>  2 files changed, 47 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 9eba12a..257e5e2 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
>  	at91_add_device_nand(&nand_pdata);
>  }
>  
> +#if defined(CONFIG_MCI_ATMEL)
> +static struct atmel_mci_platform_data __initdata mci_data = {
> +	.bus_width	= 4,
> +	.wp_pin		= 0,
> +	.detect_pin	= AT91_PIN_PD6,
> +};
> +
> +static void add_device_mci(void)
> +{
> +	at91_add_device_mci(0, &mci_data);
> +}
> +#else
> +static void add_device_mci(void) {}
please the nale of the function board specifc

Best Regards,
J.



More information about the barebox mailing list