1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2019-01-08     zylx         first version
9  */
10 
11 #ifndef __LCD_PORT_DSI_H__
12 #define __LCD_PORT_DSI_H__
13 
14 #define LCD_HEIGHT              390
15 #define LCD_WIDTH               390
16 #define LCD_BITS_PER_PIXEL      24
17 #define LCD_PIXEL_FORMAT        RTGRAPHIC_PIXEL_FORMAT_ARGB888
18 #define LCD_DSI_BUF_SIZE        608400
19 #define LCD_DSI_BUF_SIZE_ROUND  365040
20 
21 #define LAYER_ADDRESS           GFXMMU_VIRTUAL_BUFFER0_BASE
22 #define BRIGHTNESS_MIN          50
23 #define BRIGHTNESS_NORMAL       200
24 
25 #define LCD_BACKLIGHT_USING_GPIO
26 #define LCD_BL_GPIO_NUM         GET_PIN(B, 14)
27 
28 #endif /* __LCD_PORT_DSI_H__ */
29