summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd4a7c4)
raw | patch | inline | side by side (parent: dd4a7c4)
author | Somnath Mukherjee <somnath@ti.com> | |
Fri, 30 Aug 2013 12:41:52 +0000 (18:11 +0530) | ||
committer | Gerrit Code Review <gerrit2@git.omapzoom.org> | |
Thu, 5 Sep 2013 10:36:08 +0000 (05:36 -0500) |
It's not sufficient to request the regulator. We need to set the
IO voltage as well. The IO voltages are being requested from
<soc>.dtsi files.
Change-Id: I64a935d0ecc49b65ba38fc76382c3b28445fbfa6
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
IO voltage as well. The IO voltages are being requested from
<soc>.dtsi files.
Change-Id: I64a935d0ecc49b65ba38fc76382c3b28445fbfa6
Signed-off-by: Somnath Mukherjee <somnath@ti.com>
index 6dd55b5821b742d27349f2849bc7934f8a17f5a1..6d42cfbbe5fb13056f45760b040da406c674753a 100644 (file)
compatible = "ti,omap4-hdmi", "simple-bus";
ti,hwmods = "dss_hdmi";
video-source = <1>;
+ vdda_hdmi_microvolt_min = <1500000>;
+ vdda_hdmi_microvolt_max = <1800000>;
};
};
index 5b62941de4d3f14914575b92eb9e9e018cdda43c..6047561c2bd5334e4f2877c0ec1048916587c03a 100644 (file)
ti,hwmods = "dss_hdmi";
vdda_hdmi_dac-supply = <&vdac>;
video-source = <1>;
+ vdda_hdmi_microvolt_min = <1800000>;
+ vdda_hdmi_microvolt_max = <1980000>;
};
};
index eb6c0f750dfb9a8f7cfd50bbb55c37493cced71c..7e3760738e63e53c5043e65f0b93f7a7c2a33bfb 100755 (executable)
compatible = "ti,omap4-hdmi", "simple-bus";
ti,hwmods = "dss_hdmi";
video-source = <1>;
+ vdda_hdmi_microvolt_min = <1500000>;
+ vdda_hdmi_microvolt_max = <1800000>;
};
};
index 133da16ef8633f9af75d99606adfefd3a822208d..6f9b334f1ebe31fe31314aedd9f39b7b23b477fe 100644 (file)
struct clk *sys_clk;
struct regulator *vdda_hdmi_dac_reg;
+ /* voltage required by the ip*/
+ u32 microvolt_min;
+ u32 microvolt_max;
+
/* GPIO pins */
int ct_cp_hpd_gpio;
int ls_oe_gpio;
return PTR_ERR(reg);
}
+ r = regulator_set_voltage(reg, hdmi.microvolt_min, hdmi.microvolt_max);
+ if(r) {
+ DSSERR("can't set the voltage regulator");
+ }
+
hdmi.vdda_hdmi_dac_reg = reg;
}
struct i2c_adapter *adapter = NULL;
int r, gpio;
enum omap_channel channel;
- u32 v;
+ u32 v, volt;
int gpio_count;
r = of_property_read_u32(node, "video-source", &v);
channel = v;
+ r = of_property_read_u32(node, "vdda_hdmi_microvolt_min", &volt);
+ if (r) {
+ DSSERR("parsing microvolt_min failed\n");
+ return;
+ }
+ hdmi.microvolt_min = volt;
+
+ r = of_property_read_u32(node, "vdda_hdmi_microvolt_max", &volt);
+ if (r) {
+ DSSERR("parsing microvolt_max failed\n");
+ return;
+ }
+ hdmi.microvolt_max = volt;
+
node = of_find_compatible_node(node, NULL, "ti,tpd12s015");
if (!node)
return;