* [PATCH] ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board
@ 2011-11-29 3:47 Jingoo Han
2011-12-02 3:41 ` Tushar Behera
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2011-11-29 3:47 UTC (permalink / raw)
To: Kukjin Kim, linux-samsung-soc; +Cc: Jingoo Han
This patch adds USB OTG gadget device support to SMDKV210 board,
which can support USB high-speed gadget drivers.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
arch/arm/mach-s5pv210/Kconfig | 1 +
arch/arm/mach-s5pv210/mach-smdkv210.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig
index 646057a..e42fbdd 100644
--- a/arch/arm/mach-s5pv210/Kconfig
+++ b/arch/arm/mach-s5pv210/Kconfig
@@ -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
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
index a9106c3..a56ae9a 100644
--- a/arch/arm/mach-s5pv210/mach-smdkv210.c
+++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
@@ -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));
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board
2011-11-29 3:47 [PATCH] ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board Jingoo Han
@ 2011-12-02 3:41 ` Tushar Behera
0 siblings, 0 replies; 2+ messages in thread
From: Tushar Behera @ 2011-12-02 3:41 UTC (permalink / raw)
To: Jingoo Han; +Cc: Kukjin Kim, linux-samsung-soc
Hi Jingoo,
On Tuesday 29 November 2011 09:17 AM, Jingoo Han wrote:
[ snip ]
> diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
[ snip ]
> @@ -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.
> platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
> }
>
--
Tushar Behera
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-02 3:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 3:47 [PATCH] ARM: S5PV210: Add USB OTG gadget device support to SMDKV210 board Jingoo Han
2011-12-02 3:41 ` Tushar Behera
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.