aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPankaj <pankaj.dubey@samsung.com>2011-12-15 15:13:38 +0800
committerAndy Green <andy.green@linaro.org>2011-12-26 22:33:55 +0800
commit1fa4b4e2efa0571efddf50370dc25216b476d192 (patch)
treeb3a7ec4f760f68a2c7642cb562a1614cfaf994c7
parenta194aaeb6676d5ac348091453e6b4f359930334b (diff)
ARM: EXYNOS4: Add support of UDC for origen board
Added USB device controller support on origen machine file. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
-rw-r--r--arch/arm/mach-exynos/mach-origen.c13
1 files changed, 13 insertions, 0 deletions
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 <plat/pd.h>
#include <plat/fb.h>
#include <plat/mfc.h>
+#include <plat/otg.h>
#include <mach/map.h>
@@ -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();