Dual display mode in Anroid (LCD + HDMI)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dual display mode in Anroid (LCD + HDMI)

Jump to solution
2,071 Views
tomasznowak
Contributor II

Hello community,

 

I'm working on a project based on imx6Solo CPU. In opposite to the SabreSD reference board I would like to use Paralled LCD instead of the LVDS display.

 

I added LCD display by modifying the files board-mx6q_sabresd.c and mxc_lcdif.c (changes attached as lcd.txt).

After this change I was able to boot either using LCD

> setenv bootargs console=ttymxc2,115200 androidboot.console=ttymxc2 vmalloc=400M init=/init video=mxcfb0:dev=lcd,EWUZ,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale rw

or HDMI

> setenv bootargs console=ttymxc2,115200 androidboot.console=ttymxc2 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,640x480@60,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M androidboot.hardware=freescale rw

 

 

Trying to use both at the same time

> setenv bootargs console=ttymxc2,115200 androidboot.console=ttymxc2 vmalloc=400M init=/init video=mxcfb0:dev=lcd,MYLCD,bpp=32 video=mxcfb1:dev=hdmi,640x480@60,bpp=32 video=mxcfb2:off fbmem=28M androidboot.hardware=freescale rw

 

resulted in the error:

mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver lcd

mxc_sdc_fb mxc_sdc_fb.1: register mxc display driver hdmi

mxc_hdmi mxc_hdmi: Detected HDMI controller 0x13:0x1a:0xa0:0xc1

mxc_sdc_fb mxc_sdc_fb.1: ipu0-di0 already in use

mxc_sdc_fb: probe of mxc_sdc_fb.1 failed with error -16

 

I noticed that the LVDS display on SabreSD board is using disp_id = 1 and modified the file board-mx6q_sabresd.c accordingly:

 

Index: board-mx6q_sabresd.c

===================================================================

static struct fsl_mxc_lcd_platform_data lcdif_data = {

     .ipu_id = ,

-    .disp_id = 0,

+    .disp_id = 1,

     .default_ifmt = IPU_PIX_FMT_RGB565,

};

 

Unfortunatelly, after this change I'm not able to see anything on the LCD.

 

Do I have to force IPU to output LCD data using different display interface (DI1)?

How should I configure IOMUXC_GPR3?

 

 

Any help would be appreciated!

Tomasz

Original Attachment has been moved to: lcd.txt.zip

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
931 Views
tomasznowak
Contributor II

Hello Dan,

yes the problem was related to clock configuration described here https://community.freescale.com/thread/318062

View solution in original post

0 Kudos
Reply
4 Replies
931 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Tomasz,

Have you solved your problem?

Best Regards

Dan

0 Kudos
Reply
932 Views
tomasznowak
Contributor II

Hello Dan,

yes the problem was related to clock configuration described here https://community.freescale.com/thread/318062

0 Kudos
Reply
931 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Tomasz,

It's great that you have solved the problem. Any other questions contact us.

Would you please help click Correct Answer or helpful answer for us, thanks a lot~~

Have a great day.

Best Regards

Dan

0 Kudos
Reply
931 Views
joanxie
NXP TechSupport
NXP TechSupport

could you send the board-mx6q_sabresd.c to me? pls try to use the different  port for hdmi and lcd.

you can boot hdmi and lcd  seperately, right?

0 Kudos
Reply