How to enable lvds in uboot 2009 for sabresd board?

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

How to enable lvds in uboot 2009 for sabresd board?

2,882 Views
teddy123
Contributor III

I am working on custom sabresd board and I would like to display a splash image on the lvds screen. For this, I have to configure lvds in the board file. Can anyone pls tell me how to configure lvds screen in uboot. Is lcd_enable() function has anything to do with it?

Labels (2)
0 Kudos
21 Replies

1,713 Views
fabio_estevam
NXP Employee
NXP Employee

Please don't use such old U-boot version from 2009.

Just use the latest mainline U-boot and LVDS splash will work out of the box.

0 Kudos

1,713 Views
teddy123
Contributor III

But Fabio, I need to port Android on my custom sabresd board which in turn is based on the older version of u-boot only.

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

1,713 Views
teddy123
Contributor III

Hi Igor,

How is the value of the environment variable "splashimage" calculated?

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

1,713 Views
teddy123
Contributor III

Hi Igor,

But I cant understood how do we set the value of splashimage variable, How do we arrive on it?

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee

Hi teddy

what do you mean by

"I cant understood how do we set the value of splashimage variable, How do we arrive on it"

?

0 Kudos

1,713 Views
teddy123
Contributor III

Hi Igor,

From my observation the value of splashimage variable for a SABRESD board is 0x30000000. I need to know do we arrive at this value?

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee

Hi teddy

splashimage is free memory space, in Uboot you can look at

TEXT_BASE - the pointer *start where the code is copied from the

boot device. This variable (in u-boot-2009.08 TEXT_BASE = 0x27800000 )

is defined in the file: ./u-boot/board/freescale/mx6q_sabresd/config.mk

~igor

0 Kudos

1,713 Views
teddy123
Contributor III

But Igor,

Why do we then specify the splashimage variable as 0x30000000 instead of 0x27800000?

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee

Hi teddy

0x30000000 is free address - so it is used for splashscreen,

0x27800000 is start address for Uboot loading

~igor

0 Kudos

1,713 Views
teddy123
Contributor III

Hi Igor,

I would like to know how the address available in the splashimage variable is mapped to a framebuffer so that the splash image is displayed over the lvds. Because, It seems we just copy the splash image to a free memory location(i.e. within setup_splash_image() function ) in uboot.

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee

Hi teddy

please create new thread for new questions

~igor

0 Kudos

1,713 Views
igorpadykov
NXP Employee
NXP Employee

Hi teddy

I think attached document may help

sect.5.4 Splash screen support

Best regards

igor

0 Kudos

1,713 Views
teddy123
Contributor III

Hi igor,

I have tried this too but am not able to view anything even the lvds backlight isn't getting enabled.

0 Kudos

1,713 Views
saurabh206
Senior Contributor III

Hi,

teddy

you need update timing parameters for your panel. 

0 Kudos

1,713 Views
teddy123
Contributor III

Sorry Saurabh, am new to this wat do u mean by timing parameters?

0 Kudos

1,713 Views
saurabh206
Senior Contributor III

Hi,

teddy

Which panel are you using?

What is a resolution?

0 Kudos

1,713 Views
teddy123
Contributor III

Am using eGalax panel with resolution 1024*768.

0 Kudos

1,713 Views
saurabh206
Senior Contributor III

Hi,

static struct fb_videomode lvds_xga = {

     "XGA", 60, 1024, 768, 15385, 220, 40, 21, 7, 60, 10,

     FB_SYNC_EXT,

     FB_VMODE_NONINTERLACED,

     0,

};

Refer following file

uboot-imx\board\freescale\mx6q_sabresd\mx6q_sabresd.c

0 Kudos