mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
d2f112a568
The problem was found when EDID data sets for displays other than the provided samples were generated. The patch has no effect on the provided samples that still match the data used in drivers/gpu/drm/drm_edid_load.c. The provided samples use small values for XOFFSET, XPULSE, YOFFSET and YPULSE, where the error doesn't occur. This fix corrects the use of that values in case of high values, because the most significant bits were treated incorrectly. So in edid.S msbs4 should use bit 8 and 9 of XOFFSET and XPULS. For YOFFSET and YPULSE msbs4 should use bit 4 and 5. lsbs2 was introduced for a better overview, without functional change. Removing also the useless value 63 of all files, because it is added in the *.S description files and then it is subtracted in edid.S. Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.de> Reviewed-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
45 lines
1.3 KiB
ArmAsm
45 lines
1.3 KiB
ArmAsm
/*
|
|
1600x1200.S: EDID data set for standard 1600x1200 60 Hz monitor
|
|
|
|
Copyright (C) 2013 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 162000 /* kHz */
|
|
#define XPIX 1600
|
|
#define YPIX 1200
|
|
#define XY_RATIO XY_RATIO_4_3
|
|
#define XBLANK 560
|
|
#define YBLANK 50
|
|
#define XOFFSET 64
|
|
#define XPULSE 192
|
|
#define YOFFSET 1
|
|
#define YPULSE 3
|
|
#define DPI 72
|
|
#define VFREQ 60 /* Hz */
|
|
#define TIMING_NAME "Linux UXGA"
|
|
/* No ESTABLISHED_TIMINGx_BITS */
|
|
#define HSYNC_POL 1
|
|
#define VSYNC_POL 1
|
|
#define CRC 0x9d
|
|
|
|
#include "edid.S"
|