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
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
;
15
};
16
17
/* Returns the panel description from given ID. */
18
struct
panel_description
*
get_panel_description
(
int
panel_id
);
19
20
/* Loads panel serializable data from CBFS. */
21
struct
panel_description
*
get_panel_from_cbfs
(
struct
panel_description
*desc);
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
lb_fb_orientation
coreboot framebuffer
Definition:
coreboot_tables.h:265
panel.h
get_panel_description
struct panel_description * get_panel_description(int panel_id)
Definition:
mainboard.c:68
get_panel_from_cbfs
struct panel_description * get_panel_from_cbfs(struct panel_description *desc)
Definition:
mainboard.c:100
panel_id
static uint8_t panel_id(void)
Definition:
boardid.c:45
panel_description
Definition:
panel.h:9
panel_description::name
const char * name
Definition:
panel.h:10
panel_description::power_on
void(* power_on)(void)
Definition:
panel.h:12
panel_description::post_power_on
void(* post_power_on)(void)
Definition:
panel.h:13
panel_description::s
struct panel_serializable_data * s
Definition:
panel.h:11
panel_description::orientation
enum lb_fb_orientation orientation
Definition:
panel.h:14
panel_serializable_data
Definition:
panel.h:29
void
typedef void(X86APIP X86EMU_intrFuncs)(int num)
src
mainboard
google
kukui
panel.h
Generated by
1.9.1