Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258798
b: refs/heads/master
c: 96d7868
h: refs/heads/master
v: v3
  • Loading branch information
Banajit Goswami authored and Kukjin Kim committed Jul 20, 2011
1 parent 38086fc commit 061779c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 543601f526bbe02d209d2f8c30b9ce59d8e70a41
refs/heads/master: 96d78686d4c4f2922a23de2e16d145f7355e0605
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c64xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ config MACH_SMDK6410
select S3C_DEV_USB_HOST
select S3C_DEV_USB_HSOTG
select S3C_DEV_WDT
select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_KEYPAD
select SAMSUNG_DEV_PWM
select HAVE_S3C2410_WATCHDOG if WATCHDOG
Expand Down
15 changes: 13 additions & 2 deletions trunk/arch/arm/mach-s3c64xx/mach-smdk6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#include <plat/adc.h>
#include <plat/ts.h>
#include <plat/keypad.h>
#include <plat/backlight.h>

#define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
Expand Down Expand Up @@ -329,8 +330,6 @@ static struct platform_device *smdk6410_devices[] __initdata = {
&s3c_device_rtc,
&s3c_device_ts,
&s3c_device_wdt,
&s3c_device_timer[1],
&smdk6410_backlight_device,
};

#ifdef CONFIG_REGULATOR
Expand Down Expand Up @@ -665,6 +664,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.oversampling_shift = 2,
};

/* LCD Backlight data */
static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = {
.no = S3C64XX_GPF(15),
.func = S3C_GPIO_SFN(2),
};

static struct platform_pwm_backlight_data smdk6410_bl_data = {
.pwm_id = 1,
};

static void __init smdk6410_map_io(void)
{
u32 tmp;
Expand Down Expand Up @@ -726,6 +735,8 @@ static void __init smdk6410_machine_init(void)

s3c_ide_set_platdata(&smdk6410_ide_pdata);

samsung_bl_set(&smdk6410_bl_gpio_info, &smdk6410_bl_data);

platform_add_devices(smdk6410_devices, ARRAY_SIZE(smdk6410_devices));
}

Expand Down

0 comments on commit 061779c

Please sign in to comment.