2012年10月9日 星期二

修改 TI DM8168 frame buffer 解析度

以下都是改成 1024 x 768 當範例

HDMI

1. 修改 driver 的設定
echo 0 > /sys/devices/platform/vpss/display0/enabled
echo 1024x768@60 > /sys/devices/platform/vpss/display0/mode
echo "65000,1024/24/160/63,768/3/29/6,1" > /sys/devices/platform/vpss/display0/timings
上面兩個可以參考 "drivers/video/ti81xx/vpss/sysfs.h"
echo "1024,768" > /sys/class/graphics/fb0/virtual_size
echo 1 > /sys/devices/platform/vpss/display0/enabled

2. 修改 user space 的設定
fbset.real -fb /dev/fb0 -xres 1024 -yres 768 -vxres 1024 -vyres 768 -depth 16



VGA:比較特別, display3 也是 vga 

1. 修改 driver 的設定

echo 0 > /sys/devices/platform/vpss/display1/enabled
echo 0 > /sys/devices/platform/vpss/display3/enabled
echo 1024,768 > /sys/class/graphics/fb1/virtual_size
echo 3145728 > /sys/class/graphics/fb1/size                             ## 不改好像也沒差
echo 1024x768@60 > /sys/devices/platform/vpss/display1/mode
echo triplediscrete,rgb888,0/0/1/1 > /sys/devices/platform/vpss/display1/output
echo 65000,1024/24/160/136,768/3/29/6,1 > /sys/devices/platform/vpss/display1/timings
echo 1024x768@60 > /sys/devices/platform/vpss/display3/mode
echo component,rgb88 > /sys/devices/platform/vpss/display3/output
echo 65000,1024/24/160/136,768/3/29/6,1 > /sys/devices/platform/vpss/display3/timings
echo 1 > /sys/devices/platform/vpss/display3/enabled
echo 1 > /sys/devices/platform/vpss/display1/enabled


2. 修改 user space 的設定
fbset.real -fb /dev/fb1 -xres 1024 -yres 768 -vxres 1024 -vyres 768 -depth 16



reference:
http://processors.wiki.ti.com/index.php/DM816X_AM389X_VPSS_Video_Driver_User_Guide#Using_Sysfs

沒有留言:

張貼留言