ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board
Subsystems (3)
PATCH 1/1 ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board
This patch adds USB OTG gadget device support to SMDKV210 board, which can support USB high-speed gadget drivers.
Signed-off-by Jingoo Han <[email protected]>
--- arch/arm/mach-s5pv210/Kconfig | 1 + arch/arm/mach-s5pv210/mach-smdkv210.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/Kconfig +1 -0
@@ -137,6 +137,7 @@ config MACH_SMDKV210 select S3C_DEV_I2C2 select S3C_DEV_RTC select S3C_DEV_WDT + select S3C_DEV_USB_HSOTG select SAMSUNG_DEV_ADC select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_IDE
arch/arm/mach-s5pv210/mach-smdkv210.c +4 -0
@@ -46,6 +46,7 @@#include <plat/s5p-time.h> #include <plat/backlight.h> #include <plat/regs-fb-v4.h> +#include <plat/clock.h> /* Following are default values for UCON, ULCON and UFCON UART registers */ #define SMDKV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
@@ -225,6 +226,7 @@ static struct platform_device *smdkv210_devices[] __initdata = { &s3c_device_rtc, &s3c_device_ts, &s3c_device_wdt, + &s3c_device_usb_hsotg, &s5pv210_device_ac97, &s5pv210_device_iis0, &s5pv210_device_spdif,
@@ -308,6 +310,8 @@ static void __init smdkv210_machine_init(void)samsung_bl_set (&smdkv210_bl_gpio_info, &smdkv210_bl_data); + clk_xusbxti.rate =24000000 ; +platform_add_devices (smdkv210_devices,ARRAY_SIZE (smdkv210_devices)); }
Signature · 1 line
1.7.1
Hi Jingoo,
On Tuesday 29 November 2011 09:17 AM, Jingoo Han wrote:
[ snip ]
Quoted 1 line
arch/arm/mach-s5pv210/mach-smdkv210.c +0
-0
[ snip ]
arch/arm/mach-s5pv210/mach-smdkv210.c static void __init smdkv210_machine_init(void) · line 314
Quoted 6 lines
arch/arm/mach-s5pv210/mach-smdkv210.c +2
-0@@ -308,6 +310,8 @@ static void __init smdkv210_machine_init(void)samsung_bl_set (&smdkv210_bl_gpio_info,&smdkv210_bl_data); + clk_xusbxti.rate =24000000 ; +
Would it be a good idea to set the default rate of clk_xusbxti in arch/arm/plat-s5p/clock.c and remove the explicit rate setting in all the machine files?
Currently, the clock is also set in machine files for which ehci is enabled.
Quoted 3 lines
arch/arm/mach-s5pv210/mach-smdkv210.c +0
-0platform_add_devices (smdkv210_devices,ARRAY_SIZE (smdkv210_devices)); }
Signature · 1 line
Tushar Behera