Debian Codegraph @

src/mainboard/google/skywalker/panel_padme.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <console/console.h>
4
5 #include "gpio.h"
6 #include "panel.h"
7
8 static struct panel_description padme_panels[] = {
9 [0x22] = {
10 .configure_backlight = panel_configure_backlight,
11 .power_on = mipi_panel_power_on,
12 .name = "TM_TL121BVMS07_00C",
13 .disp_path = DISP_PATH_MIPI,
14 .orientation = LB_FB_ORIENTATION_LEFT_UP,
15 },
16 };
17
18 struct panel_description *get_panel_description(void)
19 {
20 uint8_t id = panel_id();
21 if (id >= ARRAY_SIZE(padme_panels))
22 return NULL;
23
24 return &padme_panels[id];
25 }