drivers/gfx/generic: Add _PLD support to GFX device
commit467c88b3a971a364d2013b9e397d9cd6f5bcfdda
authorWon Chung <wonchung@google.com>
Mon, 10 Apr 2023 20:35:58 +0000 (10 20:35 +0000)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 8 May 2023 13:12:18 +0000 (8 13:12 +0000)
tree83dc24a7cdfe94ae9e5d71f33f67870e4759dd5b
parente59f18bf29a8db4447100c57d3400ec432a94961
drivers/gfx/generic: Add _PLD support to GFX device

Add _PLD support to GFX device so that each display output can store
its physical location of connection point. This is to be used primarily
for describing DP on USB-C ports in the future patches.

The upstream Linux kernel now has a feature to compare _PLD of Type C
connectors and DP connectors to link them together.
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c5c51b2420625faa1f0e363f21dba1de53806ff7
This feature allows us to tell which display output is used by which
USB-C port.

So, for the future boards, we want to add _PLD for each DP connector
matching with the corresponding USB-C port.

BUG=b:277629750
TEST=emerge-${BOARD} coreboot

Signed-off-by: Won Chung <wonchung@google.com>
Change-Id: I393207746a9e82c1fd7622ab3661d7b1232cb62f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74365
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
src/drivers/gfx/generic/chip.h
src/drivers/gfx/generic/generic.c