Re: [PATCH 4/6] ARM: tegra: harmony: register sdhci devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 21, 2011 at 11:06 AM, Olof Johansson <olof@xxxxxxxxx> wrote:
> Add the 3 sdhci devices that are available on Harmony as
> platform devices. Two go to slots (one 4-lane, one 8-lane),
> and one goes to onboard wifi.
>
> Signed-off-by: Olof Johansson <olof@xxxxxxxxx>
> ---
>  arch/arm/mach-tegra/board-harmony.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c
> index f6ad58b..8059c50 100644
> --- a/arch/arm/mach-tegra/board-harmony.c
> +++ b/arch/arm/mach-tegra/board-harmony.c
> @@ -30,10 +30,14 @@
>
>  #include <mach/iomap.h>
>  #include <mach/irqs.h>
> +#include <mach/pinmux-t2.h>
Why does this require including mach/pinmux-t2.h?

> +#include <mach/sdhci.h>
>
>  #include "board.h"
>  #include "board-harmony.h"
>  #include "clock.h"
> +#include "devices.h"
> +#include "gpio-names.h"
>
>  static struct plat_serial8250_port debug_uart_platform_data[] = {
>        {
> @@ -59,6 +63,9 @@ static struct platform_device debug_uart = {
>
>  static struct platform_device *harmony_devices[] __initdata = {
>        &debug_uart,
> +       &tegra_sdhci_device1,
> +       &tegra_sdhci_device2,
> +       &tegra_sdhci_device4,
>  };
>
>  static void __init tegra_harmony_fixup(struct machine_desc *desc,
> @@ -85,6 +92,10 @@ static void __init tegra_harmony_init(void)
>
>        harmony_pinmux_init();
>
> +       tegra_sdhci_device1.dev.platform_data = &sdhci_pdata1;
> +       tegra_sdhci_device2.dev.platform_data = &sdhci_pdata2;
> +       tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;
> +
What happened to the definitions of sdhci_pdata1-4?  They were in the
previous version of this patch, but not this one.

>        platform_add_devices(harmony_devices, ARRAY_SIZE(harmony_devices));
>  }
>
> --
> 1.7.0.4
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux