ARM: tegra: TN7C: revise avdd_hdmi_pll reg for P1988
Martin Chi [Mon, 30 Dec 2013 14:24:53 +0000 (22:24 +0800)]
Bug 1410152

Change-Id: Ie5bea317dd2f19bcf93095dd160e126f4b7b9882
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/350639
Reviewed-by: David Pu <dpu@nvidia.com>
GVS: Gerrit_Virtual_Submit

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

index 7dce8a2..5dc65b1 100644 (file)
@@ -221,7 +221,6 @@ static struct regulator_consumer_supply palmas_smps10_supply[] = {
 };
 
 static struct regulator_consumer_supply palmas_ldo1_supply[] = {
-       REGULATOR_SUPPLY("avdd_hdmi_pll", "tegradc.1"),
        REGULATOR_SUPPLY("avdd_csi_dsi_pll", "tegradc.0"),
        REGULATOR_SUPPLY("avdd_csi_dsi_pll", "tegradc.1"),
        REGULATOR_SUPPLY("avdd_csi_dsi_pll", "vi"),
@@ -522,6 +521,11 @@ static struct regulator_consumer_supply fixed_reg_en_lcd_1v8_supply[] = {
        REGULATOR_SUPPLY("dvdd", "spi0.0"),
 };
 
+/* AVDD_HDMI_PLL_EN from TEGRA_GPIO_PO6 */
+static struct regulator_consumer_supply fixed_reg_en_avdd_hdmi_pll_supply[] = {
+       REGULATOR_SUPPLY("avdd_hdmi_pll", "tegradc.1"),
+};
+
 /* Macro for defining fixed regulator sub device data */
 #define FIXED_SUPPLY(_name) "fixed_reg_"#_name
 #define FIXED_REG(_id, _var, _name, _in_supply, _always_on, _boot_on,  \
@@ -596,6 +600,10 @@ FIXED_REG(8,       vlogic_gyro,    vlogic_gyro,
        palmas_rails(smps8),    0,      0,
        TEGRA_GPIO_PR0, false,  true,   0,      1800);
 
+FIXED_REG(9,   en_avdd_hdmi_pll,       en_avdd_hdmi_pll,
+         palmas_rails(ldo1),     0,      0,
+         TEGRA_GPIO_PO6, false,  true,   0,      1050);
+
 /*
  * Creating the fixed regulator device tables
  */
@@ -613,7 +621,8 @@ FIXED_REG(8,        vlogic_gyro,    vlogic_gyro,
        ADD_FIXED_REG(dvdd_ts),
 
 #define P1988_FIXED_REG                                \
-       ADD_FIXED_REG(en_lcd_1v8),
+       ADD_FIXED_REG(en_lcd_1v8),              \
+       ADD_FIXED_REG(en_avdd_hdmi_pll)
 
 /* Gpio switch regulator platform data for TegraNote7C E1569 */
 static struct platform_device *fixed_reg_devs_e1569[] = {