aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/mach-smdk6410.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-smdk6410.c')
-rw-r--r--arch/arm/mach-s3c64xx/mach-smdk6410.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
index e0521e0fa762..2aa28a20fd07 100644
--- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
+++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
@@ -71,6 +71,7 @@
71#include <plat/adc.h> 71#include <plat/adc.h>
72#include <plat/ts.h> 72#include <plat/ts.h>
73#include <plat/keypad.h> 73#include <plat/keypad.h>
74#include <plat/backlight.h>
74 75
75#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK 76#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
76#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB 77#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
@@ -329,8 +330,6 @@ static struct platform_device *smdk6410_devices[] __initdata = {
329 &s3c_device_rtc, 330 &s3c_device_rtc,
330 &s3c_device_ts, 331 &s3c_device_ts,
331 &s3c_device_wdt, 332 &s3c_device_wdt,
332 &s3c_device_timer[1],
333 &smdk6410_backlight_device,
334}; 333};
335 334
336#ifdef CONFIG_REGULATOR 335#ifdef CONFIG_REGULATOR
@@ -665,6 +664,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
665 .oversampling_shift = 2, 664 .oversampling_shift = 2,
666}; 665};
667 666
667/* LCD Backlight data */
668static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = {
669 .no = S3C64XX_GPF(15),
670 .func = S3C_GPIO_SFN(2),
671};
672
673static struct platform_pwm_backlight_data smdk6410_bl_data = {
674 .pwm_id = 1,
675};
676
668static void __init smdk6410_map_io(void) 677static void __init smdk6410_map_io(void)
669{ 678{
670 u32 tmp; 679 u32 tmp;
@@ -726,6 +735,8 @@ static void __init smdk6410_machine_init(void)
726 735
727 s3c_ide_set_platdata(&smdk6410_ide_pdata); 736 s3c_ide_set_platdata(&smdk6410_ide_pdata);
728 737
738 samsung_bl_set(&smdk6410_bl_gpio_info, &smdk6410_bl_data);
739
729 platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices)); 740 platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
730} 741}
731 742