[PATCH] at91sam9m10g45ek: add mci0 support
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Fri Jun 10 07:29:48 EDT 2011
On 10:37 Fri 10 Jun , Hubert Feurstein wrote:
> and enable fat support
>
> Signed-off-by: Hubert Feurstein <h.feurstein at gmail.com>
> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> arch/arm/boards/at91sam9m10g45ek/init.c | 8 ++++++++
> arch/arm/configs/at91sam9m10g45ek_defconfig | 5 +++++
> 2 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/arch/arm/boards/at91sam9m10g45ek/init.c
> index 77d51b7..4f79e42 100644
> --- a/arch/arm/boards/at91sam9m10g45ek/init.c
> +++ b/arch/arm/boards/at91sam9m10g45ek/init.c
> @@ -22,6 +22,7 @@
>
> #include <common.h>
> #include <net.h>
> +#include <mci.h>
> #include <init.h>
> #include <environment.h>
> #include <asm/armlinux.h>
> @@ -110,11 +111,18 @@ static struct at91_ether_platform_data macb_pdata = {
> .phy_addr = 0,
> };
>
> +static struct atmel_mci_platform_data mci0_pdata = {
> + .bus_width = 4,
> + .host_caps = MMC_MODE_HS,
> + .detect_pin = AT91_PIN_PD10,
> +};
> +
> static int at91sam9m10g45ek_devices_init(void)
> {
> at91_add_device_sdram(128 * 1024 * 1024);
> ek_add_device_nand();
> at91_add_device_eth(&macb_pdata);
> + at91_add_device_mci(0, &mci0_pdata);
please do the same as I did on 9263ek
only add the device if the driver is enable
Best Regards,
J.
More information about the barebox
mailing list