aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@kernel.org>2017-03-29 09:45:23 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-03-30 04:15:19 -0400
commitbd283d2f66c28b30647c54537aff352a394c0bed (patch)
tree9d6bea0cb90b9470be39eb1409672d03b881591e
parenta2e1319d1f496888c2eaca57fbfc17180b0dae95 (diff)
drm: use .hword to represent 16-bit numbers
The size of .word is the size of a word in the given platform, which for intel systems is 16-bits but other architectures use different sizes. However, .hword emits 16-bit numbers regardless of the platform (and despite the name). The quantities specified in EDID are platform independent, so they should work in spite of the default target of the cc you are using, so use .hword where EDID specifies 16-bit numbers. Cc: Carsten Emde <C.Emde@osadl.org> Cc: David Airlie <airlied@linux.ie> Acked-by: David Airlie <airlied@linux.ie> Signed-off-by: Javi Merino <javi.merino@kernel.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1490795123-16851-1-git-send-email-javi.merino@kernel.org
-rw-r--r--Documentation/EDID/edid.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/EDID/edid.S b/Documentation/EDID/edid.S
index 7ac03276d7a2..ef082dcc6084 100644
--- a/Documentation/EDID/edid.S
+++ b/Documentation/EDID/edid.S
@@ -59,9 +59,9 @@
59/* Fixed header pattern */ 59/* Fixed header pattern */
60header: .byte 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00 60header: .byte 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0x00
61 61
62mfg_id: .word swap16(mfgname2id(MFG_LNX1, MFG_LNX2, MFG_LNX3)) 62mfg_id: .hword swap16(mfgname2id(MFG_LNX1, MFG_LNX2, MFG_LNX3))
63 63
64prod_code: .word 0 64prod_code: .hword 0
65 65
66/* Serial number. 32 bits, little endian. */ 66/* Serial number. 32 bits, little endian. */
67serial_number: .long SERIAL 67serial_number: .long SERIAL
@@ -177,7 +177,7 @@ std_vres: .byte (XY_RATIO<<6)+VFREQ-60
177 177
178descriptor1: 178descriptor1:
179/* Pixel clock in 10 kHz units. (0.-655.35 MHz, little-endian) */ 179/* Pixel clock in 10 kHz units. (0.-655.35 MHz, little-endian) */
180clock: .word CLOCK/10 180clock: .hword CLOCK/10
181 181
182/* Horizontal active pixels 8 lsbits (0-4095) */ 182/* Horizontal active pixels 8 lsbits (0-4095) */
183x_act_lsb: .byte XPIX&0xff 183x_act_lsb: .byte XPIX&0xff