1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| /*
| * Allwinner SoCs display driver.
| *
| * Copyright (C) 2016 Allwinner.
| *
| * This file is licensed under the terms of the GNU General Public
| * License version 2. This program is licensed "as is" without any
| * warranty of any kind, whether express or implied.
| */
|
| #include "panels.h"
|
| struct sunxi_lcd_drv g_lcd_drv;
|
| struct __lcd_panel *panel_array[] = {
| #ifdef CONFIG_EINK_PANEL_USED
| &default_eink,
| #endif
| &default_panel,
| <070me05000_panel,
| &wtq05027d01_panel,
| &t27p06_panel,
| &dx0960be40a1_panel,
| &tft720x1280_panel,
| &S6D7AA0X01_panel,
| &gg1p4062utsw_panel,
| &ls029b3sx02_panel,
| &he0801a068_panel,
| &inet_dsi_panel,
| &lq101r1sx03_panel,
| /* add new panel below */
| &WilliamLcd_panel,
| &fx070_panel,
| &FX070_DHM18BOEL2_1024X600_mipi_panel,
| &bp101wx1_panel,
| &m133x56_panel,
| &m133x56_two_panel,
| &k101im2qa04_panel,
| &k101im2byl02l_panel,
| <8911ex_lvds_edp_panel,
| &K101_IM2BYL02_L_800X1280_mipi_panel,
| &mipi_8_800x1280_panel,
| &mipi_10_800x1280_panel,
| &mipi_10_800x1280_AT101DS40I_panel,
| &mipi_5_720x1280_panel,
| NULL,
| };
|
| static void lcd_set_panel_funs(void)
| {
| int i;
|
| for (i = 0; panel_array[i] != NULL; i++) {
| sunxi_lcd_set_panel_funs(panel_array[i]->name,
| &panel_array[i]->func);
| }
| }
|
| int lcd_init(void)
| {
| sunxi_disp_get_source_ops(&g_lcd_drv.src_ops);
| lcd_set_panel_funs();
|
| return 0;
| }
|
|