| 1 |
|
| 2 |
|
| 3 |
#include <console/console.h> |
| 4 |
#include <soc/tps65132s.h> |
| 5 |
|
| 6 |
#include "gpio.h" |
| 7 |
#include "panel.h" |
| 8 |
|
| 9 |
static void mipi_panel_power_on(void) |
| 10 |
{ |
| 11 |
struct tps65132s_cfg config = { |
| 12 |
.i2c_bus = PMIC_I2C_BUS, |
| 13 |
.en = GPIO_EN_PP3300_DISP_X, |
| 14 |
.sync = GPIO_TCHPAD_INT_ODL, |
| 15 |
}; |
| 16 |
tps65132s_power_on(&config); |
| 17 |
} |
| 18 |
|
| 19 |
static struct panel_description wyrdeer_panels[] = { |
| 20 |
|
| 21 |
[6] = { |
| 22 |
.configure_backlight = backlight_control, |
| 23 |
.power_on = mipi_panel_power_on, |
| 24 |
.name = "KD_KD110N11_51IE", |
| 25 |
.disp_path = DISP_PATH_MIPI, |
| 26 |
.orientation = LB_FB_ORIENTATION_LEFT_UP, |
| 27 |
}, |
| 28 |
|
| 29 |
[9] = { |
| 30 |
.configure_backlight = backlight_control, |
| 31 |
.power_on = mipi_panel_power_on, |
| 32 |
.name = "STA_2082109QFH040022_50E", |
| 33 |
.disp_path = DISP_PATH_MIPI, |
| 34 |
.orientation = LB_FB_ORIENTATION_LEFT_UP, |
| 35 |
}, |
| 36 |
}; |
| 37 |
|
| 38 |
struct panel_description *get_panel_description(void) |
| 39 |
{ |
| 40 |
uint32_t id = panel_id() & 0xF; |
| 41 |
if (id >= ARRAY_SIZE(wyrdeer_panels)) |
| 42 |
return NULL; |
| 43 |
|
| 44 |
return &wyrdeer_panels[id]; |
| 45 |
} |