arm: tegra: cardhu: Adding cam1 and cam2 power rails
Laxman Dewangan [Tue, 15 Feb 2011 08:18:02 +0000 (13:18 +0530)]
Adding cam1 and cam2 power rail details so that these rails
can be accessed from regulator apis.

Original-Change-Id: I24e6a6efdda0174b892d39ebe5fdb1e11d416bca
Reviewed-on: http://git-master/r/19566
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: Id35c6fab2cdda4efb1a6066f988f27847af154c3

Rebase-Id: Rbd5524a1dba36a282efb4576c723f3632041982d

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

index 9534e98..29cb253 100644 (file)
@@ -321,6 +321,13 @@ static struct regulator_consumer_supply gpio_switch_en_3v3_sys_supply[] = {
        REGULATOR_SUPPLY("vcom_pa", NULL),
        REGULATOR_SUPPLY("vdd_3v3_devices", NULL),
        REGULATOR_SUPPLY("vdd_3v3_dock", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_edid", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_hdmi_cec", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_gmi", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_spk_amp", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_sensor", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_cam", NULL),
+       REGULATOR_SUPPLY("vdd_3v3_als", NULL),
        REGULATOR_SUPPLY("debug_cons", NULL),
 };
 static int gpio_switch_en_3v3_sys_voltages[] = { 3300};
@@ -368,6 +375,18 @@ static struct regulator_consumer_supply gpio_switch_en_vdd_pnl1_supply[] = {
 };
 static int gpio_switch_en_vdd_pnl1_voltages[] = { 3300};
 
+/* CAM1_LDO_EN from AP GPIO KB_ROW6 R06*/
+static struct regulator_consumer_supply gpio_switch_cam1_ldo_en_supply[] = {
+       REGULATOR_SUPPLY("vdd_2v8_cam1", NULL),
+};
+static int gpio_switch_cam1_ldo_en_voltages[] = { 2800};
+
+/* CAM2_LDO_EN from AP GPIO KB_ROW7 R07*/
+static struct regulator_consumer_supply gpio_switch_cam2_ldo_en_supply[] = {
+       REGULATOR_SUPPLY("vdd_2v8_cam2", NULL),
+};
+static int gpio_switch_cam2_ldo_en_voltages[] = { 2800};
+
 /* CAM3_LDO_EN from AP GPIO KB_ROW8 S00*/
 static struct regulator_consumer_supply gpio_switch_cam3_ldo_en_supply[] = {
        REGULATOR_SUPPLY("vdd_cam3", NULL),
@@ -511,6 +530,11 @@ GREG_INIT(16, en_3v3_pex_hvdd, "vdd_3v3_devices", TEGRA_GPIO_PL7,
 
 GREG_INIT(17, en_1v8_cam,  "vdd_gen1v8", TEGRA_GPIO_PBB4,
                        false, 0, 0, 0, 0)
+
+GREG_INIT(18, cam1_ldo_en, "vdd_3v3_cam", TEGRA_GPIO_PR6,
+                       false, 0, 0, 0, 0)
+GREG_INIT(19, cam2_ldo_en, "vdd_3v3_cam", TEGRA_GPIO_PR7,
+                       false, 0, 0, 0, 0)
 };
 
 static struct gpio_switch_regulator_platform_data  gswitch_pdata = {