[U-Boot] LVDS dual channel support on A10,A20,A31s mods.
far5893
far5893 at iperbole.bologna.it
Wed Aug 23 08:08:44 UTC 2017
Hi,
i make a little changes to
lcdc.h and sunxi_diplay.h to make dual channel LVDS interface working :
-lcdc.h
#define SUNXI_LCDC_TCON0_LVDS_INTF_CH(n) ((n) << 30) /* LVDS Dual channel 0=single 1=dual*/
and in
-sunxi_diplay.h (line 830).
#ifdef CONFIG_VIDEO_LCD_IF_LVDS
if (mode->yres <= 768) ch=0; /*Single channel*/
if ((mode->yres <= 800) & (sunxi_display.depth == 18)) ch=0; /*Single channel*/
if ((mode->yres > 768) & (sunxi_display.depth == 24)) ch=1; /*Dual channel*/
if(ch) printf ("Dual Channel Mode\n");
else printf ("Single Channel Mode\n");
writel(SUNXI_LCDC_TCON0_LVDS_INTF_BITWIDTH(val) |
SUNXI_LCDC_TCON0_LVDS_CLK_SEL_TCON0 |
SUNXI_LCDC_TCON0_LVDS_INTF_CH(ch), &lcdc->tcon0_lvds_intf);
#endif
there are another patch from plaes sended but nothing happen.
https://lists.denx.de/pipermail/u-boot/2017-March/284805.html
These mods are tested on cubieboard1 and 2 , banana pi M2 (A31s) and dual channel lcd displays
i'm not a software developer so patching tree and submit is out from my knowledge
Thank
Miky
More information about the U-Boot
mailing list