TA的每日心情 | 衰 2018-11-30 11:03 |
---|
签到天数: 53 天 连续签到: 1 天 [LV.5]常住居民I
|
Videostrong 嵌入式板卡RK3399修改并默认HDMI分辨率
驱动部分
kernel/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
static enum drm_mode_status
dw_hdmi_rockchip_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{
struct drm_encoder *encoder = connector->encoder;
enum drm_mode_status status = MODE_OK;
struct drm_device *dev = connector->dev;
struct rockchip_drm_private *priv = dev->dev_private;
struct drm_crtc *crtc;
/*
* Pixel clocks we support are always < 2GHz and so fit in an
* int. We should make sure source rate does too so we don't get
* overflow when we multiply by 1000.
*/
+ if(!(!strcmp(mode->name, "4096x2160") || !strcmp(mode->name, "3840x2160") ||
+ ((!strcmp(mode->name, "1920x1080")) && mode->vrefresh == 60)||
+ ((!strcmp(mode->name, "1366x768")) && mode->vrefresh == 60)||
+ ((!strcmp(mode->name, "1280x720")) && mode->vrefresh == 60))){
+ printk(KERN_ERR"bad mode:%s, vrefresh:%d\n",mode->name, mode->vrefresh);
+ return MODE_BAD;
+ }
}
默认HDMI分辨率
out/target/product/rk3399_mid/system/build.prop
添加persist.sys.resolution.aux=4096x2160p60
|
|