From d6492bf94d9a6b0384129b0a5d16eba574c31366 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 8 Mar 2024 14:45:26 +0900 Subject: [PATCH] drm/edid/firmware: Add built-in edid/1280x720.bin firmware Add built-in edid/1280x720.bin firmware to drm_edid_loader. The mode is generated from tools/edid/ with below edid data: /* 1280x720: Modeline "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync */ #define HSYNC_POL 1 #define VSYNC_POL 1 #define YPULSE (63+5) #define XPULSE 128 #define YPIX 720 #define XPIX 1280 #define VFREQ 60 #define DPI 96 #define CLOCK 74500 #define VERSION 1 #define REVISION 3 #define XOFFSET 64 #define YOFFSET (63+3) #define XY_RATIO XY_RATIO_16_9 #define YBLANK 28 #define XBLANK 384 #define TIMING_NAME "1280x720" #include "edid.S" Change-Id: Idfc610102a35494ee54aca06af411cfd9d737b0f Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/drm_edid_load.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_edid_load.c b/drivers/gpu/drm/drm_edid_load.c index 5d9ef26..654c01b 100644 --- a/drivers/gpu/drm/drm_edid_load.c +++ b/drivers/gpu/drm/drm_edid_load.c @@ -39,10 +39,11 @@ int __drm_get_edid_firmware_path(char *buf, size_t bufsize) } EXPORT_SYMBOL(__drm_get_edid_firmware_path); -#define GENERIC_EDIDS 6 +#define GENERIC_EDIDS 7 static const char * const generic_edid_name[GENERIC_EDIDS] = { "edid/800x600.bin", "edid/1024x768.bin", + "edid/1280x720.bin", "edid/1280x1024.bin", "edid/1600x1200.bin", "edid/1680x1050.bin", @@ -89,6 +90,24 @@ static const u8 generic_edid[GENERIC_EDIDS][128] = { { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x05, 0x16, 0x01, 0x03, 0x6d, 0x21, 0x12, 0x78, + 0xea, 0x5e, 0xc0, 0xa4, 0x59, 0x4a, 0x98, 0x25, + 0x20, 0x50, 0x54, 0x00, 0x00, 0x00, 0x81, 0xc0, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, + 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1a, 0x1d, + 0x00, 0x80, 0x51, 0xd0, 0x1c, 0x20, 0x40, 0x80, + 0x24, 0x00, 0x4d, 0xbb, 0x10, 0x00, 0x00, 0x1e, + 0x00, 0x00, 0x00, 0xff, 0x00, 0x4c, 0x69, 0x6e, + 0x75, 0x78, 0x20, 0x23, 0x30, 0x0a, 0x20, 0x20, + 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x3b, + 0x3d, 0x2b, 0x2d, 0x08, 0x00, 0x0a, 0x20, 0x20, + 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, + 0x00, 0x31, 0x32, 0x38, 0x30, 0x78, 0x37, 0x32, + 0x30, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x00, 0x6c, + }, + { + 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, + 0x31, 0xd8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x16, 0x01, 0x03, 0x6d, 0x2c, 0x23, 0x78, 0xea, 0x5e, 0xc0, 0xa4, 0x59, 0x4a, 0x98, 0x25, 0x20, 0x50, 0x54, 0x00, 0x00, 0x00, 0x81, 0x80, -- 2.7.4