From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kukjin Kim Subject: RE: [PATCH 1/1] ARM: EXYNOS4: Add PWM backlight support on Origen Date: Wed, 31 Aug 2011 09:58:15 +0900 Message-ID: <000501cc6779$10809df0$3181d9d0$%kim@samsung.com> References: <1314078344-5354-1-git-send-email-sachin.kamat@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: Received: from mailout1.samsung.com ([203.254.224.24]:55403 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754505Ab1HaA6Q (ORCPT ); Tue, 30 Aug 2011 20:58:16 -0400 Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LQR003UDPCZVL70@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 31 Aug 2011 09:58:15 +0900 (KST) Received: from kgenekim (12-23-120-114.csky.net [12.23.120.114]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LQR0041OPD3TL@mmp1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 31 Aug 2011 09:58:15 +0900 (KST) In-reply-to: <1314078344-5354-1-git-send-email-sachin.kamat@linaro.org> Content-language: ko Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: 'Sachin Kamat' , linux-samsung-soc@vger.kernel.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org, giridhar.maruthy@linaro.org Sachin Kamat wrote: > > From: Giridhar Maruthy > > This patch adds support for LCD backlight using PWM timer on > Origen board. > > Signed-off-by: Giridhar Maruthy > Signed-off-by: Sachin Kamat > --- > arch/arm/mach-exynos4/Kconfig | 2 ++ > arch/arm/mach-exynos4/mach-origen.c | 16 ++++++++++++++++ > 2 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig > index e6925de..3e9138e 100644 > --- a/arch/arm/mach-exynos4/Kconfig > +++ b/arch/arm/mach-exynos4/Kconfig > @@ -230,6 +230,8 @@ config MACH_ORIGEN > select S3C_DEV_RTC > select S3C_DEV_WDT > select S3C_DEV_HSMMC2 > + select SAMSUNG_DEV_BACKLIGHT > + select SAMSUNG_DEV_PWM > select EXYNOS4_SETUP_SDHCI > help > Machine support for ORIGEN based on Samsung EXYNOS4210 > diff --git a/arch/arm/mach-exynos4/mach-origen.c b/arch/arm/mach-exynos4/mach- > origen.c > index ed59f86..b871815 100644 > --- a/arch/arm/mach-exynos4/mach-origen.c > +++ b/arch/arm/mach-exynos4/mach-origen.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -24,6 +25,8 @@ > #include > #include > #include > +#include > +#include > > #include > > @@ -85,6 +88,17 @@ static struct platform_device *origen_devices[] __initdata = > { > &s3c_device_wdt, > }; > > +/* LCD Backlight data */ > +static struct samsung_bl_gpio_info origen_bl_gpio_info = { > + .no = EXYNOS4_GPD0(0), > + .func = S3C_GPIO_SFN(2), > +}; > + > +static struct platform_pwm_backlight_data origen_bl_data = { > + .pwm_id = 0, > + .pwm_period_ns = 1000, > +}; > + > static void __init origen_map_io(void) > { > s5p_init_io(NULL, 0, S5P_VA_CHIPID); > @@ -96,6 +110,8 @@ static void __init origen_machine_init(void) > { > s3c_sdhci2_set_platdata(&origen_hsmmc2_pdata); > platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices)); > + > + samsung_bl_set(&origen_bl_gpio_info, &origen_bl_data); > } > > MACHINE_START(ORIGEN, "ORIGEN") > -- > 1.7.4.1 OK, will apply. Thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.