diff options
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-smdk6410.c')
-rw-r--r-- | arch/arm/mach-s3c64xx/mach-smdk6410.c | 49 |
1 files changed, 2 insertions, 47 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c index ecbea92bf83b..a817d629c0e9 100644 --- a/arch/arm/mach-s3c64xx/mach-smdk6410.c +++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c | |||
@@ -63,7 +63,7 @@ | |||
63 | #include <plat/fb.h> | 63 | #include <plat/fb.h> |
64 | #include <plat/gpio-cfg.h> | 64 | #include <plat/gpio-cfg.h> |
65 | 65 | ||
66 | #include <mach/s3c6410.h> | 66 | #include <plat/s3c6410.h> |
67 | #include <plat/clock.h> | 67 | #include <plat/clock.h> |
68 | #include <plat/devs.h> | 68 | #include <plat/devs.h> |
69 | #include <plat/cpu.h> | 69 | #include <plat/cpu.h> |
@@ -262,45 +262,6 @@ static struct samsung_keypad_platdata smdk6410_keypad_data __initdata = { | |||
262 | .cols = 8, | 262 | .cols = 8, |
263 | }; | 263 | }; |
264 | 264 | ||
265 | static int smdk6410_backlight_init(struct device *dev) | ||
266 | { | ||
267 | int ret; | ||
268 | |||
269 | ret = gpio_request(S3C64XX_GPF(15), "Backlight"); | ||
270 | if (ret) { | ||
271 | printk(KERN_ERR "failed to request GPF for PWM-OUT1\n"); | ||
272 | return ret; | ||
273 | } | ||
274 | |||
275 | /* Configure GPIO pin with S3C64XX_GPF15_PWM_TOUT1 */ | ||
276 | s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_SFN(2)); | ||
277 | |||
278 | return 0; | ||
279 | } | ||
280 | |||
281 | static void smdk6410_backlight_exit(struct device *dev) | ||
282 | { | ||
283 | s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_OUTPUT); | ||
284 | gpio_free(S3C64XX_GPF(15)); | ||
285 | } | ||
286 | |||
287 | static struct platform_pwm_backlight_data smdk6410_backlight_data = { | ||
288 | .pwm_id = 1, | ||
289 | .max_brightness = 255, | ||
290 | .dft_brightness = 255, | ||
291 | .pwm_period_ns = 78770, | ||
292 | .init = smdk6410_backlight_init, | ||
293 | .exit = smdk6410_backlight_exit, | ||
294 | }; | ||
295 | |||
296 | static struct platform_device smdk6410_backlight_device = { | ||
297 | .name = "pwm-backlight", | ||
298 | .dev = { | ||
299 | .parent = &s3c_device_timer[1].dev, | ||
300 | .platform_data = &smdk6410_backlight_data, | ||
301 | }, | ||
302 | }; | ||
303 | |||
304 | static struct map_desc smdk6410_iodesc[] = {}; | 265 | static struct map_desc smdk6410_iodesc[] = {}; |
305 | 266 | ||
306 | static struct platform_device *smdk6410_devices[] __initdata = { | 267 | static struct platform_device *smdk6410_devices[] __initdata = { |
@@ -658,12 +619,6 @@ static struct i2c_board_info i2c_devs1[] __initdata = { | |||
658 | { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */ | 619 | { I2C_BOARD_INFO("24c128", 0x57), }, /* Samsung S524AD0XD1 */ |
659 | }; | 620 | }; |
660 | 621 | ||
661 | static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = { | ||
662 | .delay = 10000, | ||
663 | .presc = 49, | ||
664 | .oversampling_shift = 2, | ||
665 | }; | ||
666 | |||
667 | /* LCD Backlight data */ | 622 | /* LCD Backlight data */ |
668 | static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = { | 623 | static struct samsung_bl_gpio_info smdk6410_bl_gpio_info = { |
669 | .no = S3C64XX_GPF(15), | 624 | .no = S3C64XX_GPF(15), |
@@ -705,7 +660,7 @@ static void __init smdk6410_machine_init(void) | |||
705 | 660 | ||
706 | samsung_keypad_set_platdata(&smdk6410_keypad_data); | 661 | samsung_keypad_set_platdata(&smdk6410_keypad_data); |
707 | 662 | ||
708 | s3c24xx_ts_set_platdata(&s3c_ts_platform); | 663 | s3c24xx_ts_set_platdata(NULL); |
709 | 664 | ||
710 | /* configure nCS1 width to 16 bits */ | 665 | /* configure nCS1 width to 16 bits */ |
711 | 666 | ||