From 03b47f947fef5e584c5e0ec4cb739934cffd8d47 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Tue, 13 Jan 2026 16:29:10 +0800 Subject: [PATCH] soc/mediatek: Add mtk_get_mipi_panel_data() API Introduce mtk_get_mipi_panel_data() API for the mainboard code to get the MIPI panel data. BUG=b:474187570 TEST=emerge-jedi coreboot BRANCH=skywalker Change-Id: Ibd3bccb7ce164a4ad3d6cb36345514240495e62f Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/90739 Reviewed-by: Yidi Lin Reviewed-by: Chen-Tsung Hsieh Tested-by: build bot (Jenkins) --- src/soc/mediatek/common/display.c | 9 +++++++-- src/soc/mediatek/common/include/soc/display.h | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/soc/mediatek/common/display.c b/src/soc/mediatek/common/display.c index 08139dfc3d..9d2c873838 100644 --- a/src/soc/mediatek/common/display.c +++ b/src/soc/mediatek/common/display.c @@ -16,6 +16,8 @@ #include #include +static struct panel_serializable_data *mipi_data; + static struct panel_serializable_data *get_mipi_cmd_from_cbfs(struct panel_description *desc) { /* @@ -136,8 +138,6 @@ int mtk_display_init(void) return -1; } } else { - struct panel_serializable_data *mipi_data = NULL; - if (panel->get_edid) { if (panel->get_edid(&edid) < 0) return -1; @@ -239,3 +239,8 @@ u32 mtk_get_vrefresh(const struct edid *edid) return vrefresh; } + +const struct panel_serializable_data *mtk_get_mipi_panel_data(void) +{ + return mipi_data; +} diff --git a/src/soc/mediatek/common/include/soc/display.h b/src/soc/mediatek/common/include/soc/display.h index 62ea9b0c23..3e3b4a2164 100644 --- a/src/soc/mediatek/common/include/soc/display.h +++ b/src/soc/mediatek/common/include/soc/display.h @@ -40,4 +40,6 @@ void mtk_ddp_mode_set(const struct edid *edid, enum disp_path_sel path, void mtk_ddp_ovlsys_start(uintptr_t fb_addr, const struct edid *edid, enum disp_path_sel path); +const struct panel_serializable_data *mtk_get_mipi_panel_data(void); + #endif