Dear all,
I am trying to up my devkit 4.3 inch LCD panel. I modify
following files in kernel.
--- a/arch/arm/mach-omap2/board-devkit8000.c
+++ b/arch/arm/mach-omap2/board-devkit8000.c
@@ -172,8 +172,9 @@ static struct regulator_consumer_supply
devkit8000_vsim_supply = {
static struct omap_dss_device devkit8000_lcd_device = {
.name = "lcd",
.driver_name = "generic_panel",
.type = OMAP_DISPLAY_TYPE_DPI,
+ .panel.config = OMAP_DSS_LCD_TFT|OMAP_DSS_LCD_IVS|
OMAP_DSS_LCD_IHS,
.phy.dpi.data_lines = 24,
.platform_enable = devkit8000_panel_enable_lcd,
.platform_disable = devkit8000_panel_disable_lcd,
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -273,6 +273,18 @@ static const struct fb_videomode modedb[] = {
/* 800x520i @ 50 Hz, 15.625 kHz hsync (PAL RGB) */
NULL, 50, 800, 520, 58823, 144, 64, 72, 28, 80, 5,
0, FB_VMODE_INTERLACED
+ }, {
+ /* 480x272 @ 60 Hz, Devkit8000 4.3 inch LCD */
+ NULL, 60, 480, 272, 111000, 2, 2, 2, 2, 41, 10,
+ 0, FB_VMODE_NONINTERLACED
+ }, {
+ /* 640x480 @ 60 Hz, Devkit8000 5.6 inch LCD */
+ NULL, 60, 640, 480, 39682, 16, 143, 32, 12, 1, 1,
+ 0, FB_VMODE_NONINTERLACED
+ }, {
+ /* 800x480 @ 60 Hz, Devkit8000 7 inch LCD */
+ NULL, 60, 800, 480, 24855, 210, 45, 132, 22, 1, 1,
+ 0, FB_VMODE_NONINTERLACED
},
};
--- a/drivers/video/omap2/displays/panel-generic.c
+++ b/drivers/video/omap2/displays/panel-generic.c
@@ -66,7 +66,8 @@ static void generic_panel_power_off(struct
omap_dss_device *dssdev)
static int generic_panel_probe(struct omap_dss_device *dssdev)
{
- dssdev->panel.config = OMAP_DSS_LCD_TFT;
+ if (dssdev->panel.config == 0)
+ dssdev->panel.config = OMAP_DSS_LCD_TFT;
dssdev->panel.timings = generic_panel_timings;
return 0;
I use these following bootargs ( I am no sure which one is perfect)
setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
omapdss.def_disp=lcd'
setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
video=omapfb:mode:4.3inch_LCD'
setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
omapdss.def_disp=lcd omapfb.mode=lcd:480x272'
still no luck. I am getting these following error
omapfb omapfb: failed to allocate framebuffer
[ 2.756195] omapfb omapfb: failed to allocate fbmem
[ 2.761383] omapfb omapfb: failed to setup omapfb
[ 2.766326] omapfb: probe of omapfb failed with error -12
Thanks & regards
Arindam Ghosh