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 <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90739
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Chen-Tsung Hsieh <chentsung@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yu-Ping Wu 2026-01-13 16:29:10 +08:00 committed by Yu-Ping Wu
commit 03b47f947f
2 changed files with 9 additions and 2 deletions

View file

@ -16,6 +16,8 @@
#include <symbols.h>
#include <timestamp.h>
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;
}

View file

@ -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