AnsweredAssumed Answered

Mirroring the LVDS & LCD in iMX6DL

Question asked by 호영 노 on Mar 6, 2018
Latest reply on Mar 9, 2018 by 호영 노

Hi,

 

I'm using the iMX6DL and Linux kernel 3.0.35

 

I tested each of LCD(via ADV7125) and LVDS. 

But my ultimate goal is see the same screen at same time. (Mirroring.)

 

So I tried below step, 

 

1. set the bootargs

"root=/dev/mmcblk0p1 rootfstype=ext4 rootwait rw video=mxcfb0:dev=ldb,LDB-VGA,bpp=32 video=mxcfb1:dev=lcd,LCD-640, if=RGB24, bpp=32 \0"

 

2. set the lcdif_data & ldb_data in the kernel source.

 

static struct fsl_mxc_lcd_platform_data lcdif_data = {
.ipu_id = 0,
.disp_id = 0,
};

 

static struct fsl_mxc_ldb_platform_data ldb_data = {
.ipu_id = 0,
.disp_id = 0,
.ext_ref = 1,
.mode = LDB_SEP0,
.sec_ipu_id = 1,
.sec_disp_id = 1,
};

 

※ I think, this is mirroring. so, it need same setting of ipu_id & disp_id. Isn't it??

 

3. in the initializing code, I added each datas like this,

imx6q_add_ldb(&ldb_data);
imx6q_add_lcdif(&lcdif_data);

 

Is this add order affect the "bootargs"'s framebuffer setting?  

ex ) if I set the mxcfb0 to ldb, then should I call the "imx6q_add_ldb(&ldb_data);" earlier than "imx6q_add_lcdif(&lcdif_data);" ??

 

 

 

Actually, 

I tried change the "ipu_id" and "disp_id " and 

bootargs 's this line -> "video=mxcfb0:dev=ldb,LDB-VGA,bpp=32 video=mxcfb1:dev=lcd,LCD-640, if=RGB24, bpp=32"

(mxcfb0 and mxcfb1) by so many combinations. 

 

In this tests, I saw only one output of lcd or lvds. Sometimes I cannot see any output of lcd & lvds.

 

But I never seen the both output at same time. 

 

What can I do?? 

 

Outcomes