| 1 |
|
| 2 |
|
| 3 |
#include <boardid.h> |
| 4 |
#include <delay.h> |
| 5 |
#include <gpio.h> |
| 6 |
|
| 7 |
#include "panel.h" |
| 8 |
|
| 9 |
static void power_on_ssd2858(void) |
| 10 |
{ |
| 11 |
gpio_output(GPIO_MIPIBRDG_PWRDN_L_1V8, 0); |
| 12 |
gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 0); |
| 13 |
gpio_output(GPIO_PPVARP_LCD_EN, 1); |
| 14 |
gpio_output(GPIO_PPVARN_LCD_EN, 1); |
| 15 |
gpio_output(GPIO_PP1800_LCM_EN, 1); |
| 16 |
gpio_output(GPIO_PP3300_LCM_EN, 1); |
| 17 |
gpio_output(GPIO_PP1200_MIPIBRDG_EN, 1); |
| 18 |
gpio_output(GPIO_VDDIO_MIPIBRDG_EN, 1); |
| 19 |
mdelay(20); |
| 20 |
gpio_output(GPIO_MIPIBRDG_PWRDN_L_1V8, 1); |
| 21 |
mdelay(20); |
| 22 |
gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 1); |
| 23 |
mdelay(20); |
| 24 |
} |
| 25 |
|
| 26 |
static struct panel_description kukui_panel = { |
| 27 |
.name = "CMN_P097PFG_SSD2858", |
| 28 |
.orientation = LB_FB_ORIENTATION_NORMAL, |
| 29 |
.power_on = power_on_ssd2858, |
| 30 |
}; |
| 31 |
|
| 32 |
struct panel_description *get_panel_description(int panel_id) |
| 33 |
{ |
| 34 |
|
| 35 |
if (board_id() < 2) |
| 36 |
return NULL; |
| 37 |
|
| 38 |
|
| 39 |
return get_panel_from_cbfs(&kukui_panel); |
| 40 |
} |