mipi: Add panel flags to support C-PHY interface

Add a new member 'flags' to the panel structure in panel.h, and define
`PANEL_FLAG_CPHY` to indicate C-PHY interface support. This change
enables panel drivers to check and handle C-PHY panels.

BUG=b:433422905,b:428854543
BRANCH=skywalker
TEST=build passed

Signed-off-by: Bincai Liu bincai.liu@mediatek.corp-partner.google.com
Signed-off-by: Vince Liu vince-wl.liu@mediatek.corp-partner.google.com
Change-Id: I4c35ad2cb6fc2289598ae47b3abf1c6c706dad42
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89760
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Vince Liu 2025-10-27 09:17:40 +08:00 committed by Yu-Ping Wu
commit c63e901b99

View file

@ -15,6 +15,11 @@ enum panel_init_cmd {
PANEL_CMD_DCS = 3,
};
/* Definitions for flags in panel_serializable_data */
enum panel_flag {
PANEL_FLAG_CPHY = BIT(0),
};
struct panel_init_command {
u8 cmd;
u8 len;
@ -27,6 +32,7 @@ struct panel_init_command {
* cannot be really serialized.
*/
struct panel_serializable_data {
u32 flags; /* flags of panel_flag */
struct edid edid; /* edid info of this panel */
u8 init[]; /* A packed array of panel_init_command */
};