- 积分
- 22
贡献94
飞刀24 FD
注册时间2023-9-11
在线时间3 小时
扫一扫,手机访问本帖
|
原文:
回复: 核心板LVDS输出寄存器设置
1.uboot改动:
diff --git a/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c b/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
index f8eb3616d9..f4190c1b9a 100644
--- a/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
+++ b/drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
@@ -760,6 +760,7 @@ s32 tcon0_cfg(u32 sel, disp_panel_para *panel, u32 de_use_rcq)
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_correct_mode = 0;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_dir = 0;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_clk_sel = 1;
+               lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_even_odd_dir = 1;
 #if defined(LVDS_REVERT)
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_data_revert = 0xf;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_clk_revert = 0x1;
2.kernel改动:
diff --git a/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c b/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
index 36f3443d5f72..cf891095abf4 100644
--- a/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
+++ b/drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c
@@ -765,6 +765,7 @@ s32 tcon0_cfg(u32 sel, struct disp_panel_para *panel, u32 de_use_rcq)
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_correct_mode = 0;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_dir = 0;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_clk_sel = 1;
+               lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_even_odd_dir = 1;
 #if defined(LVDS_REVERT)
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_data_revert = 0xf;
                lcd_dev[sel]->tcon0_lvds_ctl.bits.tcon0_lvds_clk_revert = 0x1;
3.确认改动:
echo 0x06511084 >/sys/class/sunxi_dump/dump&&cat /sys/class/sunxi_dump/dump
如果bit29为1,则生效
如果bit29为1,则生效
位置:
U-Boot改动是在 drivers/video/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c 文件中进行的。这些更改影响了U-Boot中的LVDS配置。
Kernel改动是在 drivers/video/fbdev/sunxi/disp2/disp/de/lowlevel_v33x/tcon/de_lcd.c 文件中进行的。这些更改影响了Linux内核中的LVDS配置。
在飞凌T507的源码中我只找到了Kernel的位置,U-Boot文件位置我没找到。我到那找?
因为只设置了Kernel所以配置是失败的
echo 0x06511084 >/sys/class/sunxi_dump/dump&&cat /sys/class/sunxi_dump/dump
结果是:0xc0100000
0xc0100000 转换成二进制为: 11000001000000010000000000000000
29位是0
随时期盼回复,能解决问题 |
|