From patchwork Thu Sep 8 13:33:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepthy Ravi X-Patchwork-Id: 1129652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p88DYdoC023492 for ; Thu, 8 Sep 2011 13:34:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932875Ab1IHNeW (ORCPT ); Thu, 8 Sep 2011 09:34:22 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:58676 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932868Ab1IHNeV (ORCPT ); Thu, 8 Sep 2011 09:34:21 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p88DXqgm006805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Sep 2011 08:33:54 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p88DXpDm001623; Thu, 8 Sep 2011 19:03:52 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 8.3.106.1; Thu, 8 Sep 2011 19:03:52 +0530 Received: from localhost.localdomain (dbdp20.itg.ti.com [172.24.170.38]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p88DXpt4027086; Thu, 8 Sep 2011 19:03:51 +0530 (IST) From: Deepthy Ravi To: CC: , , , , , , , , Vaibhav Hiremath , Deepthy Ravi Subject: [PATCH 1/8] omap3evm: Enable regulators for camera interface Date: Thu, 8 Sep 2011 19:03:51 +0530 Message-ID: <1315488831-15998-1-git-send-email-deepthy.ravi@ti.com> X-Mailer: git-send-email 1.6.2.4 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 08 Sep 2011 13:34:39 +0000 (UTC) From: Vaibhav Hiremath Enabled 1v8 and 2v8 regulator output, which is being used by camera module. Signed-off-by: Vaibhav Hiremath Signed-off-by: Deepthy Ravi --- arch/arm/mach-omap2/board-omap3evm.c | 40 ++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index a1184b3..8333ee4 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -273,6 +273,44 @@ static struct omap_dss_board_info omap3_evm_dss_data = { .default_device = &omap3_evm_lcd_device, }; +static struct regulator_consumer_supply omap3evm_vaux3_supply = { + .supply = "cam_1v8", +}; + +static struct regulator_consumer_supply omap3evm_vaux4_supply = { + .supply = "cam_2v8", +}; + +/* VAUX3 for CAM_1V8 */ +static struct regulator_init_data omap3evm_vaux3 = { + .constraints = { + .min_uV = 1800000, + .max_uV = 1800000, + .apply_uV = true, + .valid_modes_mask = REGULATOR_MODE_NORMAL + | REGULATOR_MODE_STANDBY, + .valid_ops_mask = REGULATOR_CHANGE_MODE + | REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = 1, + .consumer_supplies = &omap3evm_vaux3_supply, +}; + +/* VAUX4 for CAM_2V8 */ +static struct regulator_init_data omap3evm_vaux4 = { + .constraints = { + .min_uV = 1800000, + .max_uV = 1800000, + .apply_uV = true, + .valid_modes_mask = REGULATOR_MODE_NORMAL + | REGULATOR_MODE_STANDBY, + .valid_ops_mask = REGULATOR_CHANGE_MODE + | REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = 1, + .consumer_supplies = &omap3evm_vaux4_supply, +}; + static struct regulator_consumer_supply omap3evm_vmmc1_supply[] = { REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"), }; @@ -499,6 +537,8 @@ static struct twl4030_platform_data omap3evm_twldata = { .vio = &omap3evm_vio, .vmmc1 = &omap3evm_vmmc1, .vsim = &omap3evm_vsim, + .vaux3 = &omap3evm_vaux3, + .vaux4 = &omap3evm_vaux4, }; static int __init omap3_evm_i2c_init(void)