Commit a6e1ec7f authored by Ben Dooks's avatar Ben Dooks

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: default avatarBen Dooks <ben-linux@fluff.org>
parent c140c98a
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/gpio.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
...@@ -110,6 +111,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = { ...@@ -110,6 +111,7 @@ static struct s3c2410_uartcfg smdk2416_uartcfgs[] __initdata = {
static struct platform_device *smdk2416_devices[] __initdata = { static struct platform_device *smdk2416_devices[] __initdata = {
&s3c_device_wdt, &s3c_device_wdt,
&s3c_device_ohci,
&s3c_device_i2c0, &s3c_device_i2c0,
&s3c_device_hsmmc0, &s3c_device_hsmmc0,
&s3c_device_hsmmc1, &s3c_device_hsmmc1,
...@@ -128,6 +130,9 @@ static void __init smdk2416_machine_init(void) ...@@ -128,6 +130,9 @@ static void __init smdk2416_machine_init(void)
{ {
s3c_i2c0_set_platdata(NULL); s3c_i2c0_set_platdata(NULL);
gpio_request(S3C2410_GPB(4), "USBHost Power");
gpio_direction_output(S3C2410_GPB(4), 1);
platform_add_devices(smdk2416_devices, ARRAY_SIZE(smdk2416_devices)); platform_add_devices(smdk2416_devices, ARRAY_SIZE(smdk2416_devices));
smdk_machine_init(); smdk_machine_init();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment