Jitao Shi | 3324e3f | 2019-04-29 18:20:53 +0800 | [diff] [blame] | 1 | /* |
| 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 Lin | 9ede2ff | 2019-08-15 09:43:55 +0800 | [diff] [blame^] | 18 | static 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 Shi | 3324e3f | 2019-04-29 18:20:53 +0800 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | struct panel_description *get_panel_description(int panel_id) |
| 25 | { |
Jitao Shi | 3324e3f | 2019-04-29 18:20:53 +0800 | [diff] [blame] | 26 | if (panel_id < 0 || panel_id >= ARRAY_SIZE(krane_panels)) |
| 27 | return NULL; |
Hung-Te Lin | 9ede2ff | 2019-08-15 09:43:55 +0800 | [diff] [blame^] | 28 | |
| 29 | return get_panel_from_cbfs(&krane_panels[panel_id]); |
Jitao Shi | 3324e3f | 2019-04-29 18:20:53 +0800 | [diff] [blame] | 30 | } |