diff options
author | Andy Green <andy@openmoko.com> | 2009-01-28 15:45:55 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-01-28 15:45:55 +0000 |
commit | 82cec84a81a78e2440276868150ef3fe8373878e (patch) | |
tree | 0a234e6539617a3e88eaff45c373599ffaefef2f /arch/arm/mach-s3c6410/mach-om-gta03.c | |
parent | fa2cc1e76c4cdece93c39b07efc6d403c8a567a1 (diff) |
fix-gta03-usb-otg-setup.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c6410/mach-om-gta03.c')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-om-gta03.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c index af8be235ecd..211ae668eb0 100644 --- a/arch/arm/mach-s3c6410/mach-om-gta03.c +++ b/arch/arm/mach-s3c6410/mach-om-gta03.c @@ -71,6 +71,10 @@ #include <linux/mfd/pcf50633/gpio.h> #include <linux/mfd/pcf50633/pmic.h> +extern struct platform_device s3c_device_usbgadget; + + + #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE @@ -573,6 +577,7 @@ static struct platform_device *om_gta03_devices[] __initdata = { &s3c_device_fb, &s3c_device_i2c0, >a03_device_spi_lcm, + &s3c_device_usbgadget, }; @@ -691,8 +696,19 @@ struct platform_device gta03_device_spi_lcm = { }, }; + + + + + + extern void s3c64xx_init_io(struct map_desc *, int); +struct s3c_plat_otg_data s3c_hs_otg_plat_data = { + .phyclk = 2, /* 12MHz osc */ +}; + + static void __init om_gta03_map_io(void) { s3c64xx_init_io(om_gta03_6410_iodesc, ARRAY_SIZE(om_gta03_6410_iodesc)); @@ -704,6 +720,8 @@ static void __init om_gta03_machine_init(void) { s3c_pm_init(); + s3c_device_usbgadget.dev.platform_data = &s3c_hs_otg_plat_data; + s3c_i2c0_set_platdata(NULL); s3c_fb_set_platdata(&om_gta03_lcd_pdata); |