Skip to content

Commit

Permalink
ARM: EXYNOS4: Add USB EHCI device to ORIGEN board
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Kukjin Kim committed Oct 2, 2011
1 parent 218f82e commit 24f9e1f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-exynos4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ config MACH_ORIGEN
select S3C_DEV_RTC
select S3C_DEV_WDT
select S3C_DEV_HSMMC2
select S5P_DEV_USB_EHCI
select EXYNOS4_SETUP_SDHCI
select EXYNOS4_SETUP_USB_PHY
help
Machine support for ORIGEN based on Samsung EXYNOS4210

Expand Down
17 changes: 17 additions & 0 deletions arch/arm/mach-exynos4/mach-origen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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)
Expand All @@ -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));
}

Expand Down

0 comments on commit 24f9e1f

Please sign in to comment.