diff options
author | Bo-Chen Chen <rex-bc.chen@mediatek.com> | 2022-11-30 14:47:41 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-12-12 13:54:24 +0000 |
commit | 49465167a0050133315b54176d930f600ff12db5 (patch) | |
tree | 28e977917e74de15cdd0922925429a800fd86d90 /src/mainboard/google/geralt/panel.h | |
parent | 80f38227cf69c7e619dd039717f6cbd0c11437c5 (diff) |
mb/google/geralt: Put MIPI panel data in panel_geralt.c
There are eDP and MIPI panels supported in geralt. We put the panels'
specified functions - `power_on()` and `configure_panel_backlight()` in
panel_geralt.c. Also provide the common interface `get_active_panel()`
in panel.c to generalize the display initialization. Since each board
may support a different set of MIPI panels, we put the MIPI data in a
separate file panel_geralt.c.
BUG=b:244208960
TEST=emerge-geralt coreboot
Change-Id: Ie928759e020a916f29f0364201a3cf202dc512c3
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70404
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google/geralt/panel.h')
-rw-r--r-- | src/mainboard/google/geralt/panel.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/panel.h b/src/mainboard/google/geralt/panel.h index e940094da0..40e880b6c6 100644 --- a/src/mainboard/google/geralt/panel.h +++ b/src/mainboard/google/geralt/panel.h @@ -3,6 +3,19 @@ #ifndef __MAINBOARD_GOOGLE_GERALT_PANEL_H__ #define __MAINBOARD_GOOGLE_GERALT_PANEL_H__ +#include <mipi/panel.h> +#include <soc/ddp.h> + +struct panel_description { + const char *name; + struct panel_serializable_data *s; + void (*power_on)(void); + void (*configure_panel_backlight)(void); + enum disp_path_sel disp_path; +}; + uint32_t panel_id(void); +struct panel_description *get_panel_description(uint32_t panel_id); +struct panel_description *get_active_panel(void); #endif |