diff mbox

ARM: EXYNOS: Add USB OHCI support to ORIGEN board

Message ID 1324457752-26056-1-git-send-email-tushar.behera@linaro.org
State Accepted
Headers show

Commit Message

Tushar Behera Dec. 21, 2011, 8:55 a.m. UTC
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
---

This patch are based Kukjin's for-next branch and OHCI related
patches from Jingoo Han.
[PATCH v2 0/3] Support Samsung Exynos OHCI device and driver

 arch/arm/mach-exynos/Kconfig       |    1 +
 arch/arm/mach-exynos/mach-origen.c |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

Comments

Jingoo Han Dec. 21, 2011, 9:16 a.m. UTC | #1
Hi, Tushar.

Tushar Behera wrote:
> -----Original Message-----
> Subject: [PATCH] ARM: EXYNOS: Add USB OHCI support to ORIGEN board
> 
> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>

Acked-by: Jingoo Han <jg1.han@samsung.com>

Thanks.

Best regards,
Jingoo Han
> ---
> 
> This patch are based Kukjin's for-next branch and OHCI related
> patches from Jingoo Han.
> [PATCH v2 0/3] Support Samsung Exynos OHCI device and driver
> 
>  arch/arm/mach-exynos/Kconfig       |    1 +
>  arch/arm/mach-exynos/mach-origen.c |   13 +++++++++++++
>  2 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
> index bd1bb9f1..0da2ced 100644
> --- a/arch/arm/mach-exynos/Kconfig
> +++ b/arch/arm/mach-exynos/Kconfig
> @@ -304,6 +304,7 @@ config MACH_ORIGEN
>  	select SAMSUNG_DEV_PWM
>  	select EXYNOS4_DEV_DMA
>  	select EXYNOS4_DEV_PD
> +	select EXYNOS4_DEV_USB_OHCI
>  	select EXYNOS4_SETUP_FIMD0
>  	select EXYNOS4_SETUP_SDHCI
>  	select EXYNOS4_SETUP_USB_PHY
> diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
> index f56d027..a0116036 100644
> --- a/arch/arm/mach-exynos/mach-origen.c
> +++ b/arch/arm/mach-exynos/mach-origen.c
> @@ -42,6 +42,7 @@
>  #include <plat/fb.h>
>  #include <plat/mfc.h>
> 
> +#include <mach/ohci.h>
>  #include <mach/map.h>
> 
>  /* Following are default values for UCON, ULCON and UFCON UART registers */
> @@ -487,6 +488,16 @@ static void __init origen_ehci_init(void)
>  	s5p_ehci_set_platdata(pdata);
>  }
> 
> +/* USB OHCI */
> +static struct exynos4_ohci_platdata origen_ohci_pdata;
> +
> +static void __init origen_ohci_init(void)
> +{
> +	struct exynos4_ohci_platdata *pdata = &origen_ohci_pdata;
> +
> +	exynos4_ohci_set_platdata(pdata);
> +}
> +
>  static struct gpio_keys_button origen_gpio_keys_table[] = {
>  	{
>  		.code			= KEY_MENU,
> @@ -627,6 +638,7 @@ static struct platform_device *origen_devices[] __initdata = {
>  	&s5p_device_mfc_l,
>  	&s5p_device_mfc_r,
>  	&s5p_device_mixer,
> +	&exynos4_device_ohci,
>  	&exynos4_device_pd[PD_LCD0],
>  	&exynos4_device_pd[PD_TV],
>  	&exynos4_device_pd[PD_G3D],
> @@ -702,6 +714,7 @@ static void __init origen_machine_init(void)
>  	s3c_sdhci0_set_platdata(&origen_hsmmc0_pdata);
> 
>  	origen_ehci_init();
> +	origen_ohci_init();
>  	clk_xusbxti.rate = 24000000;
> 
>  	s5p_tv_setup();
> --
> 1.7.4.1
Kukjin Kim Dec. 24, 2011, 1:48 a.m. UTC | #2
Jingoo Han wrote:
> 
> Hi, Tushar.
> 
> Tushar Behera wrote:
> > -----Original Message-----
> > Subject: [PATCH] ARM: EXYNOS: Add USB OHCI support to ORIGEN board
> >
> > Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
> > Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
> 
> Acked-by: Jingoo Han <jg1.han@samsung.com>
> 
OK, will apply.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.


> Thanks.
> 
> Best regards,
> Jingoo Han
> > ---
> >
> > This patch are based Kukjin's for-next branch and OHCI related
> > patches from Jingoo Han.
> > [PATCH v2 0/3] Support Samsung Exynos OHCI device and driver
> >
> >  arch/arm/mach-exynos/Kconfig       |    1 +
> >  arch/arm/mach-exynos/mach-origen.c |   13 +++++++++++++
> >  2 files changed, 14 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
> > index bd1bb9f1..0da2ced 100644
> > --- a/arch/arm/mach-exynos/Kconfig
> > +++ b/arch/arm/mach-exynos/Kconfig
> > @@ -304,6 +304,7 @@ config MACH_ORIGEN
> >  	select SAMSUNG_DEV_PWM
> >  	select EXYNOS4_DEV_DMA
> >  	select EXYNOS4_DEV_PD
> > +	select EXYNOS4_DEV_USB_OHCI
> >  	select EXYNOS4_SETUP_FIMD0
> >  	select EXYNOS4_SETUP_SDHCI
> >  	select EXYNOS4_SETUP_USB_PHY
> > diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-
> exynos/mach-origen.c
> > index f56d027..a0116036 100644
> > --- a/arch/arm/mach-exynos/mach-origen.c
> > +++ b/arch/arm/mach-exynos/mach-origen.c
> > @@ -42,6 +42,7 @@
> >  #include <plat/fb.h>
> >  #include <plat/mfc.h>
> >
> > +#include <mach/ohci.h>
> >  #include <mach/map.h>
> >
> >  /* Following are default values for UCON, ULCON and UFCON UART
> registers */
> > @@ -487,6 +488,16 @@ static void __init origen_ehci_init(void)
> >  	s5p_ehci_set_platdata(pdata);
> >  }
> >
> > +/* USB OHCI */
> > +static struct exynos4_ohci_platdata origen_ohci_pdata;
> > +
> > +static void __init origen_ohci_init(void)
> > +{
> > +	struct exynos4_ohci_platdata *pdata = &origen_ohci_pdata;
> > +
> > +	exynos4_ohci_set_platdata(pdata);
> > +}
> > +
> >  static struct gpio_keys_button origen_gpio_keys_table[] = {
> >  	{
> >  		.code			= KEY_MENU,
> > @@ -627,6 +638,7 @@ static struct platform_device *origen_devices[]
> __initdata = {
> >  	&s5p_device_mfc_l,
> >  	&s5p_device_mfc_r,
> >  	&s5p_device_mixer,
> > +	&exynos4_device_ohci,
> >  	&exynos4_device_pd[PD_LCD0],
> >  	&exynos4_device_pd[PD_TV],
> >  	&exynos4_device_pd[PD_G3D],
> > @@ -702,6 +714,7 @@ static void __init origen_machine_init(void)
> >  	s3c_sdhci0_set_platdata(&origen_hsmmc0_pdata);
> >
> >  	origen_ehci_init();
> > +	origen_ohci_init();
> >  	clk_xusbxti.rate = 24000000;
> >
> >  	s5p_tv_setup();
> > --
> > 1.7.4.1
diff mbox

Patch

diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index bd1bb9f1..0da2ced 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -304,6 +304,7 @@  config MACH_ORIGEN
 	select SAMSUNG_DEV_PWM
 	select EXYNOS4_DEV_DMA
 	select EXYNOS4_DEV_PD
+	select EXYNOS4_DEV_USB_OHCI
 	select EXYNOS4_SETUP_FIMD0
 	select EXYNOS4_SETUP_SDHCI
 	select EXYNOS4_SETUP_USB_PHY
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c
index f56d027..a0116036 100644
--- a/arch/arm/mach-exynos/mach-origen.c
+++ b/arch/arm/mach-exynos/mach-origen.c
@@ -42,6 +42,7 @@ 
 #include <plat/fb.h>
 #include <plat/mfc.h>
 
+#include <mach/ohci.h>
 #include <mach/map.h>
 
 /* Following are default values for UCON, ULCON and UFCON UART registers */
@@ -487,6 +488,16 @@  static void __init origen_ehci_init(void)
 	s5p_ehci_set_platdata(pdata);
 }
 
+/* USB OHCI */
+static struct exynos4_ohci_platdata origen_ohci_pdata;
+
+static void __init origen_ohci_init(void)
+{
+	struct exynos4_ohci_platdata *pdata = &origen_ohci_pdata;
+
+	exynos4_ohci_set_platdata(pdata);
+}
+
 static struct gpio_keys_button origen_gpio_keys_table[] = {
 	{
 		.code			= KEY_MENU,
@@ -627,6 +638,7 @@  static struct platform_device *origen_devices[] __initdata = {
 	&s5p_device_mfc_l,
 	&s5p_device_mfc_r,
 	&s5p_device_mixer,
+	&exynos4_device_ohci,
 	&exynos4_device_pd[PD_LCD0],
 	&exynos4_device_pd[PD_TV],
 	&exynos4_device_pd[PD_G3D],
@@ -702,6 +714,7 @@  static void __init origen_machine_init(void)
 	s3c_sdhci0_set_platdata(&origen_hsmmc0_pdata);
 
 	origen_ehci_init();
+	origen_ohci_init();
 	clk_xusbxti.rate = 24000000;
 
 	s5p_tv_setup();