User`s guide

Supporting the i.MX53 Reference Board DISP0 LCD
i.MX53 System Development User’s Guide, Rev. 1
18-12 Freescale Semiconductor
},
};
Be careful to use the same name for the new platform device entry as the name included in
madglobal:mxcfb_CLAA057VA01CT.c for the driver.
static struct platform_driver lcd_driver = {
.driver = {
.name = "lcd_CHUNGHWA_CLAA057VA01CT"},
.probe = lcd_probe,
.remove = __devexit_p(lcd_remove),
.suspend = lcd_suspend,
.resume = lcd_resume,
};
3. Register the device at <ltib
dir>//rpm/BUILD/linux/arch/arm/mach-mx5/madglobal:mxc53_<reference board name>.c
by
using the following code:
static int __init mxc_init_fb(void)
{
....
mxc_register_device(&mxc_disp_devices[0], NULL);
....
return 0;
}
18.4.3 Adding the Compilation Flag for the New Display
After the LCD file has been created and the entry has been added to the Kconfig file, modify the makefile
to include the LCD file in the compilation by using the code shown below. The makefile is in the same
folder as the new LCD file: <ltib dir>/rpm/BUILD/linux/drivers/video/mxc/makefile
ifeq ($(CONFIG_ARCH_MX21)$(CONFIG_ARCH_MX27)$(CONFIG_ARCH_MX25),y)
obj-$(CONFIG_FB_MXC_TVOUT) += fs453.o
obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mx2fb.o mxcfb_modedb.o
obj-$(CONFIG_FB_MXC_EPSON_PANEL) += mx2fb_epson.o
else
ifeq ($(CONFIG_MXC_IPU_V1),y)
obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxcfb.o mxcfb_modedb.o
else
obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxc_ipuv3_fb.o
endif
obj-$(CONFIG_FB_MXC_EPSON_PANEL) += mxcfb_epson.o
obj-$(CONFIG_FB_MXC_EPSON_QVGA_PANEL) += mxcfb_epson_qvga.o
obj-$(CONFIG_FB_MXC_TOSHIBA_QVGA_PANEL) += mxcfb_toshiba_qvga.o
obj-$(CONFIG_FB_MXC_SHARP_128_PANEL) += mxcfb_sharp_128x128.o
endif
obj-$(CONFIG_FB_MXC_EPSON_VGA_SYNC_PANEL) += mxcfb_epson_vga.o
obj-$(CONFIG_FB_MXC_CLAA_WVGA_SYNC_PANEL) += mxcfb_claa_wvga.o
obj-$(CONFIG_FB_MXC_CLAA057VA01CT_SYNC_PANEL) += mxcfb_CLAA057VA01CT.o
obj-$(CONFIG_FB_MXC_TVOUT_CH7024) += ch7024.o
obj-$(CONFIG_FB_MXC_TVOUT_TVE) += tve.o
obj-$(CONFIG_FB_MXC_LDB) += ldb.o
obj-$(CONFIG_FB_MXC_CH7026) += mxcfb_ch7026.o
#obj-$(CONFIG_FB_MODE_HELPERS) += mxc_edid.o