summaryrefslogtreecommitdiff
path: root/drivers/video/modedb.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2012-12-11 15:00:20 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:28:45 -0700
commit3277b9fc24ec69a724effed293dda2102b54a84e (patch)
treea3f31aef2db085fd2c0304adc9430b89c2ced179 /drivers/video/modedb.c
parent39f8d8a6925bf518da82b31e1c4dbf1705e6b431 (diff)
video: fbmon: Add hdmi_ext_modedb for 4Kx2K
Provide a new mode table to use to calculate Extended resolution (HDMI_VIC) Bug 1167856 Change-Id: I3e123a9859b1c385fd81fbf60887b682c1c3f6ae Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/170280 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/video/modedb.c')
-rw-r--r--drivers/video/modedb.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 7b5d2415aa8f..1f2990f721a4 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -809,6 +809,43 @@ const struct fb_videomode cea_modes[CEA_MODEDB_SIZE] = {
};
EXPORT_SYMBOL(cea_modes);
+const struct fb_videomode hdmi_ext_modes[HDMI_EXT_MODEDB_SIZE] = {
+ {},
+ /* HDMI_VIC 0x01: 3840x2160p @ 29.97/30Hz */
+ {.refresh = 30, .xres = 3840, .yres = 2160, .pixclock = 3367,
+ .left_margin = 296, .right_margin = 176,
+ .upper_margin = 72, .lower_margin = 8,
+ .hsync_len = 88, .vsync_len = 10,
+ .sync = 0,
+ .flag = FB_FLAG_RATIO_16_9,
+ .vmode = FB_VMODE_NONINTERLACED},
+ /* HDMI_VIC 0x02: 3840x2160p @ 25Hz */
+ {.refresh = 30, .xres = 3840, .yres = 2160, .pixclock = 3367,
+ .left_margin = 296, .right_margin = 1056,
+ .upper_margin = 72, .lower_margin = 8,
+ .hsync_len = 88, .vsync_len = 10,
+ .sync = 0,
+ .flag = FB_FLAG_RATIO_16_9,
+ .vmode = FB_VMODE_NONINTERLACED},
+ /* HDMI_VIC 0x03: 3840x2160p @ 23.98/24Hz */
+ {.refresh = 30, .xres = 3840, .yres = 2160, .pixclock = 3367,
+ .left_margin = 296, .right_margin = 1276,
+ .upper_margin = 72, .lower_margin = 8,
+ .hsync_len = 88, .vsync_len = 10,
+ .sync = 0,
+ .flag = FB_FLAG_RATIO_16_9,
+ .vmode = FB_VMODE_NONINTERLACED},
+ /* HDMI_VIC 0x04: 4096x2160p @ 24Hz */
+ {.refresh = 30, .xres = 4096, .yres = 2160, .pixclock = 3367,
+ .left_margin = 296, .right_margin = 1020,
+ .upper_margin = 72, .lower_margin = 8,
+ .hsync_len = 88, .vsync_len = 10,
+ .sync = 0,
+ .flag = FB_FLAG_RATIO_16_9,
+ .vmode = FB_VMODE_NONINTERLACED},
+};
+EXPORT_SYMBOL(hdmi_ext_modes);
+
const struct fb_videomode vesa_modes[VESA_MODEDB_SIZE] = {
/* 0 640x350-85 VESA */
{ NULL, 85, 640, 350, 31746, 96, 32, 60, 32, 64, 3,