* [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support
@ 2011-07-15 14:42 Banajit Goswami
2011-07-15 14:42 ` [PATCH 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support Banajit Goswami
` (9 more replies)
0 siblings, 10 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
The patches are created against "for-next" branch of Kukjin Kim's tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
Patch [1/8]
-- add a common infrastructure to support PWM backlight for various
Samsung boards.
Patch [2/8]
-- Add support for PWM backlight for SMDKV310 board.
Patch [3/8]
-- Add support for PWM backlight for SMDKC210 board.
Patch [4/8]
-- Add support for PWM backlight for SMDKV210 board.
Patch [5/8]
-- Add support for PWM backlight for SMDKC100 board.
Patch [6/8]
-- Add support for PWM backlight for SMDK6440 board.
Patch [7/8]
-- Add support for PWM backlight for SMDK6450 board.
Patch [8/8]
-- Add support for PWM backlight for SMDK6410 board.
Patch 3 with PWM Backlight support for SMDKC210 is only compile tested.
[Patch 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support
[Patch 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKV310 board
[Patch 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210 board
[Patch 4/8] ARM: S5PV210: Add PWM backlight support on Samsung SMDKV210 board
[Patch 5/8] ARM: S5PC100: Add PWM backlight support on Samsung SMDKC100 board
[Patch 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6440 board
[Patch 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6450 board
[Patch 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung SMDK6410 board
arch/arm/mach-exynos4/Kconfig | 4 +
arch/arm/mach-exynos4/mach-smdkc210.c | 16 +++
arch/arm/mach-exynos4/mach-smdkv310.c | 16 +++
arch/arm/mach-s3c64xx/Kconfig | 1 +
arch/arm/mach-s3c64xx/mach-smdk6410.c | 15 ++-
arch/arm/mach-s5p64x0/Kconfig | 2 +
arch/arm/mach-s5p64x0/mach-smdk6440.c | 54 ++-------
arch/arm/mach-s5p64x0/mach-smdk6450.c | 54 ++-------
arch/arm/mach-s5pc100/Kconfig | 1 +
arch/arm/mach-s5pc100/mach-smdkc100.c | 55 ++-------
arch/arm/mach-s5pv210/Kconfig | 1 +
arch/arm/mach-s5pv210/mach-smdkv210.c | 54 ++-------
arch/arm/plat-samsung/Kconfig | 6 +
arch/arm/plat-samsung/Makefile | 1 +
arch/arm/plat-samsung/dev-backlight.c | 151 ++++++++++++++++++++++++
arch/arm/plat-samsung/include/plat/backlight.h | 26 ++++
16 files changed, 291 insertions(+), 166 deletions(-)
create mode 100644 arch/arm/plat-samsung/dev-backlight.c
create mode 100644 arch/arm/plat-samsung/include/plat/backlight.h
--
1.7.2.3
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKV310 board Banajit Goswami
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch creates a common structure for LCD backlight
using PWM timer to be used by various Samsung boards.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/plat-samsung/Kconfig | 6 +
arch/arm/plat-samsung/Makefile | 1 +
arch/arm/plat-samsung/dev-backlight.c | 151 ++++++++++++++++++++++++
arch/arm/plat-samsung/include/plat/backlight.h | 26 ++++
4 files changed, 184 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/plat-samsung/dev-backlight.c
create mode 100644 arch/arm/plat-samsung/include/plat/backlight.h
diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig
index 4d79519..b3e1065 100644
--- a/arch/arm/plat-samsung/Kconfig
+++ b/arch/arm/plat-samsung/Kconfig
@@ -280,6 +280,12 @@ config SAMSUNG_DEV_PWM
help
Compile in platform device definition for PWM Timer
+config SAMSUNG_DEV_BACKLIGHT
+ bool
+ depends on SAMSUNG_DEV_PWM
+ help
+ Compile in platform device definition LCD backlight with PWM Timer
+
config S3C24XX_PWM
bool "PWM device support"
select HAVE_PWM
diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile
index 53eb15b..853764b 100644
--- a/arch/arm/plat-samsung/Makefile
+++ b/arch/arm/plat-samsung/Makefile
@@ -59,6 +59,7 @@ obj-$(CONFIG_SAMSUNG_DEV_IDE) += dev-ide.o
obj-$(CONFIG_SAMSUNG_DEV_TS) += dev-ts.o
obj-$(CONFIG_SAMSUNG_DEV_KEYPAD) += dev-keypad.o
obj-$(CONFIG_SAMSUNG_DEV_PWM) += dev-pwm.o
+obj-$(CONFIG_SAMSUNG_DEV_BACKLIGHT) += dev-backlight.o
# DMA support
diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c
new file mode 100644
index 0000000..f960d1f
--- /dev/null
+++ b/arch/arm/plat-samsung/dev-backlight.c
@@ -0,0 +1,151 @@
+/* linux/arch/arm/plat-samsung/dev-backlight.c
+ *
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * Common infrastructure for PWM Backlight for Samsung boards
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/gpio.h>
+#include <linux/platform_device.h>
+#include <linux/io.h>
+#include <linux/pwm_backlight.h>
+
+#include <plat/devs.h>
+#include <plat/gpio-cfg.h>
+#include <plat/backlight.h>
+
+static int samsung_bl_init(struct device *dev)
+{
+ int ret = 0;
+ struct platform_device *timer_dev =
+ container_of(dev->parent, struct platform_device, dev);
+ struct samsung_bl_gpio_info *bl_gpio_info =
+ timer_dev->dev.platform_data;
+
+ ret = gpio_request(bl_gpio_info->no, "Backlight");
+ if (ret) {
+ printk(KERN_ERR "failed to request GPIO for LCD Backlight\n");
+ return ret;
+ }
+
+ /* Configure GPIO pin with specific GPIO function for PWM timer */
+ s3c_gpio_cfgpin(bl_gpio_info->no, bl_gpio_info->func);
+
+ return 0;
+}
+
+static void samsung_bl_exit(struct device *dev)
+{
+ struct platform_device *timer_dev =
+ container_of(dev->parent, struct platform_device, dev);
+ struct samsung_bl_gpio_info *bl_gpio_info =
+ timer_dev->dev.platform_data;
+
+ s3c_gpio_cfgpin(bl_gpio_info->no, S3C_GPIO_OUTPUT);
+ gpio_free(bl_gpio_info->no);
+}
+
+/* Initialize few important fields of platform_pwm_backlight_data
+ * structure with default values. These fields can be overridden by
+ * board-specific values sent from machine file.
+ * For ease of operation, these fields are initialized with values
+ * used by most samsung boards.
+ * Users has the option of sending info about other parameters
+ * for their specific boards
+ */
+
+static struct platform_pwm_backlight_data samsung_dfl_bl_data __initdata = {
+ .max_brightness = 255,
+ .dft_brightness = 255,
+ .pwm_period_ns = 78770,
+ .init = samsung_bl_init,
+ .exit = samsung_bl_exit,
+};
+
+static struct platform_device samsung_dfl_bl_device __initdata = {
+ .name = "pwm-backlight",
+};
+
+/* samsung_bl_set - Set board specific data (if any) provided by user for
+ * PWM Backlight control and register specific PWM and backlight device.
+ * @gpio_info: structure containing GPIO info for PWM timer
+ * @bl_data: structure containing Backlight control data
+ */
+void samsung_bl_set(struct samsung_bl_gpio_info *gpio_info,
+ struct platform_pwm_backlight_data *bl_data)
+{
+ int ret = 0;
+ struct platform_device *samsung_bl_device;
+ struct platform_pwm_backlight_data *samsung_bl_data;
+
+ samsung_bl_device = kmemdup(&samsung_dfl_bl_device,
+ sizeof(struct platform_device), GFP_KERNEL);
+ if (!samsung_bl_device) {
+ printk(KERN_ERR "%s: no memory for platform dev\n", __func__);
+ return;
+ }
+
+ samsung_bl_data = s3c_set_platdata(&samsung_dfl_bl_data,
+ sizeof(struct platform_pwm_backlight_data), samsung_bl_device);
+ if (!samsung_bl_data) {
+ printk(KERN_ERR "%s: no memory for platform dev\n", __func__);
+ goto err_data;
+ }
+
+ /* Copy board specific data provided by user */
+ samsung_bl_data->pwm_id = bl_data->pwm_id;
+ samsung_bl_device->dev.parent =
+ &s3c_device_timer[samsung_bl_data->pwm_id].dev;
+
+ if (bl_data->max_brightness)
+ samsung_bl_data->max_brightness = bl_data->max_brightness;
+ if (bl_data->dft_brightness)
+ samsung_bl_data->dft_brightness = bl_data->dft_brightness;
+ if (bl_data->lth_brightness)
+ samsung_bl_data->lth_brightness = bl_data->lth_brightness;
+ if (bl_data->pwm_period_ns)
+ samsung_bl_data->pwm_period_ns = bl_data->pwm_period_ns;
+ if (bl_data->init)
+ samsung_bl_data->init = bl_data->init;
+ if (bl_data->notify)
+ samsung_bl_data->notify = bl_data->notify;
+ if (bl_data->exit)
+ samsung_bl_data->exit = bl_data->exit;
+ if (bl_data->check_fb)
+ samsung_bl_data->check_fb = bl_data->check_fb;
+
+ /* Keep the GPIO info for future use */
+ s3c_device_timer[samsung_bl_data->pwm_id].dev.platform_data = gpio_info;
+
+ /* Register the specific PWM timer dev for Backlight control */
+ ret = platform_device_register(
+ &s3c_device_timer[samsung_bl_data->pwm_id]);
+ if (ret) {
+ printk(KERN_ERR "samsung: failed to register \
+ pwm timer for backlight: %d\n", ret);
+ goto err_plat_reg1;
+ }
+
+ /* Register the Backlight dev */
+ ret = platform_device_register(samsung_bl_device);
+ if (ret) {
+ printk(KERN_ERR "samsung: failed to register \
+ backlight device: %d\n", ret);
+ goto err_plat_reg2;
+ }
+
+ return;
+
+err_plat_reg2:
+ platform_device_unregister(&s3c_device_timer[samsung_bl_data->pwm_id]);
+err_plat_reg1:
+ kfree(samsung_bl_data);
+err_data:
+ kfree(samsung_bl_device);
+ return;
+}
diff --git a/arch/arm/plat-samsung/include/plat/backlight.h b/arch/arm/plat-samsung/include/plat/backlight.h
new file mode 100644
index 0000000..51d8da8
--- /dev/null
+++ b/arch/arm/plat-samsung/include/plat/backlight.h
@@ -0,0 +1,26 @@
+/* linux/arch/arm/plat-samsung/include/plat/backlight.h
+ *
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __ASM_PLAT_BACKLIGHT_H
+#define __ASM_PLAT_BACKLIGHT_H __FILE__
+
+/* samsung_bl_gpio_info - GPIO info for PWM Backlight control
+ * @no: GPIO number for PWM timer out
+ * @func: Special function of GPIO line for PWM timer
+ */
+struct samsung_bl_gpio_info {
+ int no;
+ int func;
+};
+
+extern void samsung_bl_set(struct samsung_bl_gpio_info *gpio_info,
+ struct platform_pwm_backlight_data *bl_data);
+
+#endif /* __ASM_PLAT_BACKLIGHT_H */
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKV310 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
2011-07-15 14:42 ` [PATCH 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210 board Banajit Goswami
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDKV310 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-exynos4/Kconfig | 2 ++
arch/arm/mach-exynos4/mach-smdkv310.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig
index 5115b90..e27f044 100644
--- a/arch/arm/mach-exynos4/Kconfig
+++ b/arch/arm/mach-exynos4/Kconfig
@@ -128,8 +128,10 @@ config MACH_SMDKV310
select S3C_DEV_HSMMC2
select S3C_DEV_HSMMC3
select EXYNOS4_DEV_AHCI
+ select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_KEYPAD
select EXYNOS4_DEV_PD
+ select SAMSUNG_DEV_PWM
select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_I2C1
select EXYNOS4_SETUP_KEYPAD
diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c b/arch/arm/mach-exynos4/mach-smdkv310.c
index be16236..e85d646 100644
--- a/arch/arm/mach-exynos4/mach-smdkv310.c
+++ b/arch/arm/mach-exynos4/mach-smdkv310.c
@@ -16,6 +16,7 @@
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/input.h>
+#include <linux/pwm_backlight.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
@@ -29,6 +30,8 @@
#include <plat/sdhci.h>
#include <plat/iic.h>
#include <plat/pd.h>
+#include <plat/gpio-cfg.h>
+#include <plat/backlight.h>
#include <mach/map.h>
@@ -210,6 +213,17 @@ static void __init smdkv310_smsc911x_init(void)
(0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1);
}
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdkv310_bl_gpio_info = {
+ .no = EXYNOS4_GPD0(1),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdkv310_bl_data = {
+ .pwm_id = 1,
+ .pwm_period_ns = 1000,
+};
+
static void __init smdkv310_map_io(void)
{
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -231,6 +245,8 @@ static void __init smdkv310_machine_init(void)
samsung_keypad_set_platdata(&smdkv310_keypad_data);
+ samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data);
+
platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
2011-07-15 14:42 ` [PATCH 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support Banajit Goswami
2011-07-15 14:42 ` [PATCH 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKV310 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 4/8] ARM: S5PV210: Add PWM backlight support on Samsung SMDKV210 board Banajit Goswami
` (6 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDKC210 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-exynos4/Kconfig | 2 ++
arch/arm/mach-exynos4/mach-smdkc210.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig
index e27f044..65d48c1 100644
--- a/arch/arm/mach-exynos4/Kconfig
+++ b/arch/arm/mach-exynos4/Kconfig
@@ -110,6 +110,8 @@ config MACH_SMDKC210
select S3C_DEV_HSMMC1
select S3C_DEV_HSMMC2
select S3C_DEV_HSMMC3
+ select SAMSUNG_DEV_PWM
+ select SAMSUNG_DEV_BACKLIGHT
select EXYNOS4_DEV_PD
select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_I2C1
diff --git a/arch/arm/mach-exynos4/mach-smdkc210.c b/arch/arm/mach-exynos4/mach-smdkc210.c
index e645f7a..f606ea7 100644
--- a/arch/arm/mach-exynos4/mach-smdkc210.c
+++ b/arch/arm/mach-exynos4/mach-smdkc210.c
@@ -15,6 +15,7 @@
#include <linux/smsc911x.h>
#include <linux/io.h>
#include <linux/i2c.h>
+#include <linux/pwm_backlight.h>
#include <asm/mach/arch.h>
#include <asm/mach-types.h>
@@ -27,6 +28,8 @@
#include <plat/sdhci.h>
#include <plat/iic.h>
#include <plat/pd.h>
+#include <plat/gpio-cfg.h>
+#include <plat/backlight.h>
#include <mach/map.h>
@@ -191,6 +194,17 @@ static void __init smdkc210_smsc911x_init(void)
(0x1 << S5P_SROM_BCX__TACS__SHIFT), S5P_SROM_BC1);
}
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdkc210_bl_gpio_info = {
+ .no = EXYNOS4_GPD0(1),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdkc210_bl_data = {
+ .pwm_id = 1,
+ .pwm_period_ns = 1000,
+};
+
static void __init smdkc210_map_io(void)
{
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -210,6 +224,8 @@ static void __init smdkc210_machine_init(void)
s3c_sdhci2_set_platdata(&smdkc210_hsmmc2_pdata);
s3c_sdhci3_set_platdata(&smdkc210_hsmmc3_pdata);
+ samsung_bl_set(&smdkc210_bl_gpio_info, &smdkc210_bl_data);
+
platform_add_devices(smdkc210_devices, ARRAY_SIZE(smdkc210_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/8] ARM: S5PV210: Add PWM backlight support on Samsung SMDKV210 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (2 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 5/8] ARM: S5PC100: Add PWM backlight support on Samsung SMDKC100 board Banajit Goswami
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDKV210 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-s5pv210/Kconfig | 1 +
arch/arm/mach-s5pv210/mach-smdkv210.c | 54 ++++++++-------------------------
2 files changed, 14 insertions(+), 41 deletions(-)
diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-s5pv210/Kconfig
index 37b5a97..79bb3a0 100644
--- a/arch/arm/mach-s5pv210/Kconfig
+++ b/arch/arm/mach-s5pv210/Kconfig
@@ -134,6 +134,7 @@ config MACH_SMDKV210
select S3C_DEV_RTC
select S3C_DEV_WDT
select SAMSUNG_DEV_ADC
+ select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_IDE
select SAMSUNG_DEV_KEYPAD
select SAMSUNG_DEV_PWM
diff --git a/arch/arm/mach-s5pv210/mach-smdkv210.c b/arch/arm/mach-s5pv210/mach-smdkv210.c
index c6a9e86..c4d9b7d 100644
--- a/arch/arm/mach-s5pv210/mach-smdkv210.c
+++ b/arch/arm/mach-s5pv210/mach-smdkv210.c
@@ -45,6 +45,7 @@
#include <plat/pm.h>
#include <plat/fb.h>
#include <plat/s5p-time.h>
+#include <plat/backlight.h>
/* Following are default values for UCON, ULCON and UFCON UART registers */
#define SMDKV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
@@ -210,45 +211,6 @@ static struct s3c_fb_platdata smdkv210_lcd0_pdata __initdata = {
.setup_gpio = s5pv210_fb_gpio_setup_24bpp,
};
-static int smdkv210_backlight_init(struct device *dev)
-{
- int ret;
-
- ret = gpio_request(S5PV210_GPD0(3), "Backlight");
- if (ret) {
- printk(KERN_ERR "failed to request GPD for PWM-OUT 3\n");
- return ret;
- }
-
- /* Configure GPIO pin with S5PV210_GPD_0_3_TOUT_3 */
- s3c_gpio_cfgpin(S5PV210_GPD0(3), S3C_GPIO_SFN(2));
-
- return 0;
-}
-
-static void smdkv210_backlight_exit(struct device *dev)
-{
- s3c_gpio_cfgpin(S5PV210_GPD0(3), S3C_GPIO_OUTPUT);
- gpio_free(S5PV210_GPD0(3));
-}
-
-static struct platform_pwm_backlight_data smdkv210_backlight_data = {
- .pwm_id = 3,
- .max_brightness = 255,
- .dft_brightness = 255,
- .pwm_period_ns = 78770,
- .init = smdkv210_backlight_init,
- .exit = smdkv210_backlight_exit,
-};
-
-static struct platform_device smdkv210_backlight_device = {
- .name = "pwm-backlight",
- .dev = {
- .parent = &s3c_device_timer[3].dev,
- .platform_data = &smdkv210_backlight_data,
- },
-};
-
static struct platform_device *smdkv210_devices[] __initdata = {
&s3c_device_adc,
&s3c_device_cfcon,
@@ -270,8 +232,6 @@ static struct platform_device *smdkv210_devices[] __initdata = {
&samsung_device_keypad,
&smdkv210_dm9000,
&smdkv210_lcd_lte480wv,
- &s3c_device_timer[3],
- &smdkv210_backlight_device,
};
static void __init smdkv210_dm9000_init(void)
@@ -310,6 +270,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.oversampling_shift = 2,
};
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdkv210_bl_gpio_info = {
+ .no = S5PV210_GPD0(3),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdkv210_bl_data = {
+ .pwm_id = 3,
+};
+
static void __init smdkv210_map_io(void)
{
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -341,6 +311,8 @@ static void __init smdkv210_machine_init(void)
s3c_fb_set_platdata(&smdkv210_lcd0_pdata);
+ samsung_bl_set(&smdkv210_bl_gpio_info, &smdkv210_bl_data);
+
platform_add_devices(smdkv210_devices, ARRAY_SIZE(smdkv210_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 5/8] ARM: S5PC100: Add PWM backlight support on Samsung SMDKC100 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (3 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 4/8] ARM: S5PV210: Add PWM backlight support on Samsung SMDKV210 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6440 board Banajit Goswami
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDKC100 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-s5pc100/Kconfig | 1 +
arch/arm/mach-s5pc100/mach-smdkc100.c | 55 ++++++++------------------------
2 files changed, 15 insertions(+), 41 deletions(-)
diff --git a/arch/arm/mach-s5pc100/Kconfig b/arch/arm/mach-s5pc100/Kconfig
index 608722f..e8a33c4 100644
--- a/arch/arm/mach-s5pc100/Kconfig
+++ b/arch/arm/mach-s5pc100/Kconfig
@@ -56,6 +56,7 @@ config MACH_SMDKC100
select S3C_DEV_RTC
select S3C_DEV_WDT
select SAMSUNG_DEV_ADC
+ select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_IDE
select SAMSUNG_DEV_KEYPAD
select SAMSUNG_DEV_PWM
diff --git a/arch/arm/mach-s5pc100/mach-smdkc100.c b/arch/arm/mach-s5pc100/mach-smdkc100.c
index 0525cb3..c89d6ec 100644
--- a/arch/arm/mach-s5pc100/mach-smdkc100.c
+++ b/arch/arm/mach-s5pc100/mach-smdkc100.c
@@ -51,6 +51,7 @@
#include <plat/keypad.h>
#include <plat/ts.h>
#include <plat/audio.h>
+#include <plat/backlight.h>
/* Following are default values for UCON, ULCON and UFCON UART registers */
#define SMDKC100_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
@@ -179,45 +180,6 @@ static struct samsung_keypad_platdata smdkc100_keypad_data __initdata = {
.cols = 8,
};
-static int smdkc100_backlight_init(struct device *dev)
-{
- int ret;
-
- ret = gpio_request(S5PC100_GPD(0), "Backlight");
- if (ret) {
- printk(KERN_ERR "failed to request GPF for PWM-OUT0\n");
- return ret;
- }
-
- /* Configure GPIO pin with S5PC100_GPD_TOUT_0 */
- s3c_gpio_cfgpin(S5PC100_GPD(0), S3C_GPIO_SFN(2));
-
- return 0;
-}
-
-static void smdkc100_backlight_exit(struct device *dev)
-{
- s3c_gpio_cfgpin(S5PC100_GPD(0), S3C_GPIO_OUTPUT);
- gpio_free(S5PC100_GPD(0));
-}
-
-static struct platform_pwm_backlight_data smdkc100_backlight_data = {
- .pwm_id = 0,
- .max_brightness = 255,
- .dft_brightness = 255,
- .pwm_period_ns = 78770,
- .init = smdkc100_backlight_init,
- .exit = smdkc100_backlight_exit,
-};
-
-static struct platform_device smdkc100_backlight_device = {
- .name = "pwm-backlight",
- .dev = {
- .parent = &s3c_device_timer[0].dev,
- .platform_data = &smdkc100_backlight_data,
- },
-};
-
static struct platform_device *smdkc100_devices[] __initdata = {
&s3c_device_adc,
&s3c_device_cfcon,
@@ -239,8 +201,6 @@ static struct platform_device *smdkc100_devices[] __initdata = {
&s5p_device_fimc1,
&s5p_device_fimc2,
&s5pc100_device_spdif,
- &s3c_device_timer[0],
- &smdkc100_backlight_device,
};
static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
@@ -249,6 +209,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.oversampling_shift = 2,
};
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdkc100_bl_gpio_info = {
+ .no = S5PC100_GPD(0),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdkc100_bl_data = {
+ .pwm_id = 0,
+};
+
static void __init smdkc100_map_io(void)
{
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -276,6 +246,9 @@ static void __init smdkc100_machine_init(void)
/* LCD init */
gpio_request(S5PC100_GPH0(6), "GPH0");
smdkc100_lcd_power_set(&smdkc100_lcd_power_data, 0);
+
+ samsung_bl_set(&smdkc100_bl_gpio_info, &smdkc100_bl_data);
+
platform_add_devices(smdkc100_devices, ARRAY_SIZE(smdkc100_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6440 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (4 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 5/8] ARM: S5PC100: Add PWM backlight support on Samsung SMDKC100 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6450 board Banajit Goswami
` (3 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDK6440 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-s5p64x0/Kconfig | 1 +
arch/arm/mach-s5p64x0/mach-smdk6440.c | 54 ++++++++-------------------------
2 files changed, 14 insertions(+), 41 deletions(-)
diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig
index 017af4c..34e2877 100644
--- a/arch/arm/mach-s5p64x0/Kconfig
+++ b/arch/arm/mach-s5p64x0/Kconfig
@@ -36,6 +36,7 @@ config MACH_SMDK6440
select S3C_DEV_WDT
select S3C64XX_DEV_SPI
select SAMSUNG_DEV_ADC
+ select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_PWM
select SAMSUNG_DEV_TS
select S5P64X0_SETUP_I2C1
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6440.c b/arch/arm/mach-s5p64x0/mach-smdk6440.c
index 2d559f1..346f8df 100644
--- a/arch/arm/mach-s5p64x0/mach-smdk6440.c
+++ b/arch/arm/mach-s5p64x0/mach-smdk6440.c
@@ -46,6 +46,7 @@
#include <plat/adc.h>
#include <plat/ts.h>
#include <plat/s5p-time.h>
+#include <plat/backlight.h>
#define SMDK6440_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
S3C2410_UCON_RXILEVEL | \
@@ -91,45 +92,6 @@ static struct s3c2410_uartcfg smdk6440_uartcfgs[] __initdata = {
},
};
-static int smdk6440_backlight_init(struct device *dev)
-{
- int ret;
-
- ret = gpio_request(S5P6440_GPF(15), "Backlight");
- if (ret) {
- printk(KERN_ERR "failed to request GPF for PWM-OUT1\n");
- return ret;
- }
-
- /* Configure GPIO pin with S5P6440_GPF15_PWM_TOUT1 */
- s3c_gpio_cfgpin(S5P6440_GPF(15), S3C_GPIO_SFN(2));
-
- return 0;
-}
-
-static void smdk6440_backlight_exit(struct device *dev)
-{
- s3c_gpio_cfgpin(S5P6440_GPF(15), S3C_GPIO_OUTPUT);
- gpio_free(S5P6440_GPF(15));
-}
-
-static struct platform_pwm_backlight_data smdk6440_backlight_data = {
- .pwm_id = 1,
- .max_brightness = 255,
- .dft_brightness = 255,
- .pwm_period_ns = 78770,
- .init = smdk6440_backlight_init,
- .exit = smdk6440_backlight_exit,
-};
-
-static struct platform_device smdk6440_backlight_device = {
- .name = "pwm-backlight",
- .dev = {
- .parent = &s3c_device_timer[1].dev,
- .platform_data = &smdk6440_backlight_data,
- },
-};
-
static struct platform_device *smdk6440_devices[] __initdata = {
&s3c_device_adc,
&s3c_device_rtc,
@@ -139,8 +101,6 @@ static struct platform_device *smdk6440_devices[] __initdata = {
&s3c_device_wdt,
&samsung_asoc_dma,
&s5p6440_device_iis,
- &s3c_device_timer[1],
- &smdk6440_backlight_device,
};
static struct s3c2410_platform_i2c s5p6440_i2c0_data __initdata = {
@@ -175,6 +135,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.oversampling_shift = 2,
};
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdk6440_bl_gpio_info = {
+ .no = S5P6440_GPF(15),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdk6440_bl_data = {
+ .pwm_id = 1,
+};
+
static void __init smdk6440_map_io(void)
{
s5p_init_io(NULL, 0, S5P64X0_SYS_ID);
@@ -194,6 +164,8 @@ static void __init smdk6440_machine_init(void)
i2c_register_board_info(1, smdk6440_i2c_devs1,
ARRAY_SIZE(smdk6440_i2c_devs1));
+ samsung_bl_set(&smdk6440_bl_gpio_info, &smdk6440_bl_data);
+
platform_add_devices(smdk6440_devices, ARRAY_SIZE(smdk6440_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6450 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (5 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6440 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-15 14:42 ` [PATCH 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung SMDK6410 board Banajit Goswami
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDK6450 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-s5p64x0/Kconfig | 1 +
arch/arm/mach-s5p64x0/mach-smdk6450.c | 54 ++++++++-------------------------
2 files changed, 14 insertions(+), 41 deletions(-)
diff --git a/arch/arm/mach-s5p64x0/Kconfig b/arch/arm/mach-s5p64x0/Kconfig
index 34e2877..65c7518 100644
--- a/arch/arm/mach-s5p64x0/Kconfig
+++ b/arch/arm/mach-s5p64x0/Kconfig
@@ -51,6 +51,7 @@ config MACH_SMDK6450
select S3C_DEV_WDT
select S3C64XX_DEV_SPI
select SAMSUNG_DEV_ADC
+ select SAMSUNG_DEV_BACKLIGHT
select SAMSUNG_DEV_PWM
select SAMSUNG_DEV_TS
select S5P64X0_SETUP_I2C1
diff --git a/arch/arm/mach-s5p64x0/mach-smdk6450.c b/arch/arm/mach-s5p64x0/mach-smdk6450.c
index d19c469..33f2adf 100644
--- a/arch/arm/mach-s5p64x0/mach-smdk6450.c
+++ b/arch/arm/mach-s5p64x0/mach-smdk6450.c
@@ -46,6 +46,7 @@
#include <plat/adc.h>
#include <plat/ts.h>
#include <plat/s5p-time.h>
+#include <plat/backlight.h>
#define SMDK6450_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
S3C2410_UCON_RXILEVEL | \
@@ -109,45 +110,6 @@ static struct s3c2410_uartcfg smdk6450_uartcfgs[] __initdata = {
#endif
};
-static int smdk6450_backlight_init(struct device *dev)
-{
- int ret;
-
- ret = gpio_request(S5P6450_GPF(15), "Backlight");
- if (ret) {
- printk(KERN_ERR "failed to request GPF for PWM-OUT1\n");
- return ret;
- }
-
- /* Configure GPIO pin with S5P6450_GPF15_PWM_TOUT1 */
- s3c_gpio_cfgpin(S5P6450_GPF(15), S3C_GPIO_SFN(2));
-
- return 0;
-}
-
-static void smdk6450_backlight_exit(struct device *dev)
-{
- s3c_gpio_cfgpin(S5P6450_GPF(15), S3C_GPIO_OUTPUT);
- gpio_free(S5P6450_GPF(15));
-}
-
-static struct platform_pwm_backlight_data smdk6450_backlight_data = {
- .pwm_id = 1,
- .max_brightness = 255,
- .dft_brightness = 255,
- .pwm_period_ns = 78770,
- .init = smdk6450_backlight_init,
- .exit = smdk6450_backlight_exit,
-};
-
-static struct platform_device smdk6450_backlight_device = {
- .name = "pwm-backlight",
- .dev = {
- .parent = &s3c_device_timer[1].dev,
- .platform_data = &smdk6450_backlight_data,
- },
-};
-
static struct platform_device *smdk6450_devices[] __initdata = {
&s3c_device_adc,
&s3c_device_rtc,
@@ -157,8 +119,6 @@ static struct platform_device *smdk6450_devices[] __initdata = {
&s3c_device_wdt,
&samsung_asoc_dma,
&s5p6450_device_iis0,
- &s3c_device_timer[1],
- &smdk6450_backlight_device,
/* s5p6450_device_spi0 will be added */
};
@@ -194,6 +154,16 @@ static struct s3c2410_ts_mach_info s3c_ts_platform __initdata = {
.oversampling_shift = 2,
};
+/* LCD Backlight data */
+static struct samsung_bl_gpio_info smdk6450_bl_gpio_info = {
+ .no = S5P6450_GPF(15),
+ .func = S3C_GPIO_SFN(2),
+};
+
+static struct platform_pwm_backlight_data smdk6450_bl_data = {
+ .pwm_id = 1,
+};
+
static void __init smdk6450_map_io(void)
{
s5p_init_io(NULL, 0, S5P64X0_SYS_ID);
@@ -213,6 +183,8 @@ static void __init smdk6450_machine_init(void)
i2c_register_board_info(1, smdk6450_i2c_devs1,
ARRAY_SIZE(smdk6450_i2c_devs1));
+ samsung_bl_set(&smdk6450_bl_gpio_info, &smdk6450_bl_data);
+
platform_add_devices(smdk6450_devices, ARRAY_SIZE(smdk6450_devices));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung SMDK6410 board
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (6 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6450 board Banajit Goswami
@ 2011-07-15 14:42 ` Banajit Goswami
2011-07-20 13:35 ` [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Kukjin Kim
2011-07-26 6:57 ` Dmitry Eremin-Solenikov
9 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-15 14:42 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support for LCD backlight using PWM timer for
Samsung SMDK6410 board.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
arch/arm/mach-s3c64xx/Kconfig | 1 +
arch/arm/mach-s3c64xx/mach-smdk6410.c | 15 +++++++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig
index 4e2c371..f057b6a 100644
--- a/arch/arm/mach-s3c64xx/Kconfig
+++ b/arch/arm/mach-s3c64xx/Kconfig
@@ -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
diff --git a/arch/arm/mach-s3c64xx/mach-smdk6410.c b/arch/arm/mach-s3c64xx/mach-smdk6410.c
index e0521e0..2aa28a2 100644
--- a/arch/arm/mach-s3c64xx/mach-smdk6410.c
+++ b/arch/arm/mach-s3c64xx/mach-smdk6410.c
@@ -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
@@ -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
@@ -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;
@@ -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));
}
--
1.7.2.3
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (7 preceding siblings ...)
2011-07-15 14:42 ` [PATCH 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung SMDK6410 board Banajit Goswami
@ 2011-07-20 13:35 ` Kukjin Kim
2011-07-26 6:57 ` Dmitry Eremin-Solenikov
9 siblings, 0 replies; 12+ messages in thread
From: Kukjin Kim @ 2011-07-20 13:35 UTC (permalink / raw)
To: linux-arm-kernel
Banajit Goswami wrote:
>
> The patches are created against "for-next" branch of Kukjin Kim's tree
at:
> git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
>
> Patch [1/8]
> -- add a common infrastructure to support PWM backlight for various
> Samsung boards.
>
> Patch [2/8]
> -- Add support for PWM backlight for SMDKV310 board.
>
> Patch [3/8]
> -- Add support for PWM backlight for SMDKC210 board.
>
> Patch [4/8]
> -- Add support for PWM backlight for SMDKV210 board.
>
> Patch [5/8]
> -- Add support for PWM backlight for SMDKC100 board.
>
> Patch [6/8]
> -- Add support for PWM backlight for SMDK6440 board.
>
> Patch [7/8]
> -- Add support for PWM backlight for SMDK6450 board.
>
> Patch [8/8]
> -- Add support for PWM backlight for SMDK6410 board.
>
> Patch 3 with PWM Backlight support for SMDKC210 is only compile tested.
>
> [Patch 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM
> backlight support
> [Patch 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung
> SMDKV310 board
> [Patch 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung
> SMDKC210 board
> [Patch 4/8] ARM: S5PV210: Add PWM backlight support on Samsung
> SMDKV210 board
> [Patch 5/8] ARM: S5PC100: Add PWM backlight support on Samsung
> SMDKC100 board
> [Patch 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung
> SMDK6440 board
> [Patch 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung
> SMDK6450 board
> [Patch 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung
> SMDK6410 board
>
> arch/arm/mach-exynos4/Kconfig | 4 +
> arch/arm/mach-exynos4/mach-smdkc210.c | 16 +++
> arch/arm/mach-exynos4/mach-smdkv310.c | 16 +++
> arch/arm/mach-s3c64xx/Kconfig | 1 +
> arch/arm/mach-s3c64xx/mach-smdk6410.c | 15 ++-
> arch/arm/mach-s5p64x0/Kconfig | 2 +
> arch/arm/mach-s5p64x0/mach-smdk6440.c | 54 ++-------
> arch/arm/mach-s5p64x0/mach-smdk6450.c | 54 ++-------
> arch/arm/mach-s5pc100/Kconfig | 1 +
> arch/arm/mach-s5pc100/mach-smdkc100.c | 55 ++-------
> arch/arm/mach-s5pv210/Kconfig | 1 +
> arch/arm/mach-s5pv210/mach-smdkv210.c | 54 ++-------
> arch/arm/plat-samsung/Kconfig | 6 +
> arch/arm/plat-samsung/Makefile | 1 +
> arch/arm/plat-samsung/dev-backlight.c | 151
> ++++++++++++++++++++++++
> arch/arm/plat-samsung/include/plat/backlight.h | 26 ++++
> 16 files changed, 291 insertions(+), 166 deletions(-)
> create mode 100644 arch/arm/plat-samsung/dev-backlight.c
> create mode 100644 arch/arm/plat-samsung/include/plat/backlight.h
>
> --
> 1.7.2.3
Looks ok to me, will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
` (8 preceding siblings ...)
2011-07-20 13:35 ` [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Kukjin Kim
@ 2011-07-26 6:57 ` Dmitry Eremin-Solenikov
2011-07-27 8:56 ` Banajit Goswami
9 siblings, 1 reply; 12+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-07-26 6:57 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On Fri, 15 Jul 2011 20:12:40 +0530, Banajit Goswami wrote:
> The patches are created against "for-next" branch of Kukjin Kim's tree
> at:
> git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
>
> Patch [1/8]
> -- add a common infrastructure to support PWM backlight for various
> Samsung boards.
Why can't you use the drivers/video/backlight/pwm-bl.c ?
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support
2011-07-26 6:57 ` Dmitry Eremin-Solenikov
@ 2011-07-27 8:56 ` Banajit Goswami
0 siblings, 0 replies; 12+ messages in thread
From: Banajit Goswami @ 2011-07-27 8:56 UTC (permalink / raw)
To: linux-arm-kernel
Hi Dmitry,
On Tue, Jul 26, 2011 at 12:27 PM, Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com> wrote:
> Hello,
>
> On Fri, 15 Jul 2011 20:12:40 +0530, Banajit Goswami wrote:
>
>> The patches are created against "for-next" branch of Kukjin Kim's tree
>> at:
>> ?git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
>>
>> ?Patch [1/8]
>> ? -- add a common infrastructure to support PWM backlight for various
>> ? ? ?Samsung boards.
>
> Why can't you use the drivers/video/backlight/pwm-bl.c ?
These patches indeed use the drivers/video/backlight/pwm-bl.c driver (do not
replace it), and provide board specific data from a common place.
The patches are meant to avoid any duplicate code which might be needed
for different Samsung boards.
>
> --
> With best wishes
> Dmitry
>
Thanks and Regards,
Banajit
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-07-27 8:56 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-15 14:42 [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Banajit Goswami
2011-07-15 14:42 ` [PATCH 1/8] ARM: SAMSUNG: Create a common infrastructure for PWM backlight support Banajit Goswami
2011-07-15 14:42 ` [PATCH 2/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKV310 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 3/8] ARM: EXYNOS4: Add PWM backlight support on Samsung SMDKC210 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 4/8] ARM: S5PV210: Add PWM backlight support on Samsung SMDKV210 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 5/8] ARM: S5PC100: Add PWM backlight support on Samsung SMDKC100 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 6/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6440 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 7/8] ARM: S5P64X0: Add PWM backlight support on Samsung SMDK6450 board Banajit Goswami
2011-07-15 14:42 ` [PATCH 8/8] ARM: S3C64XX: Add PWM backlight support on Samsung SMDK6410 board Banajit Goswami
2011-07-20 13:35 ` [PATCH 0/8] ARM: SAMSUNG: Add common PWM Backlight support Kukjin Kim
2011-07-26 6:57 ` Dmitry Eremin-Solenikov
2011-07-27 8:56 ` Banajit Goswami
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).