User`s guide

Supporting the i.MX53 Reference Board DISP0 LCD
i.MX53 System Development User’s Guide, Rev. 1
Freescale Semiconductor 18-11
config FB_MXC_CLAA057VA01CT_SYNC_PANEL
depends on FB_MXC_SYNC_PANEL
tristate "CLAA CLAA057VA01CT Panel"
18.4.2 Creating the LCD Panel File (initialization, reset, power settings,
backlight)
Because power settings are handled by the ATLAS APL PMIC and other voltage regulators, the display
driver must configure the APL PMIC during initialization to set up the power voltage configuration if this
has not already been done. Also, the reset waveform and initialization routine must be included. To do
these tasks, create an LCD file with panel-specific functions at the following location:
<ltib dir>/rpm/BUILD/linux/drivers/video/mxc/mxcfb_CLAA057VA01CT.c
WARNING
Before connecting an LCD panel to the i.MX53 board, check whether the
LCD is powered with the proper supply voltages and whether the display
data interface has the correct VIO value. Incorrect voltages and values may
harm the device.
The LCD file must include the definition of four basic functions described in Table 18-8 and can include
other functions and macros as needed.
Next, create a platform device that can be loaded and unloaded. This example declares the new platform
device using the devices.h and devices.c files located at:
<ltib dir>//rpm/BUILD/linux/arch/arm/mach-mx5/
1. Declare the plaform device on madglobal:devices.h using the following:
extern struct platform_device mxc_disp_devices[];
2. Add a new entry on madglobal:devices.c using the following:
struct platform_device mxc_disp_devices[] = {
{
.name = "lcd_CHUNGHWA_CLAA057VA01CT",
.id = 0,
Table 18-8. Required Functions
Function Name Function Declaration Description
lcd_probe static int __devinit lcd_probe(struct
platform_device *pdev)
Called when the LCD module is loaded. It should contain, pmic
configuration, reset, power on sequence and the initialization
routine.
lcd_remove static int __devexit lcd_remove(struct
platform_device *pdev)
Called when the LCD module is removed. It should contain power
off pmic configuration, power off sequence and the
de-initialization routine.
lcd_suspend static int lcd_suspend(struct
platform_device *pdev, pm_message_t
state)
Not always implemented, but used for enhance low power modes
on the device. Usually called when system goes to suspend
mode.
lcd_resume static int lcd_resume(struct
platform_device *pdev)
Not always implemented, but used for enhance low power modes
on the device. Usually called when system returns from suspend
mode.