aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2416
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-04-29 21:59:42 -0400
committerBen Dooks <ben-linux@fluff.org>2010-05-09 22:44:44 -0400
commita6e1ec7f69950864ff8d992da6d929b1444f7cb3 (patch)
tree510c88a55ed493289197563c7b586285dee47f81 /arch/arm/mach-s3c2416
parentc140c98ac161ad270a768126431e36a22f86f6b3 (diff)
ARM: S3C2416: Add support for OHCI on SMDK2416
Add device definition and ensure that the host port is powered up at start time. Full power control can be added at a later date. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2416')
-rw-r--r--arch/arm/mach-s3c2416/mach-smdk2416.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2416/mach-smdk2416.c b/arch/arm/mach-s3c2416/mach-smdk2416.c
index a51973c7334c..99d24c44f30f 100644
--- a/arch/arm/mach-s3c2416/mach-smdk2416.c
+++ b/arch/arm/mach-s3c2416/mach-smdk2416.c
@@ -21,6 +21,7 @@
21#include <linux/platform_device.h> 21#include <linux/platform_device.h>
22#include <linux/io.h> 22#include <linux/io.h>
23#include <linux/mtd/partitions.h> 23#include <linux/mtd/partitions.h>
24#include <linux/gpio.h>
24 25
25#include <asm/mach/arch.h> 26#include <asm/mach/arch.h>
26#include <asm/mach/map.h> 27#include <asm/mach/map.h>
@@ -110,6 +111,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = {
110 111
111static struct platform_device *smdk2416_devices[] __initdata = { 112static struct platform_device *smdk2416_devices[] __initdata = {
112 &s3c_device_wdt, 113 &s3c_device_wdt,
114 &s3c_device_ohci,
113 &s3c_device_i2c0, 115 &s3c_device_i2c0,
114 &s3c_device_hsmmc0, 116 &s3c_device_hsmmc0,
115 &s3c_device_hsmmc1, 117 &s3c_device_hsmmc1,
@@ -128,6 +130,9 @@ static void __init smdk2416_machine_init(void)
128{ 130{
129 s3c_i2c0_set_platdata(NULL); 131 s3c_i2c0_set_platdata(NULL);
130 132
133 gpio_request(S3C2410_GPB(4), "USBHost Power");
134 gpio_direction_output(S3C2410_GPB(4), 1);
135
131 platform_add_devices(smdk2416_devices, ARRAY_SIZE(smdk2416_devices)); 136 platform_add_devices(smdk2416_devices, ARRAY_SIZE(smdk2416_devices));
132 smdk_machine_init(); 137 smdk_machine_init();
133} 138}