coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
panel.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
4 #define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
5 
6 #include <mipi/panel.h>
7 #include <soc/dsi.h>
8 
10  const char *name; /* Panel name for constructing CBFS file name */
12  void (*power_on)(void); /* Callback to turn on panel */
13  void (*post_power_on)(void); /* Callback to run after panel is turned on */
15 };
16 
17 /* Returns the panel description from given ID. */
19 
20 /* Loads panel serializable data from CBFS. */
22 
23 /* GPIO names */
24 #define GPIO_LCM_RST_1V8 GPIO(LCM_RST) /* 45 */
25 #define GPIO_MIPIBRDG_PWRDN_L_1V8 GPIO(LCM_RST) /* 45 */
26 #define GPIO_MIPIBRDG_RST_L_1V8 GPIO(BPI_BUS3) /* 73 */
27 #define GPIO_PP1200_MIPIBRDG_EN GPIO(BPI_OLAT1) /* 54 */
28 #define GPIO_PP1800_LCM_EN GPIO(SIM2_SRST) /* 36 */
29 #define GPIO_PP3300_LCM_EN GPIO(SIM2_SIO) /* 35 */
30 #define GPIO_PPVARN_LCD_EN GPIO(PERIPHERAL_EN9) /* 166 */
31 #define GPIO_PPVARP_LCD_EN GPIO(MISC_BSI_CK_3) /* 66 */
32 #define GPIO_VDDIO_MIPIBRDG_EN GPIO(SIM2_SCLK) /* 37 */
33 
34 #endif /* __MAINBOARD_GOOGLE_KUKUI_PANEL_H__ */
lb_fb_orientation
coreboot framebuffer
struct panel_description * get_panel_description(int panel_id)
Definition: mainboard.c:68
struct panel_description * get_panel_from_cbfs(struct panel_description *desc)
Definition: mainboard.c:100
static uint8_t panel_id(void)
Definition: boardid.c:45
const char * name
Definition: panel.h:10
void(* power_on)(void)
Definition: panel.h:12
void(* post_power_on)(void)
Definition: panel.h:13
struct panel_serializable_data * s
Definition: panel.h:11
enum lb_fb_orientation orientation
Definition: panel.h:14
typedef void(X86APIP X86EMU_intrFuncs)(int num)