UPSTREAM: lib/edid: Save the display ASCII string
BUG=none
BRANCH=none
TEST=none
Change-Id: I4e4a327e8dab04edc19c65ec2321cde10476d562
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: dbe81612ad
Original-Change-Id: Ic31af53dcb9947e2264c809ee8f80ea4f89f347d
Original-Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-on: https://review.coreboot.org/19499
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/496054
This commit is contained in:
parent
1b38dbc1b3
commit
7801d8ed9d
2 changed files with 7 additions and 2 deletions
|
|
@ -53,6 +53,8 @@ struct edid_mode {
|
|||
* unsigned int. We can move more into into this struct as needed.
|
||||
*/
|
||||
|
||||
#define EDID_ASCII_STRING_LENGTH 13
|
||||
|
||||
struct edid {
|
||||
/* These next three things used to all be called bpp.
|
||||
* Merriment ensued. The identifier
|
||||
|
|
@ -89,6 +91,7 @@ struct edid {
|
|||
u32 bytes_per_line;
|
||||
|
||||
int hdmi_monitor_detected;
|
||||
char ascii_string[EDID_ASCII_STRING_LENGTH + 1];
|
||||
};
|
||||
|
||||
enum edid_status {
|
||||
|
|
|
|||
|
|
@ -470,9 +470,11 @@ detailed_block(struct edid *result_edid, unsigned char *x, int in_extension,
|
|||
* slots, seems to be specified by SPWG:
|
||||
* http://www.spwg.org/
|
||||
*/
|
||||
strcpy(result_edid->ascii_string, extract_string(x + 5,
|
||||
&c->has_valid_string_termination,
|
||||
EDID_ASCII_STRING_LENGTH));
|
||||
printk(BIOS_SPEW, "ASCII string: %s\n",
|
||||
extract_string(x + 5,
|
||||
&c->has_valid_string_termination, 13));
|
||||
result_edid->ascii_string);
|
||||
return 1;
|
||||
case 0xFF:
|
||||
printk(BIOS_SPEW, "Serial number: %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue