OSDN Git Service

drm/edid: Allow querying/working with the panel ID from the EDID
authorDouglas Anderson <dianders@chromium.org>
Tue, 14 Sep 2021 20:21:50 +0000 (13:21 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 20 Sep 2021 16:17:25 +0000 (09:17 -0700)
commitd9f91a10c3e8b8b6f6762e35f2905a8914ca309d
treeadde8bbbe685fc80d5b4ddd7ed8526b715a88028
parentbac9c29482248b00cccfdfef1f34175714d33370
drm/edid: Allow querying/working with the panel ID from the EDID

EDIDs have 32-bits worth of data which is intended to be used to
uniquely identify the make/model of a panel. This has historically
been used only internally in the EDID processing code to identify
quirks with panels.

We'd like to use this panel ID in panel drivers to identify which
panel is hooked up and from that information figure out power sequence
timings. Let's expose this information from the EDID code and also
allow it to be accessed early, before a connector has been created.

To make matching in the panel drivers code easier, we'll return the
panel ID as a 32-bit value. We'll provide some functions for
converting this value back and forth to something more human readable.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210914132020.v5.3.I4a672175ba1894294d91d3dbd51da11a8239cf4a@changeid
drivers/gpu/drm/drm_edid.c
include/drm/drm_edid.h