From 1fa4b4e2efa0571efddf50370dc25216b476d192 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Thu, 15 Dec 2011 15:13:38 +0800 Subject: ARM: EXYNOS4: Add support of UDC for origen board Added USB device controller support on origen machine file. Signed-off-by: Pankaj Dubey Signed-off-by: Sachin Kamat --- arch/arm/mach-exynos/mach-origen.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 417622d56b3..981a9430200 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -41,6 +41,7 @@ #include #include #include +#include #include @@ -494,6 +495,16 @@ static void __init origen_ohci_init(void) s5p_ohci_set_platdata(pdata); } +/* USB OTG */ +static struct s5p_otg_platdata origen_otg_pdata; + +static void __init origen_otg_init(void) +{ + struct s5p_otg_platdata *pdata = &origen_otg_pdata; + + s5p_otg_set_platdata(pdata); +} + static struct gpio_keys_button origen_gpio_keys_table[] = { { .code = KEY_MENU, @@ -604,6 +615,7 @@ static struct platform_device *origen_devices[] __initdata = { &s3c_device_hsmmc0, &s3c_device_i2c0, &s3c_device_rtc, + &s3c_device_usbgadget, &s3c_device_wdt, &s5p_device_ehci, &s5p_device_ohci, @@ -683,6 +695,7 @@ static void __init origen_machine_init(void) origen_ehci_init(); origen_ohci_init(); + origen_otg_init(); clk_xusbxti.rate = 24000000; s5p_tv_setup(); -- cgit v1.2.3