diff options
| author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-06-20 03:29:52 -0400 |
|---|---|---|
| committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-06-20 03:29:52 -0400 |
| commit | 25bcde9fa805c2f723aa3a0ed559f5e5472a7afc (patch) | |
| tree | 710e076972541eecfc0c8f7bfb09582b3e6f434b | |
| parent | 33fe1a49ad23a63a60a816c99bdf6640f2314aea (diff) | |
ARM: S5PV210: Add HSOTG support to SMDKV210
Adds S3C-HSOTG support to SMDKV210 board.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
| -rw-r--r-- | arch/arm/mach-s5pv210/Kconfig | 2 | ||||
| -rw-r--r-- | arch/arm/mach-s5pv210/mach-smdkv210.c | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig index 88e983b0c82e..77185c38188b 100644 --- a/arch/arm/mach-s5pv210/Kconfig +++ b/arch/arm/mach-s5pv210/Kconfig | |||
| @@ -152,6 +152,7 @@ config MACH_SMDKV210 | |||
| 152 | select S3C_DEV_I2C1 | 152 | select S3C_DEV_I2C1 |
| 153 | select S3C_DEV_I2C2 | 153 | select S3C_DEV_I2C2 |
| 154 | select S3C_DEV_RTC | 154 | select S3C_DEV_RTC |
| 155 | select S3C_DEV_USB_HSOTG | ||
| 155 | select S3C_DEV_WDT | 156 | select S3C_DEV_WDT |
| 156 | select S5P_DEV_FIMC0 | 157 | select S5P_DEV_FIMC0 |
| 157 | select S5P_DEV_FIMC1 | 158 | select S5P_DEV_FIMC1 |
| @@ -170,6 +171,7 @@ config MACH_SMDKV210 | |||
| 170 | select S5PV210_SETUP_IDE | 171 | select S5PV210_SETUP_IDE |
| 171 | select S5PV210_SETUP_KEYPAD | 172 | select S5PV210_SETUP_KEYPAD |
| 172 | select S5PV210_SETUP_SDHCI | 173 | select S5PV210_SETUP_SDHCI |
| 174 | select S5PV210_SETUP_USB_PHY | ||
| 173 | help | 175 | help |
| 174 | Machine support for Samsung SMDKV210 | 176 | Machine support for Samsung SMDKV210 |
| 175 | 177 | ||
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c index 0d7ddec88eb7..c8997bce642d 100644 --- a/arch/arm/mach-s5pv210/mach-smdkv210.c +++ b/arch/arm/mach-s5pv210/mach-smdkv210.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
| 20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
| 21 | #include <linux/pwm_backlight.h> | 21 | #include <linux/pwm_backlight.h> |
| 22 | #include <linux/platform_data/s3c-hsotg.h> | ||
| 22 | 23 | ||
| 23 | #include <asm/hardware/vic.h> | 24 | #include <asm/hardware/vic.h> |
| 24 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
| @@ -47,6 +48,7 @@ | |||
| 47 | #include <plat/backlight.h> | 48 | #include <plat/backlight.h> |
| 48 | #include <plat/regs-fb-v4.h> | 49 | #include <plat/regs-fb-v4.h> |
| 49 | #include <plat/mfc.h> | 50 | #include <plat/mfc.h> |
| 51 | #include <plat/clock.h> | ||
| 50 | 52 | ||
| 51 | #include "common.h" | 53 | #include "common.h" |
| 52 | 54 | ||
| @@ -203,6 +205,9 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = { | |||
| 203 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, | 205 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, |
| 204 | }; | 206 | }; |
| 205 | 207 | ||
| 208 | /* USB OTG */ | ||
| 209 | static struct s3c_hsotg_plat smdkv210_hsotg_pdata; | ||
| 210 | |||
| 206 | static struct platform_device *smdkv210_devices[] __initdata = { | 211 | static struct platform_device *smdkv210_devices[] __initdata = { |
| 207 | &s3c_device_adc, | 212 | &s3c_device_adc, |
| 208 | &s3c_device_cfcon, | 213 | &s3c_device_cfcon, |
| @@ -216,6 +221,7 @@ static struct platform_device *smdkv210_devices[] __initdata = { | |||
| 216 | &s3c_device_i2c2, | 221 | &s3c_device_i2c2, |
| 217 | &s3c_device_rtc, | 222 | &s3c_device_rtc, |
| 218 | &s3c_device_ts, | 223 | &s3c_device_ts, |
| 224 | &s3c_device_usb_hsotg, | ||
| 219 | &s3c_device_wdt, | 225 | &s3c_device_wdt, |
| 220 | &s5p_device_fimc0, | 226 | &s5p_device_fimc0, |
| 221 | &s5p_device_fimc1, | 227 | &s5p_device_fimc1, |
| @@ -314,6 +320,9 @@ static void __init smdkv210_machine_init(void) | |||
| 314 | 320 | ||
| 315 | samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data); | 321 | samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data); |
| 316 | 322 | ||
| 323 | s3c_hsotg_set_platdata(&smdkv210_hsotg_pdata); | ||
| 324 | clk_xusbxti.rate = 24000000; | ||
| 325 | |||
| 317 | platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); | 326 | platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices)); |
| 318 | } | 327 | } |
| 319 | 328 | ||
