rk3128,HDMI输出1024x768分辨率问题
目前我烧录了官方的ubuntu后,内核重编译,对lcd_B101ew05.dtsi文件修改如下:disp_timings: display-timings {
native-mode = <&timing0>;
timing0: timing0 {
screen-type = <SCREEN_LVDS>;
lvds-format = <LVDS_8BIT_2>;
out-face = <OUT_D888_P666>;
color-mode = <COLOR_RGB>;
clock-frequency = <65000000>;
hactive = <1024>;
vactive = <768>;
hback-porch = <160>;
hfront-porch = <24>;
vback-porch = <8>;
vfront-porch = <6>;
hsync-len = <29>;
vsync-len = <3>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
swap-rb = <0>;
swap-rg = <0>;
swap-gb = <0>;
};
};
同时,rockchip-hdmi.c文件的hdmi_mode[]增加了
{ { "1024x768p@60Hz", 60, 1024, 768, 65000000, 160, 24, 29, 3, 136,6, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 0, 0 }, 4, HDMI_1024X768P_60HZ, 1, OUT_P888},
烧录内核后,进入ubuntu桌面,显示还是不对,图像有挤压现象,系统的显示设置中还是只有1280x800,请问下如何解决啊?! + { { "1024x768p@60Hz", 60, 1024, 768, 65000000, 160, 24, 29, 3, 136, 6, FB_SYNC_HOR_HIG
H_ACT | FB_SYNC_VERT_HIGH_ACT, 0, 0 }, 108, HDMI_1024x768P_60HZ, 1, OUT_P888},
+++ b/kernel/drivers/video/rockchip/hdmi/rockchip-hdmi.h
@@ -129,6 +129,7 @@ enum hdmi_video_infomation_code {
HDMI_3840X2160P_30HZ_4_3, /*105*/
HDMI_3840X2160P_50HZ_4_3,
HDMI_3840X2160P_60HZ_4_3,
+ HDMI_1024x768P_60HZ,
};
/* HDMI Extended Resolution */
@@ -476,7 +477,7 @@ struct hdmi {
/* HDMI default vide mode */
#define HDMI_VIDEO_DEFAULT_MODE HDMI_1280X720P_60HZ
penguin 发表于 2018-7-24 09:26
+ { { "1024x768p@60Hz", 60, 1024, 768, 65000000, 160, 24, 29,...
你提到的:什么意思???
/* HDMI Extended Resolution */
@@ -476,7 +477,7 @@ struct hdmi {
/* HDMI default vide mode */
#define HDMI_VIDEO_DEFAULT_MODE HDMI_1280X720P_60HZ
struct hdmi要做变动?HDMI_VIDEO_DEFAULT_MODE不是HDMI_1024X768P_60HZ? #define HDMI_DEFAULT_SCALE 95
#define HDMI_AUTO_CONFIG false
/* HDMI default vide mode */
#define HDMI_VIDEO_DEFAULT_MODE HDMI_1024X768P_60HZ //HDMI_1280X720P_60HZ
/* HDMI video information code according CEA-861-F */
enum hdmi_video_infomation_code {
HDMI_640X480P_60HZ = 1,
HDMI_720X480P_60HZ_4_3,
HDMI_720X480P_60HZ_16_9,
HDMI_1024X768P_60HZ,
HDMI_1280X720P_60HZ, /*5*/
。。。。。。
上面是我原来改的,我是把HDMI_1024X768P_60HZ插入到4号位置,是需要加到最后吗?
另外能告知下HDMI_DEFAULT_SCALE 95 的含义吗?
页:
[1]