mb/google/fatcat: Suppress unnecessary extra space in device trees
[coreboot2.git] / src / mainboard / google / kukui / panel.h
blobc5bc43e5fb878b5f7578e843ddbc17eabcdcdf86
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
4 #define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
6 #include <mipi/panel.h>
7 #include <soc/dsi.h>
9 struct panel_description {
10 const char *name; /* Panel name for constructing CBFS file name */
11 struct panel_serializable_data *s;
12 void (*power_on)(void); /* Callback to turn on panel */
13 void (*post_power_on)(void); /* Callback to run after panel is turned on */
14 enum lb_fb_orientation orientation;
17 /* Returns the panel description from given ID. */
18 struct panel_description *get_panel_description(int panel_id);
20 /* Loads panel serializable data from CBFS. */
21 struct panel_description *get_panel_from_cbfs(struct panel_description *desc);
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 */
34 #endif /* __MAINBOARD_GOOGLE_KUKUI_PANEL_H__ */