rk31xx lvds: update config for VOCM and VDIFF

Signed-off-by: hjc <hjc@rock-chips.com>
This commit is contained in:
hjc
2015-02-11 17:30:59 +08:00
parent fe07ef3880
commit 01831bac5d
2 changed files with 11 additions and 0 deletions

View File

@@ -94,6 +94,10 @@ static int rk31xx_lvds_pwr_on(void)
struct rk_lvds_device *lvds = rk31xx_lvds;
if (lvds->screen.type == SCREEN_LVDS) {
/* set VOCM 900 mv and V-DIFF 350 mv */
lvds_msk_reg(lvds, MIPIPHY_REGE4, m_VOCM | m_DIFF_V,
v_VOCM(0) | v_DIFF_V(2));
/* power up lvds pll and ldo */
lvds_msk_reg(lvds, MIPIPHY_REG1,
m_SYNC_RST | m_LDO_PWR_DOWN | m_PLL_PWR_DOWN,

View File

@@ -96,6 +96,13 @@ enum {
#define v_LVDS_EN(x) BITS_MASK(x, 1, 1)
#define v_TTL_EN(x) BITS_MASK(x, 1, 2)
#define MIPIPHY_REGE4 0x0390
#define m_VOCM BITS(3, 4)
#define m_DIFF_V BITS(3, 6)
#define v_VOCM(x) BITS_MASK(x, 3, 4)
#define v_DIFF_V(x) BITS_MASK(x, 3, 6)
#define MIPIPHY_REGE8 0x03a0
#define MIPIPHY_REGEB 0x03ac