Skip to content

Commit bac4b7c

Browse files
Carsten Emdeairlied
authored andcommitted
drm: Load EDID: Explain better how to write your own EDID firmware
A description was lacking how to write an EDID firmware file that corresponds to a given X11 setting. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent b5cc6c0 commit bac4b7c

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

‎Documentation/EDID/HOWTO.txt‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,30 @@ Makefile environment are given here.
2828
To create binary EDID and C source code files from the existing data
2929
material, simply type "make".
3030

31-
If you want to create your own EDID file, copy the file 1024x768.S and
32-
replace the settings with your own data. The CRC value in the last line
31+
If you want to create your own EDID file, copy the file 1024x768.S,
32+
replace the settings with your own data and add a new target to the
33+
Makefile. Please note that the EDID data structure expects the timing
34+
values in a different way as compared to the standard X11 format.
35+
36+
X11:
37+
HTimings: hdisp hsyncstart hsyncend htotal
38+
VTimings: vdisp vsyncstart vsyncend vtotal
39+
40+
EDID:
41+
#define XPIX hdisp
42+
#define XBLANK htotal-hdisp
43+
#define XOFFSET hsyncstart-hdisp
44+
#define XPULSE hsyncend-hsyncstart
45+
46+
#define YPIX vdisp
47+
#define YBLANK vtotal-vdisp
48+
#define YOFFSET (63+(vsyncstart-vdisp))
49+
#define YPULSE (63+(vsyncend-vsyncstart))
50+
51+
The CRC value in the last line
3352
#define CRC 0x55
34-
is a bit tricky. After a first version of the binary data set is
35-
created, it must be be checked with the "edid-decode" utility which will
53+
also is a bit tricky. After a first version of the binary data set is
54+
created, it must be checked with the "edid-decode" utility which will
3655
most probably complain about a wrong CRC. Fortunately, the utility also
3756
displays the correct CRC which must then be inserted into the source
3857
file. After the make procedure is repeated, the EDID data set is ready

0 commit comments

Comments
 (0)