mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 20:56:44 +07:00
4cbe1bfa27
The 800x600 (SVGA) screen resolution was lacking in the set of built-in selectable EDID screen resolutions that can be used to repair misbehaving monitor firmware. This patch adds the related data set and expands the documentation. Note that the SVGA bit occupies a different byte to all the existing users of the established timing bits forcing a rework of the ESTABLISHED_TIMINGS_BITS macro. Tested new EDID on an aged (and misbehaving) industrial LCD panel; existing EDIDs still pass edid-decode's checksum checks. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: David Airlie <airlied@linux.ie> Cc: Carsten Emde <C.Emde@osadl.org> Cc: linux-doc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
45 lines
1.3 KiB
ArmAsm
45 lines
1.3 KiB
ArmAsm
/*
|
|
1024x768.S: EDID data set for standard 1024x768 60 Hz monitor
|
|
|
|
Copyright (C) 2011 Carsten Emde <C.Emde@osadl.org>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
/* EDID */
|
|
#define VERSION 1
|
|
#define REVISION 3
|
|
|
|
/* Display */
|
|
#define CLOCK 65000 /* kHz */
|
|
#define XPIX 1024
|
|
#define YPIX 768
|
|
#define XY_RATIO XY_RATIO_4_3
|
|
#define XBLANK 320
|
|
#define YBLANK 38
|
|
#define XOFFSET 8
|
|
#define XPULSE 144
|
|
#define YOFFSET (63+3)
|
|
#define YPULSE (63+6)
|
|
#define DPI 72
|
|
#define VFREQ 60 /* Hz */
|
|
#define TIMING_NAME "Linux XGA"
|
|
#define ESTABLISHED_TIMING2_BITS 0x08 /* Bit 3 -> 1024x768 @60 Hz */
|
|
#define HSYNC_POL 0
|
|
#define VSYNC_POL 0
|
|
#define CRC 0x55
|
|
|
|
#include "edid.S"
|