1 /* 2 * Allwinner SoCs display driver. 3 * 4 * Copyright (C) 2016 Allwinner. 5 * 6 * This file is licensed under the terms of the GNU General Public 7 * License version 2. This program is licensed "as is" without any 8 * warranty of any kind, whether express or implied. 9 */ 10 11 #ifndef __PANEL_H__ 12 #define __PANEL_H__ 13 14 /* 15 #include "../de/bsp_display.h" 16 #include "lcd_source.h" 17 18 extern void LCD_OPEN_FUNC(u32 sel, LCD_FUNC func, u32 delay); 19 extern void LCD_CLOSE_FUNC(u32 sel, LCD_FUNC func, u32 delay); 20 */ 21 22 struct __lcd_panel { 23 char name[32]; 24 struct disp_lcd_panel_fun func; 25 }; 26 27 extern struct __lcd_panel *panel_array[]; 28 29 /* 30 struct sunxi_lcd_drv { 31 struct sunxi_disp_source_ops src_ops; 32 }; 33 */ 34 35 //#ifndef SUPPORT_DSI 36 #if 0 37 enum __dsi_dcs_t { 38 DSI_DCS_ENTER_IDLE_MODE = 0x39, /* 01 */ 39 DSI_DCS_ENTER_INVERT_MODE = 0x21, /* 02 */ 40 DSI_DCS_ENTER_NORMAL_MODE = 0x13, /* 03 */ 41 DSI_DCS_ENTER_PARTIAL_MODE = 0x12, /* 04 */ 42 DSI_DCS_ENTER_SLEEP_MODE = 0x10, /* 05 */ 43 DSI_DCS_EXIT_IDLE_MODE = 0x38, /* 06 */ 44 DSI_DCS_EXIT_INVERT_MODE = 0x20, /* 07 */ 45 DSI_DCS_EXIT_SLEEP_MODE = 0x11, /* 08 */ 46 DSI_DCS_GET_ADDRESS_MODE = 0x0b, /* 09 */ 47 DSI_DCS_GET_BLUE_CHANNEL = 0x08, /* 10 */ 48 DSI_DCS_GET_DIAGNOSTIC_RESULT = 0x0f, /* 11 */ 49 DSI_DCS_GET_DISPLAY_MODE = 0x0d, /* 12 */ 50 DSI_DCS_GET_GREEN_CHANNEL = 0x07, /* 13 */ 51 DSI_DCS_GET_PIXEL_FORMAT = 0x0c, /* 14 */ 52 DSI_DCS_GET_POWER_MODE = 0x0a, /* 15 */ 53 DSI_DCS_GET_RED_CHANNEL = 0x06, /* 16 */ 54 DSI_DCS_GET_SCANLINE = 0x45, /* 17 */ 55 DSI_DCS_GET_SIGNAL_MODE = 0x0e, /* 18 */ 56 DSI_DCS_NOP = 0x00, /* 19 */ 57 DSI_DCS_READ_DDB_CONTINUE = 0xa8, /* 20 */ 58 DSI_DCS_READ_DDB_START = 0xa1, /* 21 */ 59 DSI_DCS_READ_MEMORY_CONTINUE = 0x3e, /* 22 */ 60 DSI_DCS_READ_MEMORY_START = 0x2e, /* 23 */ 61 DSI_DCS_SET_ADDRESS_MODE = 0x36, /* 24 */ 62 DSI_DCS_SET_COLUMN_ADDRESS = 0x2a, /* 25 */ 63 DSI_DCS_SET_DISPLAY_OFF = 0x28, /* 26 */ 64 DSI_DCS_SET_DISPLAY_ON = 0x29, /* 27 */ 65 DSI_DCS_SET_GAMMA_CURVE = 0x26, /* 28 */ 66 DSI_DCS_SET_PAGE_ADDRESS = 0x2b, /* 29 */ 67 DSI_DCS_SET_PARTIAL_AREA = 0x30, /* 30 */ 68 DSI_DCS_SET_PIXEL_FORMAT = 0x3a, /* 31 */ 69 DSI_DCS_SET_SCROLL_AREA = 0x33, /* 32 */ 70 DSI_DCS_SET_SCROLL_START = 0x37, /* 33 */ 71 DSI_DCS_SET_TEAR_OFF = 0x34, /* 34 */ 72 DSI_DCS_SET_TEAR_ON = 0x35, /* 35 */ 73 DSI_DCS_SET_TEAR_SCANLINE = 0x44, /* 36 */ 74 DSI_DCS_SOFT_RESET = 0x01, /* 37 */ 75 DSI_DCS_WRITE_LUT = 0x2d, /* 38 */ 76 DSI_DCS_WRITE_MEMORY_CONTINUE = 0x3c, /* 39 */ 77 DSI_DCS_WRITE_MEMORY_START = 0x2c, /* 40 */ 78 }; 79 #endif 80 81 //extern int sunxi_disp_get_source_ops(struct sunxi_disp_source_ops *src_ops); 82 int lcd_init(void); 83 84 extern struct __lcd_panel default_eink; 85 extern struct __lcd_panel default_panel; 86 extern struct __lcd_panel lt070me05000_panel; 87 extern struct __lcd_panel wtq05027d01_panel; 88 extern struct __lcd_panel t27p06_panel; 89 extern struct __lcd_panel dx0960be40a1_panel; 90 extern struct __lcd_panel tft720x1280_panel; 91 extern struct __lcd_panel S6D7AA0X01_panel; 92 extern struct __lcd_panel gg1p4062utsw_panel; 93 extern struct __lcd_panel ls029b3sx02_panel; 94 extern struct __lcd_panel he0801a068_panel; 95 extern struct __lcd_panel inet_dsi_panel; 96 extern struct __lcd_panel lq101r1sx03_panel; 97 extern struct __lcd_panel WilliamLcd_panel; 98 extern struct __lcd_panel fx070_panel; 99 extern struct __lcd_panel kd101n51_panel; 100 extern struct __lcd_panel bp101wx1_panel; 101 102 #endif 103