summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos4/mach-origen.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2011-08-31 15:47:16 +0900
committerKukjin Kim <kgene.kim@samsung.com>2011-10-03 08:42:21 +0900
commit24f9e1f31471abbd2af62eb529deee90bad4c65c (patch)
tree9c86492570f7c0565e985e3b18f22757a1eea2b2 /arch/arm/mach-exynos4/mach-origen.c
parent218f82e6249e79bd4cb38f27e4883770d6caa1da (diff)
downloadop-kernel-dev-24f9e1f31471abbd2af62eb529deee90bad4c65c.zip
op-kernel-dev-24f9e1f31471abbd2af62eb529deee90bad4c65c.tar.gz
ARM: EXYNOS4: Add USB EHCI device to ORIGEN board
Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> [kgene.kim@samsung.com: re-ordering changes in Kconfig] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos4/mach-origen.c')
-rw-r--r--arch/arm/mach-exynos4/mach-origen.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos4/mach-origen.c b/arch/arm/mach-exynos4/mach-origen.c
index ed59f86..d101756 100644
--- a/arch/arm/mach-exynos4/mach-origen.c
+++ b/arch/arm/mach-exynos4/mach-origen.c
@@ -24,6 +24,8 @@
#include <plat/devs.h>
#include <plat/sdhci.h>
#include <plat/iic.h>
+#include <plat/ehci.h>
+#include <plat/clock.h>
#include <mach/map.h>
@@ -79,10 +81,21 @@ static struct s3c_sdhci_platdata origen_hsmmc2_pdata __initdata = {
.clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL,
};
+/* USB EHCI */
+static struct s5p_ehci_platdata origen_ehci_pdata;
+
+static void __init origen_ehci_init(void)
+{
+ struct s5p_ehci_platdata *pdata = &origen_ehci_pdata;
+
+ s5p_ehci_set_platdata(pdata);
+}
+
static struct platform_device *origen_devices[] __initdata = {
&s3c_device_hsmmc2,
&s3c_device_rtc,
&s3c_device_wdt,
+ &s5p_device_ehci,
};
static void __init origen_map_io(void)
@@ -95,6 +108,10 @@ static void __init origen_map_io(void)
static void __init origen_machine_init(void)
{
s3c_sdhci2_set_platdata(&origen_hsmmc2_pdata);
+
+ origen_ehci_init();
+ clk_xusbxti.rate = 24000000;
+
platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices));
}
OpenPOWER on IntegriCloud