Skip to contentSkip to conversation

ARM: EXYNOS4: ADD USB EHCI device to SMDKV310

PATCH In review Sachin Kamat 4 participants 4 messages Aug 17, 2011 – Sep 7, 2011 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS4: ADD USB EHCI device to SMDKV310

---
 arch/arm/mach-exynos4/Kconfig         |    2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +2 -0
index bb29d51..cc97d23 100644
@@ -136,6 +136,7 @@ config MACH_SMDKV310
 	bool "SMDKV310"
 	select CPU_EXYNOS4210
 	select S5P_DEV_FIMD0
+	select S5P_DEV_USB_EHCI
 	select S3C_DEV_RTC
 	select S3C_DEV_WDT
 	select S3C_DEV_I2C1
@@ -151,6 +152,7 @@ config MACH_SMDKV310
 	select SAMSUNG_DEV_PWM
 	select EXYNOS4_DEV_SYSMMU
 	select EXYNOS4_SETUP_FIMD0
+	select EXYNOS4_SETUP_USB_PHY
 	select EXYNOS4_SETUP_I2C1
 	select EXYNOS4_SETUP_KEYPAD
 	select EXYNOS4_SETUP_SDHCI
arch/arm/mach-exynos4/mach-smdkv310.c +16 -0
index 5f62b2b..b6c28ea 100644
@@ -33,6 +33,8 @@
 #include <plat/gpio-cfg.h>
 #include <plat/backlight.h>
 #include <plat/mfc.h>
+#include <plat/ehci.h>
+#include <plat/clock.h>
 
 #include <mach/map.h>
 
@@ -167,6 +169,16 @@ static struct i2c_board_info i2c_devs1[] __initdata = {
 	{I2C_BOARD_INFO("wm8994", 0x1a),},
 };
 
+/* USB EHCI */
+static struct s5p_ehci_platdata smdkv310_ehci_pdata;
+
+static void __init smdkv310_ehci_init(void)
+{
+	struct s5p_ehci_platdata *pdata = &smdkv310_ehci_pdata;
+
+	s5p_ehci_set_platdata(pdata);
+}
+
 static struct platform_device *smdkv310_devices[] __initdata = {
 	&s3c_device_hsmmc0,
 	&s3c_device_hsmmc1,
@@ -175,6 +187,7 @@ static struct platform_device *smdkv310_devices[] __initdata = {
 	&s3c_device_i2c1,
 	&s3c_device_rtc,
 	&s3c_device_wdt,
+	&s5p_device_ehci,
 	&exynos4_device_ac97,
 	&exynos4_device_i2s0,
 	&samsung_device_keypad,
@@ -258,6 +271,9 @@ static void __init smdkv310_machine_init(void)
 
 	samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data);
 
+	smdkv310_ehci_init();
+	clk_xusbxti.rate = 24000000;
+
 	platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
 	s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev;
 }
Signature · 1 line
1.7.4.1
#1 lore raw

arch/arm/mach-exynos4/mach-smdkv310.c static struct i2c_board_info i2c_devs1[] __initdata =

Quoted 44 lines · Sachin Kamat
---
 arch/arm/mach-exynos4/Kconfig         |    2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +2 -0
index bb29d51..cc97d23 100644
@@ -136,6 +136,7 @@ config MACH_SMDKV310
 	bool "SMDKV310"
 	select CPU_EXYNOS4210
 	select S5P_DEV_FIMD0
+	select S5P_DEV_USB_EHCI
 	select S3C_DEV_RTC
 	select S3C_DEV_WDT
 	select S3C_DEV_I2C1
@@ -151,6 +152,7 @@ config MACH_SMDKV310
 	select SAMSUNG_DEV_PWM
 	select EXYNOS4_DEV_SYSMMU
 	select EXYNOS4_SETUP_FIMD0
+	select EXYNOS4_SETUP_USB_PHY
 	select EXYNOS4_SETUP_I2C1
 	select EXYNOS4_SETUP_KEYPAD
 	select EXYNOS4_SETUP_SDHCI
arch/arm/mach- renamed from arch/arm/mach-exynos4/mach-smdkv310.c +0 -0

exynos4/mach-smdkv310.c
index 5f62b2b..b6c28ea 100644

arch/arm/mach-exynos4/mach-smdkv310.c +2 -0
@@ -33,6 +33,8 @@
 #include <plat/gpio-cfg.h>
 #include <plat/backlight.h>
 #include <plat/mfc.h>
+#include <plat/ehci.h>
+#include <plat/clock.h>
 
 #include <mach/map.h>
 
@@ -167,6 +169,16 @@ static struct i2c_board_info i2c_devs1[] __initdata =

{

Quoted 35 lines
arch/arm/mach-exynos4/mach-smdkv310.c +11 -0
 	{I2C_BOARD_INFO("wm8994", 0x1a),},
 };
 
+/* USB EHCI */
+static struct s5p_ehci_platdata smdkv310_ehci_pdata;
+
+static void __init smdkv310_ehci_init(void)
+{
+	struct s5p_ehci_platdata *pdata = &smdkv310_ehci_pdata;
+
+	s5p_ehci_set_platdata(pdata);
+}
+
 static struct platform_device *smdkv310_devices[] __initdata = {
 	&s3c_device_hsmmc0,
 	&s3c_device_hsmmc1,
@@ -175,6 +187,7 @@ static struct platform_device *smdkv310_devices[]
 __initdata = {
 	&s3c_device_i2c1,
 	&s3c_device_rtc,
 	&s3c_device_wdt,
+	&s5p_device_ehci,
 	&exynos4_device_ac97,
 	&exynos4_device_i2s0,
arch/arm/mach-exynos4/mach-smdkv310.c +3 -0
 	&samsung_device_keypad,
@@ -258,6 +271,9 @@ static void __init smdkv310_machine_init(void)
 
 	samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data);
 
+	smdkv310_ehci_init();
+	clk_xusbxti.rate = 24000000;
+
 	platform_add_devices(smdkv310_devices,
 ARRAY_SIZE(smdkv310_devices));
 	s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev;
Quoted 3 lines

}
--
1.7.4.1

(Cc'ed Jingoo Han)

Well, this is same with Jingoo's patch on smdkc210 which has been submitted at 12th Aug.

I requested to him to re-work this on smdkv310 on his patch just now... Hmm...I don't know :(

Let me think again...

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#2 lore raw
In reply to Sachin Kamat
Quoted 11 lines · Kukjin Kim
Quoted 9 lines · Sachin Kamat
---
 arch/arm/mach-exynos4/Kconfig         |    2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -0

b/arch/arm/mach-exynos4/Kconfig

Quoted 31 lines
Quoted 31 lines

index bb29d51..cc97d23 100644

arch/arm/mach-exynos4/Kconfig +2 -0
@@ -136,6 +136,7 @@ config MACH_SMDKV310
 	bool "SMDKV310"
 	select CPU_EXYNOS4210
 	select S5P_DEV_FIMD0
+	select S5P_DEV_USB_EHCI
 	select S3C_DEV_RTC
 	select S3C_DEV_WDT
 	select S3C_DEV_I2C1
@@ -151,6 +152,7 @@ config MACH_SMDKV310
 	select SAMSUNG_DEV_PWM
 	select EXYNOS4_DEV_SYSMMU
 	select EXYNOS4_SETUP_FIMD0
+	select EXYNOS4_SETUP_USB_PHY
 	select EXYNOS4_SETUP_I2C1
 	select EXYNOS4_SETUP_KEYPAD
 	select EXYNOS4_SETUP_SDHCI
arch/arm/mach- renamed from arch/arm/mach-exynos4/mach-smdkv310.c +0 -0

exynos4/mach-smdkv310.c
index 5f62b2b..b6c28ea 100644

arch/arm/mach-exynos4/mach-smdkv310.c +2 -0
@@ -33,6 +33,8 @@
 #include <plat/gpio-cfg.h>
 #include <plat/backlight.h>
 #include <plat/mfc.h>
+#include <plat/ehci.h>
+#include <plat/clock.h>
 
Quoted 3 lines

arch/arm/mach-exynos4/mach-smdkv310.c static struct i2c_board_info i2c_devs1[] __initdata

Quoted 3 lines
arch/arm/mach-exynos4/mach-smdkv310.c +0 -0
 #include <mach/map.h>
 
@@ -167,6 +169,16 @@ static struct i2c_board_info i2c_devs1[] __initdata

= {

Quoted 41 lines
Quoted 35 lines
arch/arm/mach-exynos4/mach-smdkv310.c +11 -0
 	{I2C_BOARD_INFO("wm8994", 0x1a),},
 };
 
+/* USB EHCI */
+static struct s5p_ehci_platdata smdkv310_ehci_pdata;
+
+static void __init smdkv310_ehci_init(void)
+{
+	struct s5p_ehci_platdata *pdata = &smdkv310_ehci_pdata;
+
+	s5p_ehci_set_platdata(pdata);
+}
+
 static struct platform_device *smdkv310_devices[] __initdata = {
 	&s3c_device_hsmmc0,
 	&s3c_device_hsmmc1,
@@ -175,6 +187,7 @@ static struct platform_device *smdkv310_devices[]
 __initdata = {
 	&s3c_device_i2c1,
 	&s3c_device_rtc,
 	&s3c_device_wdt,
+	&s5p_device_ehci,
 	&exynos4_device_ac97,
 	&exynos4_device_i2s0,
arch/arm/mach-exynos4/mach-smdkv310.c +3 -0
 	&samsung_device_keypad,
@@ -258,6 +271,9 @@ static void __init smdkv310_machine_init(void)
 
 	samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data);
 
+	smdkv310_ehci_init();
+	clk_xusbxti.rate = 24000000;
+
 	platform_add_devices(smdkv310_devices,
 ARRAY_SIZE(smdkv310_devices));
 	s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev;
Quoted 3 lines

}
--
1.7.4.1

(Cc'ed Jingoo Han)

Quoted 1 line

Well, this is same with Jingoo's patch on smdkc210 which has been

submitted at

Quoted 7 lines

12th Aug.

I requested to him to re-work this on smdkv310 on his patch just now... Hmm...I don't know :(

Let me think again...

As I've heard, Jingoo talked you about this patch and you agreed to use Jingoo's patch on SMDKV310. So I dropped this and will pick up his patch.

If any problems, please let me know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

A message that is not in the archive (sent off-list or not yet received): 000801cc6d2b$5b49db50$11dd91f0$%[email protected]

#4 lore raw

Hi Kukjin,

As far as the patch is concerned, there is no difference between mine and Jingoo's.
So you can go ahead with either of them. No problems from my side.

Regards
Sachin

Quoted 114 lines · Kukjin Kim
Quoted 11 lines · Kukjin Kim
Quoted 9 lines · Sachin Kamat
---
 arch/arm/mach-exynos4/Kconfig         |    2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   16 ++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
Quoted 1 line

Review

Quoted 1 line
(quoted diff) +0 -0

b/arch/arm/mach-exynos4/Kconfig

Quoted 31 lines
Quoted 31 lines

index bb29d51..cc97d23 100644

arch/arm/mach-exynos4/Kconfig +2 -0
@@ -136,6 +136,7 @@ config MACH_SMDKV310
    bool "SMDKV310"
    select CPU_EXYNOS4210
    select S5P_DEV_FIMD0
+   select S5P_DEV_USB_EHCI
    select S3C_DEV_RTC
    select S3C_DEV_WDT
    select S3C_DEV_I2C1
@@ -151,6 +152,7 @@ config MACH_SMDKV310
    select SAMSUNG_DEV_PWM
    select EXYNOS4_DEV_SYSMMU
    select EXYNOS4_SETUP_FIMD0
+   select EXYNOS4_SETUP_USB_PHY
    select EXYNOS4_SETUP_I2C1
    select EXYNOS4_SETUP_KEYPAD
    select EXYNOS4_SETUP_SDHCI
arch/arm/mach- renamed from arch/arm/mach-exynos4/mach-smdkv310.c +0 -0

exynos4/mach-smdkv310.c
index 5f62b2b..b6c28ea 100644

arch/arm/mach-exynos4/mach-smdkv310.c +2 -0
@@ -33,6 +33,8 @@
 #include <plat/gpio-cfg.h>
 #include <plat/backlight.h>
 #include <plat/mfc.h>
+#include <plat/ehci.h>
+#include <plat/clock.h>
 
Quoted 3 lines

arch/arm/mach-exynos4/mach-smdkv310.c static struct i2c_board_info i2c_devs1[]

Quoted 3 lines
arch/arm/mach-exynos4/mach-smdkv310.c +0 -0
 #include <mach/map.h>
 
@@ -167,6 +169,16 @@ static struct i2c_board_info i2c_devs1[]

__initdata
= {

Quoted 41 lines
Quoted 35 lines
arch/arm/mach-exynos4/mach-smdkv310.c +11 -0
    {I2C_BOARD_INFO("wm8994", 0x1a),},
 };
 
+/* USB EHCI */
+static struct s5p_ehci_platdata smdkv310_ehci_pdata;
+
+static void __init smdkv310_ehci_init(void)
+{
+   struct s5p_ehci_platdata *pdata = &smdkv310_ehci_pdata;
+
+   s5p_ehci_set_platdata(pdata);
+}
+
 static struct platform_device *smdkv310_devices[] __initdata = {
    &s3c_device_hsmmc0,
    &s3c_device_hsmmc1,
@@ -175,6 +187,7 @@ static struct platform_device *smdkv310_devices[]
 __initdata = {
    &s3c_device_i2c1,
    &s3c_device_rtc,
    &s3c_device_wdt,
+   &s5p_device_ehci,
    &exynos4_device_ac97,
    &exynos4_device_i2s0,

&samsung_device_keypad,

arch/arm/mach-exynos4/mach-smdkv310.c +3 -0
@@ -258,6 +271,9 @@ static void __init smdkv310_machine_init(void)
 
    samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data);
 
+   smdkv310_ehci_init();
+   clk_xusbxti.rate = 24000000;
+
    platform_add_devices(smdkv310_devices,
 ARRAY_SIZE(smdkv310_devices));
    s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC].dev;
Quoted 3 lines

}
--
1.7.4.1

(Cc'ed Jingoo Han)

Quoted 1 line

Well, this is same with Jingoo's patch on smdkc210 which has been

submitted at

Quoted 7 lines

12th Aug.

I requested to him to re-work this on smdkv310 on his patch just now... Hmm...I don't know :(

Let me think again...

As I've heard, Jingoo talked you about this patch and you agreed to use Jingoo's patch on SMDKV310. So I dropped this and will pick up his patch.

If any problems, please let me know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

Signature · 2 lines
With warm regards,
Sachin

_______________________________________________
linaro-dev mailing list [email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev