static void rk_output_lvds(rk_screen *screen)
{
- LVDSWrReg(m_PD_PLL(1)|m_PD_PLL(0)|m_PDN(1)|m_OEN(0) \
+ printk("%s: %x\n", __func__, m_PDN_CBG(1)|m_PD_PLL(0)|m_PDN(1)|m_OEN(0) \
|m_DS(DS_10PF)|m_MSBSEL(DATA_D0_MSB) \
|m_OUT_FORMAT(screen->hw_format) \
|m_LCDC_SEL(FROM_LCDC0));
+ LVDSWrReg(m_PDN_CBG(1)|m_PD_PLL(0)|m_PDN(1)|m_OEN(0) \
+ |m_DS(DS_10PF)|m_MSBSEL(DATA_D0_MSB) \
+ |m_OUT_FORMAT(screen->hw_format) \
+ |m_LCDC_SEL(FROM_LCDC0));
+
+ printk("%s: reg = 0x%x\n", __func__, LVDSRdReg());
}
static void rk_output_lvttl(rk_screen *screen)
|m_DS(DS_10PF)|m_MSBSEL(DATA_D0_MSB) \
|m_OUT_FORMAT(screen->hw_format) \
|m_LCDC_SEL(FROM_LCDC0));
+ printk("%s: reg = 0x%x\n", __func__, LVDSRdReg());
}
static void rk_output_disable(void)
{
LVDSWrReg(m_PD_PLL(0)|m_PD_PLL(0)|m_PDN(0)|m_OEN(0));
+ printk("%s: reg = 0x%x\n", __func__, LVDSRdReg());
}
static int rk_lvds_set_param(rk_screen *screen,bool enable )
switch(screen->type){
case SCREEN_LVDS:
rk_output_lvds(screen);
+
break;
case SCREEN_RGB:
rk_output_lvttl(screen);
#define LVDSWrReg(val) __raw_writel( val ,LVDS_CON0_REG)
#define m_value(x,offset,mask) \
- ((mask<<(offset+8)) | (x&mask)<<offset)
+ ((mask<<(offset+16)) | (x&mask)<<offset)
#define OEN (1<<9)
#define m_OEN(x) m_value(x,9,1)