From patchwork Mon Dec 5 08:52:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 5449 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 262E623E0C for ; Mon, 5 Dec 2011 08:50:52 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 06FF7A181EE for ; Mon, 5 Dec 2011 08:50:51 +0000 (UTC) Received: by lagm6 with SMTP id m6so26547lag.11 for ; Mon, 05 Dec 2011 00:50:51 -0800 (PST) Received: by 10.152.145.233 with SMTP id sx9mr5304621lab.6.1323075051674; Mon, 05 Dec 2011 00:50:51 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs247201lal; Mon, 5 Dec 2011 00:50:51 -0800 (PST) Received: by 10.68.31.170 with SMTP id b10mr21377183pbi.50.1323075049143; Mon, 05 Dec 2011 00:50:49 -0800 (PST) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id t1si18867241pbi.99.2011.12.05.00.50.48; Mon, 05 Dec 2011 00:50:49 -0800 (PST) Received-SPF: neutral (google.com: 203.254.224.25 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.25 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm1.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LVQ0053R38NNIS0@mailout2.samsung.com>; Mon, 05 Dec 2011 17:50:47 +0900 (KST) X-AuditID: cbfee61a-b7cb4ae000004c09-ae-4edc85e70c03 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id AE.1F.19465.7E58CDE4; Mon, 05 Dec 2011 17:50:47 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LVQ0005738G9A10@mmp2.samsung.com>; Mon, 05 Dec 2011 17:50:47 +0900 (KST) From: Thomas Abraham To: linux-samsung-soc@vger.kernel.org Cc: rpurdie@rpsys.net, linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, patches@linaro.org, jhkim@insignal.co.kr, inderpal.singh@linaro.org, tushar.behera@linaro.org Subject: [PATCH 2/2] arm: exynos: allow platform-lcd driver to control lcd regulator source on origen Date: Mon, 05 Dec 2011 14:22:28 +0530 Message-id: <1323075148-29356-1-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 X-Brightmail-Tracker: AAAAAA== The buck7 regulator of max8997 pmic which provides the power source to lcd panel and the lvds transmitter is allowed to be controlled by the platform-lcd driver. It is not required to apply the voltage source by default. Also, the voltage range for buck7 regulator is modified as the per the values in the datasheet. Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mach-origen.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index f56d027..5456254 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -126,7 +126,7 @@ static struct regulator_consumer_supply __initdata buck3_consumer[] = { REGULATOR_SUPPLY("vdd_g3d", "mali_drm"), /* G3D */ }; static struct regulator_consumer_supply __initdata buck7_consumer[] = { - REGULATOR_SUPPLY("vcc", "platform-lcd"), /* LCD */ + REGULATOR_SUPPLY("vcc_lcd", "platform-lcd.0"), /* LCD */ }; static struct regulator_init_data __initdata max8997_ldo1_data = { @@ -379,11 +379,11 @@ static struct regulator_init_data __initdata max8997_buck5_data = { static struct regulator_init_data __initdata max8997_buck7_data = { .constraints = { .name = "VDD_LCD_3.3V", - .min_uV = 3300000, - .max_uV = 3300000, + .min_uV = 750000, + .max_uV = 3900000, .boot_on = 1, - .apply_uV = 1, - .valid_ops_mask = REGULATOR_CHANGE_STATUS, + .valid_ops_mask = REGULATOR_CHANGE_STATUS | + REGULATOR_CHANGE_VOLTAGE, .state_mem = { .disabled = 1 }, @@ -562,6 +562,8 @@ static void lcd_hv070wsa_set_power(struct plat_lcd_data *pd, unsigned int power) static struct plat_lcd_data origen_lcd_hv070wsa_data = { .set_power = lcd_hv070wsa_set_power, + .min_uV = 3300000, + .max_uV = 3300000, }; static struct platform_device origen_lcd_hv070wsa = {