Skip to content

Commit 886dc3f

Browse files
committed
Add script to generate EDID, and use it in all firmware that contains EDID.
1 parent 7a1307a commit 886dc3f

File tree

14 files changed

+165
-123
lines changed

14 files changed

+165
-123
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
# Copyright 2019, Collabora Ltd.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
17+
set -e
18+
ROOT="$(cd $(dirname $0) && pwd)"
19+
for variant in HDK_20 HDK_20_SVR HDK_OLED HDK_Sharp_LCD; do
20+
(
21+
cd "$(dirname $0)/src/Variants/$variant"
22+
"$ROOT/vendor/cros-chameleon/jsonparser" edid.json edid.bin
23+
(
24+
echo "/* THIS IS A GENERATED FILE - DO NOT EDIT */"
25+
echo "/* Edit the edid.json file and run generate-edid.sh instead. */"
26+
echo -n "static const "
27+
xxd -i edid.bin
28+
) | sed 's/unsigned int edid_bin_len =/#define EDID_LEN/' > edid.h
29+
)
30+
done

Source code/Embedded/src/DeviceDrivers/HDK2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void OSVR_HDK_EDID(void)
288288
else
289289
{
290290
/// if bad SN read, just use the default.
291-
currentByte = EDID_LUT[idx];
291+
currentByte = edid_bin[idx];
292292
}
293293
break;
294294

@@ -302,7 +302,7 @@ void OSVR_HDK_EDID(void)
302302
break;
303303

304304
default:
305-
currentByte = EDID_LUT[idx];
305+
currentByte = edid_bin[idx];
306306
break;
307307
}
308308
cs += currentByte;

Source code/Embedded/src/NXP/AVRHDMI.c

Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -193,44 +193,6 @@ tmdlHdmiRxColorMatrixCoefs_t TMEX_APPLI_CONVERSIONMATRIX_YCbCr709_RGBLimited = {
193193
256, 256, 256
194194
};
195195

196-
/* EDID */
197-
/* 1080p60&50 xvYCC */
198-
/*const UInt8 Oldedid1080p6050xvYCC[256] =
199-
{ // Block 0
200-
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x3B, 0x10, 0x0A, 0x4E, 0x01, 0x00, 0x00, 0x00,
201-
0x26, 0x11, 0x01, 0x03, 0x80, 0x00, 0x00, 0x00, 0x1A, 0xEE, 0x91, 0xA3, 0x54, 0x4C, 0x99, 0x26,
202-
0x0F, 0x50, 0x54, 0x20, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
203-
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1D, 0x00, 0x72, 0x51, 0xD0, 0x1E, 0x20, 0x6E, 0x28,
204-
0x55, 0x00, 0xC4, 0x8E, 0x21, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0xFC, 0x00, 0x44, 0x45, 0x4D,
205-
0x4F, 0x20, 0x54, 0x44, 0x41, 0x31, 0x39, 0x39, 0x37, 0x38, 0x00, 0x00, 0x00, 0xFD, 0x00, 0x32,
206-
0x3C, 0x0F, 0x44, 0x0F, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFE,
207-
0x00, 0x31, 0x30, 0x38, 0x30, 0x70, 0x36, 0x30, 0x26, 0x35, 0x30, 0x78, 0x76, 0x43, 0x01, 0xA1,
208-
209-
// source physical address (2 bytes)
210-
// These bytes are replaced by sPAEdid[0] for input A, sPAEdid[1] for input B,
211-
// sPAEdid[2] for input C, sPAEdid[3] for input D
212-
// The position depends on the sPAOffsetEdid value
213-
// Block 1 ^ ^
214-
//
215-
0x02, 0x03, 0x2F, 0xF0, 0x6C, 0x03, 0x0C, 0x00, 0x10, 0x00, 0xB8, 0x2D, 0x00, 0x00, 0x00, 0x00,
216-
0x00, 0x4B, 0x04, 0x13, 0x10, 0x1F, 0x03, 0x12, 0x05, 0x14, 0x07, 0x16, 0x01, 0x29, 0x0F, 0x17,
217-
0x07, 0x5F, 0x7F, 0x01, 0x67, 0x7F, 0x00, 0x83, 0x2F, 0x00, 0x00, 0xE3, 0x05, 0x03, 0x01, 0x01,
218-
0x1D, 0x00, 0xBC, 0x52, 0xD0, 0x1E, 0x20, 0xB8, 0x28, 0x55, 0x40, 0xC4, 0x8E, 0x21, 0x00, 0x00,
219-
0x1E, 0x02, 0x3A, 0x80, 0x18, 0x71, 0x38, 0x2D, 0x40, 0x58, 0x2C, 0x45, 0x00, 0xC4, 0x8E, 0x21,
220-
0x00, 0x00, 0x1E, 0x02, 0x3A, 0x80, 0xD0, 0x72, 0x38, 0x2D, 0x40, 0x10, 0x2C, 0x45, 0x80, 0xC4,
221-
0x8E, 0x21, 0x00, 0x00, 0x1E, 0x8C, 0x0A, 0xD0, 0x8A, 0x20, 0xE0, 0x2D, 0x10, 0x10, 0x3E, 0x96,
222-
0x00, 0xC4, 0x8E, 0x21, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81
223-
};*/
224-
225-
226-
#ifdef EDID_BYTES
227-
const UInt8 edid1080p6050xvYCC[256] =
228-
{
229-
EDID_BYTES
230-
};
231-
232-
#endif
233-
234196

235197
// DDC config 0
236198
#define Reg_EDID_VERSION 0x19
@@ -440,8 +402,11 @@ tmErrorCode_t tmdlHdmiRxExampleAppliInit(void)
440402
#ifdef TMFL_TDA19972_FAMILY
441403

442404
#ifdef OSVRHDK
405+
#if EDID_LEN != 256
406+
#error "EDID is not 2 blocks long, please fix it!"
407+
#endif
443408
/* The internal EDIDs are enabled, so we can now load EDID data into embedded EDID memory */
444-
NXP_Private_PRINTIF(tmdlHdmiRxLoadEdidData(gDlHdmiRxInstance0, (UInt8 *) edid1080p6050xvYCC, (UInt16 *) sPAEdid, Reg_EDID_SPA_SUB), __LINE__);
409+
NXP_Private_PRINTIF(tmdlHdmiRxLoadEdidData(gDlHdmiRxInstance0, (UInt8 *) edid_bin, (UInt16 *) sPAEdid, Reg_EDID_SPA_SUB), __LINE__);
445410
#endif
446411

447412
/* Load DDC and RT data into embedded memory */ //
@@ -453,7 +418,10 @@ tmErrorCode_t tmdlHdmiRxExampleAppliInit(void)
453418
NXP_Private_PRINTIF(tmdlHdmiRxManualHPD(gDlHdmiRxInstance0, TMDL_HDMIRX_HPD_HIGH), __LINE__);
454419
#endif
455420
#else
456-
NXP_Private_PRINTIF(tmdlHdmiRxLoadEdidData(gDlHdmiRxInstance0, (UInt8 *) edid1080p6050xvYCC, (UInt16 *) sPAEdid, sPAOffsetEdid), __LINE__);
421+
#if EDID_LEN != 256
422+
#error "EDID is not 2 blocks long, please fix it!"
423+
#endif
424+
NXP_Private_PRINTIF(tmdlHdmiRxLoadEdidData(gDlHdmiRxInstance0, (UInt8 *) edid_bin, (UInt16 *) sPAEdid, sPAOffsetEdid), __LINE__);
457425

458426
#endif
459427

Source code/Embedded/src/Variants/HDK_20/EDID_Data.h

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,6 @@ static uint8_t core_key_pass = 0;
3131
#define CORE_KEY_PASS_SUCCESS_VALUE 1
3232

3333
/// AUO1111
34-
const unsigned char EDID_LUT[256] = {
35-
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x06, 0xAF, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
36-
0x03, 0x80, 0x0D, 0x0F, 0x78, 0xEA, 0xA8, 0x7D, 0xAB, 0x54, 0x3C, 0xB6, 0x21, 0x10, 0x4C, 0x4F, 0x00, 0x00, 0x00,
37-
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xA4, 0x6A, 0x70,
38-
0x56, 0x81, 0xB0, 0x0C, 0x40, 0x5C, 0x05, 0x63, 0x00, 0x82, 0x96, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0xFF,
39-
0x00, 0x56, 0x30, 0x30, 0x31, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFC, 0x00,
40-
0x4F, 0x53, 0x56, 0x52, 0x20, 0x48, 0x44, 0x4B, 0x32, 0x0A, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFD, 0x00, 0x14,
41-
0x78, 0x01, 0xFF, 0x1D, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0xBC,
42-
43-
0x02, 0x03, 0x0C, 0x30, 0x41, 0x00, 0x65, 0x03, 0x0C, 0x00, 0x10, 0x00, 0xA4, 0x6A, 0x70, 0x56, 0x81, 0xB0, 0x0C,
44-
0x40, 0x5C, 0x05, 0x63, 0x00, 0x82, 0x96, 0x00, 0x00, 0x00, 0x18, 0xA4, 0x6A, 0x70, 0x56, 0x81, 0xB0, 0x0C, 0x40,
45-
0x5C, 0x05, 0x63, 0x00, 0x82, 0x96, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
46-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
47-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
48-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70,
50-
};
34+
#include "edid.h"
5135

5236
#endif // INCLUDED_EDID_Data_h_GUID_F2172D68_7DD2_46A7_D06B_38CF0AACB921
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* THIS IS A GENERATED FILE - DO NOT EDIT */
2+
/* Edit the edid.json file and run generate-edid.sh instead. */
3+
static const unsigned char edid_bin[] = {
4+
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x06, 0xaf, 0x11, 0x11,
5+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x80, 0x0d, 0x0f, 0x78,
6+
0xea, 0xa8, 0x7d, 0xab, 0x54, 0x3c, 0xb6, 0x21, 0x10, 0x4c, 0x4f, 0x00,
7+
0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
8+
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xa4, 0x6a, 0x70, 0x56, 0x81, 0xb0,
9+
0x0c, 0x40, 0x5c, 0x05, 0x63, 0x00, 0x82, 0x96, 0x00, 0x00, 0x00, 0x18,
10+
0x00, 0x00, 0x00, 0xff, 0x00, 0x56, 0x30, 0x30, 0x31, 0x0a, 0x20, 0x20,
11+
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x4f,
12+
0x53, 0x56, 0x52, 0x20, 0x48, 0x44, 0x4b, 0x32, 0x0a, 0x20, 0x20, 0x20,
13+
0x00, 0x00, 0x00, 0xfd, 0x00, 0x14, 0x78, 0x01, 0xff, 0x1d, 0x00, 0x0a,
14+
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0xbc, 0x02, 0x03, 0x0c, 0x30,
15+
0x41, 0x00, 0x65, 0x03, 0x0c, 0x00, 0x10, 0x00, 0xa4, 0x6a, 0x70, 0x56,
16+
0x81, 0xb0, 0x0c, 0x40, 0x5c, 0x05, 0x63, 0x00, 0x82, 0x96, 0x00, 0x00,
17+
0x00, 0x18, 0xa4, 0x6a, 0x70, 0x56, 0x81, 0xb0, 0x0c, 0x40, 0x5c, 0x05,
18+
0x63, 0x00, 0x82, 0x96, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00,
19+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25+
0x00, 0x00, 0x00, 0x70
26+
};
27+
#define EDID_LEN 256;

Source code/Embedded/src/Variants/HDK_20_SVR/EDID_Data.h

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,6 @@ static uint8_t core_key_pass = 0;
4040
#endif
4141

4242
/// SVR1019
43-
const unsigned char EDID_LUT[256] = {
44-
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x4e, 0xd2, 0x19, 0x10, 0x7a, 0x01, 0x01, 0x01, 0xff, 0x1a, 0x01,
45-
0x04, 0xa0, 0x49, 0x00, 0x78, 0x22, 0xa8, 0x7d, 0xab, 0x54, 0x3c, 0xb6, 0x21, 0x10, 0x4c, 0x4f, 0x00, 0x00, 0x00,
46-
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x8e, 0x73, 0x70,
47-
0x28, 0x82, 0xb0, 0x0c, 0x40, 0xa4, 0x20, 0x63, 0x40, 0x04, 0x96, 0x10, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0xff,
48-
0x00, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x63, 0x73, 0x20, 0x48, 0x44, 0x4b, 0x32, 0x0a, 0x00, 0x00, 0x00, 0xfc, 0x00,
49-
0x4f, 0x53, 0x56, 0x52, 0x20, 0x48, 0x44, 0x4b, 0x32, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x58,
50-
0x5c, 0x0f, 0xb4, 0x1e, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x2d, 0x02, 0x03, 0x28, 0x00, 0x65,
51-
0x03, 0x0c, 0x00, 0x10, 0x00, 0xe2, 0x13, 0x81, 0xe4, 0x32, 0x00, 0x01, 0x02, 0x75, 0xca, 0x12, 0x5c, 0x02, 0x07,
52-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x73, 0x70,
53-
0x28, 0x82, 0xb0, 0x0c, 0x40, 0xa4, 0x20, 0x63, 0x40, 0x04, 0x96, 0x10, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00,
54-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
55-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
56-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
57-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xca};
43+
#include "edid.h"
5844

5945
#endif // INCLUDED_EDID_Data_h_GUID_F2172D68_7DD2_46A7_D06B_38CF0AACB921
256 Bytes
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* THIS IS A GENERATED FILE - DO NOT EDIT */
2+
/* Edit the edid.json file and run generate-edid.sh instead. */
3+
static const unsigned char edid_bin[] = {
4+
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x4e, 0xd2, 0x19, 0x10,
5+
0x7a, 0x01, 0x01, 0x01, 0xff, 0x1a, 0x01, 0x04, 0xa0, 0x49, 0x00, 0x78,
6+
0x22, 0xa8, 0x7d, 0xab, 0x54, 0x3c, 0xb6, 0x21, 0x10, 0x4c, 0x4f, 0x00,
7+
0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
8+
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x8e, 0x73, 0x70, 0x28, 0x82, 0xb0,
9+
0x0c, 0x40, 0xa4, 0x20, 0x63, 0x40, 0x04, 0x96, 0x10, 0x00, 0x00, 0x18,
10+
0x00, 0x00, 0x00, 0xff, 0x00, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x63, 0x73,
11+
0x20, 0x48, 0x44, 0x4b, 0x32, 0x0a, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x4f,
12+
0x53, 0x56, 0x52, 0x20, 0x48, 0x44, 0x4b, 0x32, 0x0a, 0x20, 0x20, 0x20,
13+
0x00, 0x00, 0x00, 0xfd, 0x00, 0x58, 0x5c, 0x0f, 0xb4, 0x1e, 0x00, 0x0a,
14+
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x2d, 0x02, 0x03, 0x12, 0x00,
15+
0x65, 0x03, 0x0c, 0x00, 0x10, 0x00, 0xe2, 0x13, 0x81, 0xe4, 0x32, 0x00,
16+
0x01, 0x02, 0x8e, 0x73, 0x70, 0x28, 0x82, 0xb0, 0x0c, 0x40, 0xa4, 0x20,
17+
0x63, 0x40, 0x04, 0x96, 0x10, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00,
18+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25+
0x00, 0x00, 0x00, 0x96
26+
};
27+
#define EDID_LEN 256;

Source code/Embedded/src/Variants/HDK_OLED/EDID_Data.h

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,44 +24,24 @@
2424
// info for #?f
2525
const char svrEdidInfoString[] =
2626
#ifdef WirelessOnly // generates SVR 1021 which does NOT have 1080x1920 mode
27-
"SVR1021, excludes portrait mode, "
27+
"SVR1021, excludes portrait mode, EDID spec v1.3, "
2828
#else
29-
"SVR1019, "
29+
"SVR1019, EDID spec v1.4, "
3030
#endif
31-
"EDID spec v1.3, for AUO 5.46\" OLED panel (HDK 1.2/1.3/1.4)";
31+
"for AUO 5.46\" OLED panel (HDK 1.2/1.3/1.4)";
3232

3333
#ifdef WirelessOnly
34-
#define EDID_BYTES \
35-
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x4E, 0xD2, 0x21, 0x10, 0x01, 0x01, 0x01, 0x01, 0x0C, 0x1A, 0x01, \
36-
0x03, 0x80, 0x29, 0x1A, 0x78, 0x0A, 0x92, 0x03, 0xA2, 0x56, 0x48, 0x99, 0x25, 0x14, 0x4A, 0x4D, 0xA1, 0x08, \
37-
0x00, 0x95, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, \
38-
0x3A, 0x80, 0x18, 0x71, 0x38, 0x2D, 0x40, 0x58, 0x2C, 0x45, 0x00, 0x70, 0xEA, 0x31, 0x00, 0x00, 0x1E, 0x66, \
39-
0x21, 0x50, 0xB0, 0x51, 0x00, 0x1B, 0x30, 0x40, 0x70, 0x36, 0x00, 0xBA, 0x88, 0x21, 0x00, 0x00, 0x1E, 0x00, \
40-
0x00, 0x00, 0xFC, 0x00, 0x53, 0x54, 0x44, 0x20, 0x48, 0x44, 0x4D, 0x49, 0x20, 0x54, 0x56, 0x0A, 0x20, 0x00, \
41-
0x00, 0x00, 0xFD, 0x00, 0x3B, 0x3D, 0x0F, 0x44, 0x0F, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, \
42-
0x16,
34+
static const unsigned char edid_bin[] = {
35+
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x4E, 0xD2, 0x21, 0x10, 0x01, 0x01, 0x01, 0x01, 0x0C, 0x1A, 0x01,
36+
0x03, 0x80, 0x29, 0x1A, 0x78, 0x0A, 0x92, 0x03, 0xA2, 0x56, 0x48, 0x99, 0x25, 0x14, 0x4A, 0x4D, 0xA1, 0x08, 0x00,
37+
0x95, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3A, 0x80,
38+
0x18, 0x71, 0x38, 0x2D, 0x40, 0x58, 0x2C, 0x45, 0x00, 0x70, 0xEA, 0x31, 0x00, 0x00, 0x1E, 0x66, 0x21, 0x50, 0xB0,
39+
0x51, 0x00, 0x1B, 0x30, 0x40, 0x70, 0x36, 0x00, 0xBA, 0x88, 0x21, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0xFC, 0x00,
40+
0x53, 0x54, 0x44, 0x20, 0x48, 0x44, 0x4D, 0x49, 0x20, 0x54, 0x56, 0x0A, 0x20, 0x00, 0x00, 0x00, 0xFD, 0x00, 0x3B,
41+
0x3D, 0x0F, 0x44, 0x0F, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x16,
42+
};
4343
#else
44-
#define EDID_BYTES \
45-
0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x4E, 0xD2, 0x19, 0x10, 0x1A, 0x46, 0xDA, 0x01, 0x0C, 0x19, 0x01, \
46-
0x03, 0x80, 0x0C, 0x07, 0x78, 0xEE, 0xD8, 0x7D, 0xAC, 0x53, 0x3C, 0xB6, 0x21, 0x10, 0x4C, 0x4F, 0x00, 0x00, \
47-
0x00, 0xD1, 0xC0, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x65, \
48-
0x33, 0x38, 0x30, 0x40, 0x80, 0x17, 0x70, 0x20, 0x05, 0xC5, 0x00, 0x46, 0x78, 0x00, 0x00, 0x00, 0x1C, 0x00, \
49-
0x00, 0x00, 0xFF, 0x00, 0x53, 0x45, 0x4E, 0x53, 0x49, 0x43, 0x53, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, \
50-
0x00, 0x00, 0xFC, 0x00, 0x4f, 0x53, 0x56, 0x52, 0x20, 0x48, 0x44, 0x4B, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x00, \
51-
0x00, 0x00, 0xFD, 0x00, 0x3B, 0x3C, 0x64, 0x78, 0x11, 0x00, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, \
52-
0xF3,
44+
#include "edid.h"
5345
#endif
5446

55-
// "optional timing extension, not used" ???
56-
57-
#define EDID_BYTES2 \
58-
0x02, 0x03, 0x0E, 0x00, 0x41, 0x90, 0x23, 0x09, 0x07, 0x07, 0x83, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
59-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
60-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
61-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
62-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
63-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
64-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
65-
0x3E
66-
6747
#endif // INCLUDED_EDID_Data_h_GUID_F2172D68_7DD2_46A7_D06B_38CF0AACB921
256 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)