linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] babbage: esdhc device registration
@ 2010-10-21 16:55 Shawn Guo
  2010-10-21 16:55 ` [PATCH] " Shawn Guo
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Guo @ 2010-10-21 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

Update commit message to address Amit Kucheria's review comment.

This patch is to add esdhc device registration for babbage board.
And it depends on Eric B?nard's patchset below.

 - cpuimx51: update board support
 - clock-mx51: factorize clk_set_parent and clk_get_rate
 - imx-esdhc: update devices registration

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] babbage: esdhc device registration
  2010-10-21 16:55 [PATCH v2] babbage: esdhc device registration Shawn Guo
@ 2010-10-21 16:55 ` Shawn Guo
  2010-10-22  6:52   ` Amit Kucheria
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn Guo @ 2010-10-21 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

Update babbage board support to register esdhc device

Signed-off-by: Shawn Guo <shawn.gsc@gmail.com>
---
 arch/arm/mach-mx5/Kconfig              |    1 +
 arch/arm/mach-mx5/board-mx51_babbage.c |   19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig
index a2df9ac..fe96cd2 100644
--- a/arch/arm/mach-mx5/Kconfig
+++ b/arch/arm/mach-mx5/Kconfig
@@ -13,6 +13,7 @@ config MACH_MX51_BABBAGE
 	bool "Support MX51 BABBAGE platforms"
 	select IMX_HAVE_PLATFORM_IMX_I2C
 	select IMX_HAVE_PLATFORM_IMX_UART
+	select IMX_HAVE_PLATFORM_ESDHC
 	help
 	  Include support for MX51 Babbage platform, also known as MX51EVK in
 	  u-boot. This includes specific configurations for the board and its
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 23ee4a4..39304b4 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -112,6 +112,22 @@ static struct pad_desc mx51babbage_pads[] = {
 
 	/* FEC PHY reset line */
 	MX51_PAD_EIM_A20__GPIO_2_14,
+
+	/* SD 1 */
+	MX51_PAD_SD1_CMD__SD1_CMD,
+	MX51_PAD_SD1_CLK__SD1_CLK,
+	MX51_PAD_SD1_DATA0__SD1_DATA0,
+	MX51_PAD_SD1_DATA1__SD1_DATA1,
+	MX51_PAD_SD1_DATA2__SD1_DATA2,
+	MX51_PAD_SD1_DATA3__SD1_DATA3,
+
+	/* SD 2 */
+	MX51_PAD_SD2_CMD__SD2_CMD,
+	MX51_PAD_SD2_CLK__SD2_CLK,
+	MX51_PAD_SD2_DATA0__SD2_DATA0,
+	MX51_PAD_SD2_DATA1__SD2_DATA1,
+	MX51_PAD_SD2_DATA2__SD2_DATA2,
+	MX51_PAD_SD2_DATA3__SD2_DATA3,
 };
 
 /* Serial ports */
@@ -304,6 +320,9 @@ static void __init mxc_board_init(void)
 	/* setback USBH1_STP to be function */
 	mxc_iomux_v3_setup_pad(&usbh1stp);
 	babbage_usbhub_reset();
+
+	imx51_add_esdhc(0, NULL);
+	imx51_add_esdhc(1, NULL);
 }
 
 static void __init mx51_babbage_timer_init(void)
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] babbage: esdhc device registration
  2010-10-21 16:55 ` [PATCH] " Shawn Guo
@ 2010-10-22  6:52   ` Amit Kucheria
  0 siblings, 0 replies; 3+ messages in thread
From: Amit Kucheria @ 2010-10-22  6:52 UTC (permalink / raw)
  To: linux-arm-kernel

On 10 Oct 22, Shawn Guo wrote:
> Update babbage board support to register esdhc device
> 
> Signed-off-by: Shawn Guo <shawn.gsc@gmail.com>

This looks OK.

Acked-by: Amit Kucheria <amit.kucheria@linaro.org>

> ---
>  arch/arm/mach-mx5/Kconfig              |    1 +
>  arch/arm/mach-mx5/board-mx51_babbage.c |   19 +++++++++++++++++++
>  2 files changed, 20 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mx5/Kconfig b/arch/arm/mach-mx5/Kconfig
> index a2df9ac..fe96cd2 100644
> --- a/arch/arm/mach-mx5/Kconfig
> +++ b/arch/arm/mach-mx5/Kconfig
> @@ -13,6 +13,7 @@ config MACH_MX51_BABBAGE
>  	bool "Support MX51 BABBAGE platforms"
>  	select IMX_HAVE_PLATFORM_IMX_I2C
>  	select IMX_HAVE_PLATFORM_IMX_UART
> +	select IMX_HAVE_PLATFORM_ESDHC
>  	help
>  	  Include support for MX51 Babbage platform, also known as MX51EVK in
>  	  u-boot. This includes specific configurations for the board and its
> diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
> index 23ee4a4..39304b4 100644
> --- a/arch/arm/mach-mx5/board-mx51_babbage.c
> +++ b/arch/arm/mach-mx5/board-mx51_babbage.c
> @@ -112,6 +112,22 @@ static struct pad_desc mx51babbage_pads[] = {
>  
>  	/* FEC PHY reset line */
>  	MX51_PAD_EIM_A20__GPIO_2_14,
> +
> +	/* SD 1 */
> +	MX51_PAD_SD1_CMD__SD1_CMD,
> +	MX51_PAD_SD1_CLK__SD1_CLK,
> +	MX51_PAD_SD1_DATA0__SD1_DATA0,
> +	MX51_PAD_SD1_DATA1__SD1_DATA1,
> +	MX51_PAD_SD1_DATA2__SD1_DATA2,
> +	MX51_PAD_SD1_DATA3__SD1_DATA3,
> +
> +	/* SD 2 */
> +	MX51_PAD_SD2_CMD__SD2_CMD,
> +	MX51_PAD_SD2_CLK__SD2_CLK,
> +	MX51_PAD_SD2_DATA0__SD2_DATA0,
> +	MX51_PAD_SD2_DATA1__SD2_DATA1,
> +	MX51_PAD_SD2_DATA2__SD2_DATA2,
> +	MX51_PAD_SD2_DATA3__SD2_DATA3,
>  };
>  
>  /* Serial ports */
> @@ -304,6 +320,9 @@ static void __init mxc_board_init(void)
>  	/* setback USBH1_STP to be function */
>  	mxc_iomux_v3_setup_pad(&usbh1stp);
>  	babbage_usbhub_reset();
> +
> +	imx51_add_esdhc(0, NULL);
> +	imx51_add_esdhc(1, NULL);
>  }
>  
>  static void __init mx51_babbage_timer_init(void)
> -- 
> 1.7.1
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-22  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 16:55 [PATCH v2] babbage: esdhc device registration Shawn Guo
2010-10-21 16:55 ` [PATCH] " Shawn Guo
2010-10-22  6:52   ` Amit Kucheria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).