HDMI: modify de pol to fix no output and modify cat66121 hdmi init code

This commit is contained in:
zwl
2014-03-18 23:46:58 +08:00
parent 7f6a81d6ed
commit 49ebd6381b
4 changed files with 6 additions and 4 deletions

View File

@@ -167,8 +167,10 @@ static const struct file_operations hdmi_reg_fops = {
static int rk_hdmi_drv_init(struct hdmi *hdmi_drv)
{
int ret = 0;
struct rk_screen screen;
if(HDMI_SOURCE_DEFAULT == HDMI_SOURCE_LCDC0)
rk_fb_get_prmry_screen(&screen);
if(screen.lcdc_id == 1)
hdmi_drv->lcdc = rk_get_lcdc_drv("lcdc0");
else
hdmi_drv->lcdc = rk_get_lcdc_drv("lcdc1");

View File

@@ -462,7 +462,7 @@ static int rk3288_hdmi_config_phy(struct hdmi *hdmi_drv)
hdmi_writel(hdmi_dev, MC_PHYRSTZ, v_PHY_RSTZ(0));
//Set slave address as PHY GEN2 address
hdmi_writel(hdmi_dev, PHY_I2CM_SLAVE, PHY_I2C_SLAVE_ADDR);
hdmi_writel(hdmi_dev, PHY_I2CM_SLAVE, PHY_I2C_SLAVE_ADDR); //TODO Daisen wait to modify
rk3288_hdmi_write_phy(hdmi_dev, 0x13, 0x0000); /* PLLPHBYCTRL */
rk3288_hdmi_write_phy(hdmi_dev, 0x17, 0x0006);

View File

@@ -127,7 +127,7 @@ int hdmi_set_info(struct rk_screen *screen, unsigned int vic)
else
screen->pin_vsync = 0;
#endif
screen->pin_den = 1; //TODO modify by Daisen
screen->pin_den = 0;
screen->pin_dclk = DCLK_POL;
/* Swap rule */

View File

@@ -11,7 +11,7 @@
int rk_hdmi_pwr_ctr_parse_dt(struct hdmi *dev_drv)
{
struct device_node *root = of_find_node_by_name(dev_drv->dev->of_node,
"power_ctr");
"power_ctr_hdmi");
struct device_node *child;
struct rk_disp_pwr_ctr_list *pwr_ctr;
struct list_head *pos;