From c63e901b992b1bb62e31ef39bfc3e2c6b963601f Mon Sep 17 00:00:00 2001 From: Vince Liu Date: Mon, 27 Oct 2025 09:17:40 +0800 Subject: [PATCH] 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 Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) --- src/include/mipi/panel.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/mipi/panel.h b/src/include/mipi/panel.h index ca06897c98..cc5a065d02 100644 --- a/src/include/mipi/panel.h +++ b/src/include/mipi/panel.h @@ -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 */ };