ARM: EXYNOS: Add USB OHCI support to SMDKV310 board
authorJingoo Han <jg1.han@samsung.com>
Fri, 23 Dec 2011 02:20:50 +0000 (11:20 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 23 Dec 2011 02:21:48 +0000 (11:21 +0900)
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/Kconfig
arch/arm/mach-exynos/mach-smdkv310.c

index a1d1a060b8929c1e02078170cd148d50bb3b7bbd..5328011f2536de664d37de9765c1214a058d6e97 100644 (file)
@@ -184,6 +184,7 @@ config MACH_SMDKV310
        select SAMSUNG_DEV_KEYPAD
        select EXYNOS4_DEV_PD
        select SAMSUNG_DEV_PWM
+       select EXYNOS4_DEV_USB_OHCI
        select EXYNOS4_DEV_SYSMMU
        select EXYNOS4_SETUP_FIMD0
        select EXYNOS4_SETUP_I2C1
index cec2afabe7b42475e2d1f8585642b048ea7ee34b..25a5a405c4bff1a538495b563a1924c3945f70da 100644 (file)
@@ -42,6 +42,7 @@
 #include <plat/clock.h>
 
 #include <mach/map.h>
+#include <mach/ohci.h>
 
 /* Following are default values for UCON, ULCON and UFCON UART registers */
 #define SMDKV310_UCON_DEFAULT  (S3C2410_UCON_TXILEVEL |        \
@@ -245,6 +246,16 @@ static void __init smdkv310_ehci_init(void)
        s5p_ehci_set_platdata(pdata);
 }
 
+/* USB OHCI */
+static struct exynos4_ohci_platdata smdkv310_ohci_pdata;
+
+static void __init smdkv310_ohci_init(void)
+{
+       struct exynos4_ohci_platdata *pdata = &smdkv310_ohci_pdata;
+
+       exynos4_ohci_set_platdata(pdata);
+}
+
 static struct platform_device *smdkv310_devices[] __initdata = {
        &s3c_device_hsmmc0,
        &s3c_device_hsmmc1,
@@ -261,6 +272,7 @@ static struct platform_device *smdkv310_devices[] __initdata = {
        &s5p_device_fimc3,
        &exynos4_device_ac97,
        &exynos4_device_i2s0,
+       &exynos4_device_ohci,
        &samsung_device_keypad,
        &s5p_device_mfc,
        &s5p_device_mfc_l,
@@ -363,6 +375,7 @@ static void __init smdkv310_machine_init(void)
        s5p_fimd0_set_platdata(&smdkv310_lcd0_pdata);
 
        smdkv310_ehci_init();
+       smdkv310_ohci_init();
        clk_xusbxti.rate = 24000000;
 
        platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));