AnsweredAssumed Answered

mx6q LVDS+HDMI show ?

Question asked by huang dexiang on Jun 12, 2015
Latest reply on Jun 13, 2015 by huang dexiang

how to display lvds + hdmi at the same time on Linux?

We want to display the same content on LVDS0 and HDMI based on mx6q_sabresd board. Our LVDS lcd is 1024x768-16bpp.

We modified the file board-mx6q_sabresd.c in the kernel file as following:

 

 

static struct fsl_mxc_hdmi_platform_data hdmi_data = {

  .init = hdmi_init,

  .enable_pins = hdmi_enable_ddc_pin,

  .disable_pins = hdmi_disable_ddc_pin,

  .phy_reg_vlev = 0x0294,

  .phy_reg_cksymtx = 0x800d,

};

 

 

static struct fsl_mxc_hdmi_core_platform_data hdmi_core_data = {

  .ipu_id = 1,

  .disp_id = 0,

};

 

 

static struct fsl_mxc_lcd_platform_data lcdif_data = {

  .ipu_id = 0,

  .disp_id = 0,

  .default_ifmt = IPU_PIX_FMT_RGB565,

};

 

 

static struct fsl_mxc_ldb_platform_data ldb_data = {

  .ipu_id = 1,

  .disp_id = 1,

  .ext_ref = 1,

  .mode = LDB_SEP1,

  .sec_ipu_id = 1,

  .sec_disp_id = 0,

};

 

 

 

 

static struct ipuv3_fb_platform_data sabresd_fb_data[] = {

  { /*fb0*/

  .disp_dev = "ldb",

  .interface_pix_fmt = IPU_PIX_FMT_RGB666,

  .mode_str =  "LDB-NEC-XGA",

  .default_bpp = 16,

  .int_clk = false,

  .late_init = false,

  },

  {

    .disp_dev = "ldb",

    .interface_pix_fmt = IPU_PIX_FMT_RGB666,

    .mode_str = "LDB-LG-LP101",

    .default_bpp = 16,

    .int_clk = false,

    .late_init = false,

    }, 

{

  .disp_dev = "hdmi",

  .interface_pix_fmt = IPU_PIX_FMT_RGB24,

  .mode_str = "1920x1080M@60",

  .default_bpp = 32,

  .int_clk = false,

  .late_init = false,

  },   

    {

  .disp_dev = "lcd",

  .interface_pix_fmt = IPU_PIX_FMT_RGB565,

  .mode_str = "CLAA-WVGA",

  .default_bpp = 16,

  .int_clk = false,

  .late_init = false,

  } ,

};

 

 

 

 

and our uboot argument is :

setenv bootargs_emmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcfb0:dev=ldb,LDB-NEC-XGA,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 ldb=dul0'

 

 

 

 

the result is as the pictures attached.

Can any one give me some tips?

Attachments

Outcomes