diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 15:38:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 15:38:42 -0400 |
commit | ae4c42e4e4d76d003f8ca551fe1aef93ff9a4b21 (patch) | |
tree | 2bff2e4f4456077e7d7c589c8c28824f12dfa21c /arch/arm/mach-exynos4/mach-smdkv310.c | |
parent | dd58ecba48edf14be1a5f70120fcd3002277a74a (diff) | |
parent | ab2a0e0d135490729e384c1826d118f92e88cae8 (diff) |
Merge branch 'next/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'next/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (133 commits)
ARM: EXYNOS4: Change devname for FIMD clkdev
ARM: S3C64XX: Cleanup mach/regs-fb.h from mach-s3c64xx
ARM: S5PV210: Cleanup mach/regs-fb.h from mach-s5pv210
ARM: S5PC100: Cleanup mach/regs-fb.h from mach-s5pc100
ARM: S3C24XX: Use generic s3c_set_platdata for devices
ARM: S3C64XX: Use generic s3c_set_platdata for OneNAND
ARM: SAMSUNG: Use generic s3c_set_platdata for NAND
ARM: SAMSUNG: Use generic s3c_set_platdata for USB OHCI
ARM: SAMSUNG: Use generic s3c_set_platdata for HWMON
ARM: SAMSUNG: Use generic s3c_set_platdata for FB
ARM: SAMSUNG: Use generic s3c_set_platdata for TS
ARM: S3C64XX: Add PWM backlight support on SMDK6410
ARM: S5P64X0: Add PWM backlight support on SMDK6450
ARM: S5P64X0: Add PWM backlight support on SMDK6440
ARM: S5PC100: Add PWM backlight support on SMDKC100
ARM: S5PV210: Add PWM backlight support on SMDKV210
ARM: EXYNOS4: Add PWM backlight support on SMDKC210
ARM: EXYNOS4: Add PWM backlight support on SMDKV310
ARM: SAMSUNG: Create a common infrastructure for PWM backlight support
clocksource: convert 32-bit down counting clocksource on S5PV210/S5P64X0
...
Fix up trivial conflict in arch/arm/mach-imx/mach-scb9328.c
Diffstat (limited to 'arch/arm/mach-exynos4/mach-smdkv310.c')
-rw-r--r-- | arch/arm/mach-exynos4/mach-smdkv310.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index edd814110da8..df1107828abd 100644 --- a/arch/arm/mach-exynos4/mach-smdkv310.c +++ b/arch/arm/mach-exynos4/mach-smdkv310.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
18 | #include <linux/input.h> | 18 | #include <linux/input.h> |
19 | #include <linux/pwm_backlight.h> | ||
19 | 20 | ||
20 | #include <asm/mach/arch.h> | 21 | #include <asm/mach/arch.h> |
21 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
@@ -29,6 +30,8 @@ | |||
29 | #include <plat/sdhci.h> | 30 | #include <plat/sdhci.h> |
30 | #include <plat/iic.h> | 31 | #include <plat/iic.h> |
31 | #include <plat/pd.h> | 32 | #include <plat/pd.h> |
33 | #include <plat/gpio-cfg.h> | ||
34 | #include <plat/backlight.h> | ||
32 | 35 | ||
33 | #include <mach/map.h> | 36 | #include <mach/map.h> |
34 | 37 | ||
@@ -209,6 +212,17 @@ static void __init smdkv310_smsc911x_init(void) | |||
209 | (0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1); | 212 | (0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1); |
210 | } | 213 | } |
211 | 214 | ||
215 | /* LCD Backlight data */ | ||
216 | static struct samsung_bl_gpio_info smdkv310_bl_gpio_info = { | ||
217 | .no = EXYNOS4_GPD0(1), | ||
218 | .func = S3C_GPIO_SFN(2), | ||
219 | }; | ||
220 | |||
221 | static struct platform_pwm_backlight_data smdkv310_bl_data = { | ||
222 | .pwm_id = 1, | ||
223 | .pwm_period_ns = 1000, | ||
224 | }; | ||
225 | |||
212 | static void __init smdkv310_map_io(void) | 226 | static void __init smdkv310_map_io(void) |
213 | { | 227 | { |
214 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 228 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -230,6 +244,8 @@ static void __init smdkv310_machine_init(void) | |||
230 | 244 | ||
231 | samsung_keypad_set_platdata(&smdkv310_keypad_data); | 245 | samsung_keypad_set_platdata(&smdkv310_keypad_data); |
232 | 246 | ||
247 | samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); | ||
248 | |||
233 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); | 249 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); |
234 | } | 250 | } |
235 | 251 | ||