by wrwhite » Thu Dec 18, 2008 10:04 am
First you need to check that you have the generic LCD driver in the WinCE6 BSP (BSP greater than v2.2.5) otherwise you will have to request it.
The LCD is configured in the WinCE6 registry. Check for the key [HKEY_LOCAL_MACHINE\Drivers\Display\PXA320\Config] in platform.reg and modify the parameters to match your LCD (example below). Then rebuild you OS Design and test your display.
You will need to understand a little about the PXA320 LCD controller registers which can be found in the Marvell documentation ("PXA320 Processor Family Graphics and Input Controller Configuration Developers Manual" and the "PXA320 Processor Family Design Guide").
You can attach either a standard digital display to the standard digital LCD outputs or an LVDS display to the LVDS outputs. The display driver in the current BSP (v2.2.4) is specifically for the display delivered with the Swift Kit. You will need to request the generic driver, however this should be included by default from v2.2.5 onwards.
You can then attach any display you wish either directly to the LCD digital outputs or if you have an LVDS display to the LVDS outputs.
Here are the registry entries. Replace the "Ns" with the correct hex values. LCCR0 to LCCR4 are the PXA320 LCD controller registers:
[HKEY_LOCAL_MACHINE\Drivers\Display\PXA320\Config]
"DisplayType"="GENERIC"
"CxScreen"=dword:NNN
"CyScreen"=dword:NNN
"Bpp"=dword:10
"LCCR0"=dword:NNNNNNNN
"LCCR1"=dword:NNNNNNNN
"LCCR2"=dword:NNNNNNNN
"LCCR3"=dword:NNNNNNNN
"LCCR4"=dword:NNNNNNNN
Example for the 7" LCD supplied as default:
[HKEY_LOCAL_MACHINE\Drivers\Display\PXA320\Config]
"DisplayType"="GENERIC"
"CxScreen"=dword:320
"CyScreen"=dword:1E0
"Bpp"=dword:10
"LCCR0"=dword:03b008f8
"LCCR1"=dword:2727bf1f
"LCCR2"=dword:1c0c09df
"LCCR3"=dword:04700000
"LCCR4"=dword:04007e00
If the "DisplayType" is set to LCD then the additional parameters are ignored. The LCD parameters are then defined in the boot loader. If "DisplayType" is set to CRT and if an external monitor is detected via the CRT detect signal on the VGA connector, the display parameters are set to VGA 800x600 and the LCD is disabled. If an external monitor is not detected then the display parameters revert to the LCD parameters set in the boot loader. Note, not many external LCD monitors do actually drive the CRT detect signal. Most CRT monitors do, however.
Will