This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LCD resolution issue

Hi,

I am working a LCD driver on OMAP4460. The kernel is 3.4.0-1489.

I add a new LCD of resolution 240x320 in the file panel-generic-dpi.c. When I check the framebuffer attributes by ioctl() at /dev/fb0, it reports x_res=1280 and y_res=768.

When I set it to 320x320, the correct settings through fb can be reported, i.e. x_res=320 y_res=320. The LCD shows left portion of the screen under this setting. Also, the touch panel seems using 320x320 resolution. If I run xrandr, I can see that Screen 0 has a minimum resolution of 320x200. Does it mean that I cannot set it to 240x320, or I need to modify the kernel to remove this restriction?

Thanks,

Raymond