arm: tegra: macallan: add power detect rails
Hunk Lin [Fri, 29 Mar 2013 08:29:49 +0000 (16:29 +0800)]
Add full power detect rails to fix high power in many IO power rails.

Bug 1255023
Bug 1254991
Bug 1254993
Bug 1255002
Bug 1255008
Bug 1255016
Bug 1255020

Change-Id: I1736e2f2784437a6d287554d3bba1f47afca77ed
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/214429
(cherry picked from commit f516a25edb23cb8f5f43edbc898e88130ffca929)
Reviewed-on: http://git-master/r/215968
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-macallan-power.c

index e167870..ba6416f 100644 (file)
@@ -122,6 +122,7 @@ static struct regulator_consumer_supply palmas_smps8_supply[] = {
        REGULATOR_SUPPLY("avdd_osc", NULL),
        REGULATOR_SUPPLY("vddio_sys", NULL),
        REGULATOR_SUPPLY("vddio_bb", NULL),
+       REGULATOR_SUPPLY("pwrdet_bb", NULL),
        REGULATOR_SUPPLY("vddio_sdmmc", "sdhci-tegra.0"),
        REGULATOR_SUPPLY("pwrdet_sdmmc1", NULL),
        REGULATOR_SUPPLY("vddio_sdmmc", "sdhci-tegra.3"),
@@ -132,6 +133,7 @@ static struct regulator_consumer_supply palmas_smps8_supply[] = {
        REGULATOR_SUPPLY("vddio_uart", NULL),
        REGULATOR_SUPPLY("pwrdet_uart", NULL),
        REGULATOR_SUPPLY("vddio_gmi", NULL),
+       REGULATOR_SUPPLY("pwrdet_nand", NULL),
        REGULATOR_SUPPLY("vlogic", "0-0069"),
        REGULATOR_SUPPLY("vid", "0-000d"),
        REGULATOR_SUPPLY("vddio", "0-0078"),
@@ -139,6 +141,8 @@ static struct regulator_consumer_supply palmas_smps8_supply[] = {
 
 static struct regulator_consumer_supply palmas_smps9_supply[] = {
        REGULATOR_SUPPLY("vddio_sd_slot", "sdhci-tegra.3"),
+       REGULATOR_SUPPLY("vddio_hv", "tegradc.1"),
+       REGULATOR_SUPPLY("pwrdet_hv", NULL),
 };
 
 static struct regulator_consumer_supply palmas_smps10_supply[] = {
@@ -163,6 +167,7 @@ static struct regulator_consumer_supply palmas_ldo2_supply[] = {
        REGULATOR_SUPPLY("avdd_dsi_csi", "vi"),
        REGULATOR_SUPPLY("vddio_hsic", "tegra-ehci.1"),
        REGULATOR_SUPPLY("vddio_hsic", "tegra-ehci.2"),
+       REGULATOR_SUPPLY("pwrdet_mipi", NULL),
 };
 
 static struct regulator_consumer_supply palmas_ldo3_supply[] = {
@@ -405,6 +410,8 @@ static struct regulator_consumer_supply fixed_reg_vd_cam_1v8_supply[] = {
        REGULATOR_SUPPLY("vif", "2-0036"),
        REGULATOR_SUPPLY("dovdd", "2-0010"),
        REGULATOR_SUPPLY("vdd_i2c", "2-000e"),
+       REGULATOR_SUPPLY("vddio_cam", "vi"),
+       REGULATOR_SUPPLY("pwrdet_cam", NULL),
 };
 
 /* Macro for defining fixed regulator sub device data */