Re: [PATCH 01/23] OMAPDSS: HDMI: lane config support

From
Tomi Valkeinen <hidden>
Date
2014-04-25 10:28:07
Also in
linux-arm-kernel, linux-omap
Reply to
Archit Taneja, 2014-04-25
On 25/04/14 13:06, Archit Taneja wrote:
I spent some time to see if we could get create lane_cfg_val without
having the table above, looks like there is no pattern at all in the
register field.
There is a pattern, but I wasn't able to figure out a formula to model
it. And as the array was not very long, and was easy to create with copy
paste and search-replace from the TRM, I thought it's just simplest way
to do it.
quoted
+
+    REG_FLD_MOD(phy->base, HDMI_TXPHY_PAD_CFG_CTRL, lane_cfg_val, 26,
22);
+    REG_FLD_MOD(phy->base, HDMI_TXPHY_PAD_CFG_CTRL, pol_val, 30, 27);
+}
+
  int hdmi_phy_enable(struct hdmi_phy_data *phy, struct hdmi_wp_data *wp,
              struct hdmi_config *cfg)
  {
@@ -92,8 +183,7 @@ int hdmi_phy_enable(struct hdmi_phy_data *phy,
struct hdmi_wp_data *wp,
      /* Setup max LDO voltage */
      REG_FLD_MOD(phy->base, HDMI_TXPHY_POWER_CTRL, 0xB, 3, 0);

-    /* Write to phy address 3 to change the polarity control */
-    REG_FLD_MOD(phy->base, HDMI_TXPHY_PAD_CFG_CTRL, 0x1, 27, 27);
wow, didn't realize it was hardcoded like this.

Reviewed-by: Archit Taneja <<redacted>
Thanks!

 Tomi

Attachments

Thread (45 messages) 45 messages, 4 authors, last reply 2014-05-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help