[ARM] tegra: stingray: Configure CPCAP Switchers for low power
authorGreg Meiste <w30289@motorola.com>
Mon, 16 Aug 2010 16:13:27 +0000 (11:13 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:39 +0000 (16:33 -0700)
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 <w30289@motorola.com>
Signed-off-by: Nick Pelly <npelly@google.com>
arch/arm/mach-tegra/board-stingray-power.c

index 98ac39625151b13074cdd569d3ba3c6cd9f181a9..771ce4a8d5de1ead704a0ae72e7f0752956574ad 100644 (file)
@@ -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,