diff options
Diffstat (limited to 'arch/arm/mach-exynos4/mach-smdkv310.c')
-rw-r--r-- | arch/arm/mach-exynos4/mach-smdkv310.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c index edd814110da..ea414955686 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 | ||
@@ -181,9 +184,12 @@ static struct platform_device *smdkv310_devices[] __initdata = { | |||
181 | &exynos4_device_pd[PD_CAM], | 184 | &exynos4_device_pd[PD_CAM], |
182 | &exynos4_device_pd[PD_TV], | 185 | &exynos4_device_pd[PD_TV], |
183 | &exynos4_device_pd[PD_GPS], | 186 | &exynos4_device_pd[PD_GPS], |
187 | &exynos4_device_spdif, | ||
184 | &exynos4_device_sysmmu, | 188 | &exynos4_device_sysmmu, |
185 | &samsung_asoc_dma, | 189 | &samsung_asoc_dma, |
190 | &samsung_asoc_idma, | ||
186 | &smdkv310_smsc911x, | 191 | &smdkv310_smsc911x, |
192 | &exynos4_device_ahci, | ||
187 | }; | 193 | }; |
188 | 194 | ||
189 | static void __init smdkv310_smsc911x_init(void) | 195 | static void __init smdkv310_smsc911x_init(void) |
@@ -209,6 +215,17 @@ static void __init smdkv310_smsc911x_init(void) | |||
209 | (0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1); | 215 | (0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1); |
210 | } | 216 | } |
211 | 217 | ||
218 | /* LCD Backlight data */ | ||
219 | static struct samsung_bl_gpio_info smdkv310_bl_gpio_info = { | ||
220 | .no = EXYNOS4_GPD0(1), | ||
221 | .func = S3C_GPIO_SFN(2), | ||
222 | }; | ||
223 | |||
224 | static struct platform_pwm_backlight_data smdkv310_bl_data = { | ||
225 | .pwm_id = 1, | ||
226 | .pwm_period_ns = 1000, | ||
227 | }; | ||
228 | |||
212 | static void __init smdkv310_map_io(void) | 229 | static void __init smdkv310_map_io(void) |
213 | { | 230 | { |
214 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 231 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
@@ -230,6 +247,8 @@ static void __init smdkv310_machine_init(void) | |||
230 | 247 | ||
231 | samsung_keypad_set_platdata(&smdkv310_keypad_data); | 248 | samsung_keypad_set_platdata(&smdkv310_keypad_data); |
232 | 249 | ||
250 | samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); | ||
251 | |||
233 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); | 252 | platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices)); |
234 | } | 253 | } |
235 | 254 | ||