diff options
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdkv310.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index bd78d5d70c83..7ec64c8c9917 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig | |||
@@ -221,6 +221,7 @@ config MACH_SMDKV310 | |||
221 | select EXYNOS4_SETUP_KEYPAD | 221 | select EXYNOS4_SETUP_KEYPAD |
222 | select EXYNOS4_SETUP_SDHCI | 222 | select EXYNOS4_SETUP_SDHCI |
223 | select EXYNOS4_SETUP_USB_PHY | 223 | select EXYNOS4_SETUP_USB_PHY |
224 | select S3C24XX_PWM | ||
224 | help | 225 | help |
225 | Machine support for Samsung SMDKV310 | 226 | Machine support for Samsung SMDKV310 |
226 | 227 | ||
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index 3cfa688d274a..1ba87e963f5b 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
20 | #include <linux/input.h> | 20 | #include <linux/input.h> |
21 | #include <linux/pwm.h> | ||
21 | #include <linux/pwm_backlight.h> | 22 | #include <linux/pwm_backlight.h> |
22 | #include <linux/platform_data/s3c-hsotg.h> | 23 | #include <linux/platform_data/s3c-hsotg.h> |
23 | 24 | ||
@@ -354,6 +355,10 @@ static struct platform_pwm_backlight_data smdkv310_bl_data = { | |||
354 | .pwm_period_ns = 1000, | 355 | .pwm_period_ns = 1000, |
355 | }; | 356 | }; |
356 | 357 | ||
358 | static struct pwm_lookup smdkv310_pwm_lookup[] = { | ||
359 | PWM_LOOKUP("s3c24xx-pwm.1", 0, "pwm-backlight.0", NULL), | ||
360 | }; | ||
361 | |||
357 | static void s5p_tv_setup(void) | 362 | static void s5p_tv_setup(void) |
358 | { | 363 | { |
359 | /* direct HPD to HDMI chip */ | 364 | /* direct HPD to HDMI chip */ |
@@ -392,6 +397,8 @@ static void __init smdkv310_machine_init(void) | |||
392 | samsung_keypad_set_platdata(&smdkv310_keypad_data); | 397 | samsung_keypad_set_platdata(&smdkv310_keypad_data); |
393 | 398 | ||
394 | samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); | 399 | samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); |
400 | pwm_add_table(smdkv310_pwm_lookup, ARRAY_SIZE(smdkv310_pwm_lookup)); | ||
401 | |||
395 | #ifdef CONFIG_DRM_EXYNOS | 402 | #ifdef CONFIG_DRM_EXYNOS |
396 | s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; | 403 | s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; |
397 | exynos4_fimd0_gpio_setup_24bpp(); | 404 | exynos4_fimd0_gpio_setup_24bpp(); |