From 82cec84a81a78e2440276868150ef3fe8373878e Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 28 Jan 2009 15:45:55 +0000 Subject: fix-gta03-usb-otg-setup.patch Signed-off-by: Andy Green --- arch/arm/mach-s3c6410/mach-om-gta03.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'arch/arm/mach-s3c6410') 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 #include +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); -- cgit v1.2.3