| 1 |
|
| 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; |
| 11 |
struct panel_serializable_data *s; |
| 12 |
void (*power_on)(void); |
| 13 |
void (*post_power_on)(void); |
| 14 |
enum lb_fb_orientation orientation; |
| 15 |
}; |
| 16 |
|
| 17 |
|
| 18 |
struct panel_description *get_panel_description(int panel_id); |
| 19 |
|
| 20 |
|
| 21 |
struct panel_description *get_panel_from_cbfs(struct panel_description *desc); |
| 22 |
|
| 23 |
|
| 24 |
#define GPIO_LCM_RST_1V8 GPIO(LCM_RST) |
| 25 |
#define GPIO_MIPIBRDG_PWRDN_L_1V8 GPIO(LCM_RST) |
| 26 |
#define GPIO_MIPIBRDG_RST_L_1V8 GPIO(BPI_BUS3) |
| 27 |
#define GPIO_PP1200_MIPIBRDG_EN GPIO(BPI_OLAT1) |
| 28 |
#define GPIO_PP1800_LCM_EN GPIO(SIM2_SRST) |
| 29 |
#define GPIO_PP3300_LCM_EN GPIO(SIM2_SIO) |
| 30 |
#define GPIO_PPVARN_LCD_EN GPIO(PERIPHERAL_EN9) |
| 31 |
#define GPIO_PPVARP_LCD_EN GPIO(MISC_BSI_CK_3) |
| 32 |
#define GPIO_VDDIO_MIPIBRDG_EN GPIO(SIM2_SCLK) |
| 33 |
|
| 34 |
#endif |