From 9c31f973fdb8d708ea219baa5f20edd5999e979e Mon Sep 17 00:00:00 2001 From: Greg Meiste Date: Mon, 16 Aug 2010 11:13:27 -0500 Subject: [PATCH] [ARM] tegra: stingray: Configure CPCAP Switchers for low power CPCAP switchers 2, 3, and 4 need to be set to PSM mode in normal mode and PFM mode in low power mode. CPCAP switchers 2 and 4 should be set to 0.95v in low power mode. This will provide some current drain savings. Change-Id: Ie506305dd011dfc14fda5fd24562539149352bb9 Signed-off-by: Greg Meiste Signed-off-by: Nick Pelly --- arch/arm/mach-tegra/board-stingray-power.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-tegra/board-stingray-power.c b/arch/arm/mach-tegra/board-stingray-power.c index 98ac39625151..771ce4a8d5de 100644 --- a/arch/arm/mach-tegra/board-stingray-power.c +++ b/arch/arm/mach-tegra/board-stingray-power.c @@ -267,6 +267,11 @@ static struct platform_device *cpcap_devices[] = { struct cpcap_spi_init_data stingray_cpcap_spi_init[] = { {CPCAP_REG_S1C1, 0x0000}, {CPCAP_REG_S1C2, 0x0000}, + {CPCAP_REG_S2C1, 0x2730}, + {CPCAP_REG_S2C2, 0x301C}, + {CPCAP_REG_S3C, 0x0139}, + {CPCAP_REG_S4C1, 0x2730}, + {CPCAP_REG_S4C2, 0x301C}, {CPCAP_REG_S6C, 0x0000}, {CPCAP_REG_VRF1C, 0x0000}, {CPCAP_REG_VRF2C, 0x0000}, @@ -279,8 +284,8 @@ struct cpcap_spi_init_data stingray_cpcap_spi_init[] = { }; unsigned short cpcap_regulator_mode_values[CPCAP_NUM_REGULATORS] = { - [CPCAP_SW2] = 0x0100, - [CPCAP_SW4] = 0x0100, + [CPCAP_SW2] = 0x0700, + [CPCAP_SW4] = 0x0700, [CPCAP_SW5] = 0x0022, [CPCAP_VCAM] = 0x0003, [CPCAP_VCSI] = 0x0003, -- 2.34.1