blob: 4694e494850d561a622ee0794509085ececf9b25 [file] [log] [blame]
Jitao Shi3324e3f2019-04-29 18:20:53 +08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2019 Huaqin Telecom Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include "panel.h"
17
Hung-Te Lin9ede2ff2019-08-15 09:43:55 +080018static struct panel_description krane_panels[] = {
19 [0] = { .name = "AUO_KD101N80_45NA", },
20 [1] = { .name = "BOE_TV101WUM_NL6", }, /* Only Rev3, can be reused. */
21 [11] = { .name = "BOE_TV101WUM_NL6", },
Jitao Shi3324e3f2019-04-29 18:20:53 +080022};
23
24struct panel_description *get_panel_description(int panel_id)
25{
Jitao Shi3324e3f2019-04-29 18:20:53 +080026 if (panel_id < 0 || panel_id >= ARRAY_SIZE(krane_panels))
27 return NULL;
Hung-Te Lin9ede2ff2019-08-15 09:43:55 +080028
29 return get_panel_from_cbfs(&krane_panels[panel_id]);
Jitao Shi3324e3f2019-04-29 18:20:53 +080030}