We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756798b commit 26eed9fCopy full SHA for 26eed9f
drivers/video/rockchip/rk3399_hdmi.c
@@ -59,8 +59,20 @@ static int rk3399_hdmi_probe(struct udevice *dev)
59
return rk_hdmi_probe(dev);
60
}
61
62
+static bool rk3999_hdmi_mode_valid(struct udevice *dev, const struct display_timing *mode)
63
+{
64
+ if (mode->hactive.typ < 640 || mode->hactive.typ > CONFIG_VIDEO_ROCKCHIP_MAX_XRES)
65
+ return false;
66
+
67
+ if (mode->vactive.typ < 480 || mode->vactive.typ > CONFIG_VIDEO_ROCKCHIP_MAX_YRES)
68
69
70
+ return true;
71
+}
72
73
static const struct dm_display_ops rk3399_hdmi_ops = {
74
.read_edid = rk_hdmi_read_edid,
75
+ .mode_valid = rk3999_hdmi_mode_valid,
76
.enable = rk3399_hdmi_enable,
77
};
78
0 commit comments