• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef HI35XX_DISP_H
10 #define HI35XX_DISP_H
11 #include "hdf_base.h"
12 
13 #define IO_CFG1_BASE                0x111F0000
14 #define IO_CFG2_BASE                0x112F0000
15 #define IO_CFG_SIZE                 0x10000
16 
17 #define PWM_DEV0                    0
18 #define PWM_DEV1                    1
19 
20 /* output interface type */
21 #define INTF_LCD_6BIT               (0x01L << 9)
22 #define INTF_LCD_8BIT               (0x01L << 10)
23 #define INTF_LCD_16BIT              (0x01L << 11)
24 #define INTF_LCD_18BIT              (0x01L << 12)
25 #define INTF_LCD_24BIT              (0x01L << 13)
26 #define INTF_MIPI                   (0x01L << 14)
27 
28 /* output timing */
29 enum IntfSync {
30     OUTPUT_USER = 0,          /* User timing */
31     OUTPUT_PAL,               /* PAL standard */
32     OUTPUT_NTSC,              /* NTSC standard */
33     OUTPUT_1080P24,           /* 1920 x 1080 at 24 Hz. */
34     OUTPUT_1080P25,           /* 1920 x 1080 at 25 Hz. */
35     OUTPUT_1080P30,           /* 1920 x 1080 at 30 Hz. */
36     OUTPUT_720P50,            /* 1280 x  720 at 50 Hz. */
37     OUTPUT_720P60,            /* 1280 x  720 at 60 Hz. */
38     OUTPUT_1080I50,           /* 1920 x 1080 at 50 Hz, interlace. */
39     OUTPUT_1080I60,           /* 1920 x 1080 at 60 Hz, interlace. */
40     OUTPUT_1080P50,           /* 1920 x 1080 at 50 Hz. */
41     OUTPUT_1080P60,           /* 1920 x 1080 at 60 Hz. */
42     OUTPUT_576P50,            /* 720  x  576 at 50 Hz. */
43     OUTPUT_480P60,            /* 720  x  480 at 60 Hz. */
44     OUTPUT_800X600_60,        /* VESA 800 x 600 at 60 Hz (non-interlaced) */
45     OUTPUT_1024X768_60,       /* VESA 1024 x 768 at 60 Hz (non-interlaced) */
46     OUTPUT_1280X1024_60,      /* VESA 1280 x 1024 at 60 Hz (non-interlaced) */
47     OUTPUT_1366X768_60,       /* VESA 1366 x 768 at 60 Hz (non-interlaced) */
48     OUTPUT_1440X900_60,       /* VESA 1440 x 900 at 60 Hz (non-interlaced) CVT Compliant */
49     OUTPUT_1280X800_60,       /* 1280*800@60Hz VGA@60Hz */
50     OUTPUT_1600X1200_60,      /* VESA 1600 x 1200 at 60 Hz (non-interlaced) */
51     OUTPUT_1680X1050_60,      /* VESA 1680 x 1050 at 60 Hz (non-interlaced) */
52     OUTPUT_1920X1200_60,      /* VESA 1920 x 1600 at 60 Hz (non-interlaced) CVT (Reduced Blanking) */
53     OUTPUT_640X480_60,        /* VESA 640 x 480 at 60 Hz (non-interlaced) CVT */
54     OUTPUT_960H_PAL,          /* ITU-R BT.1302 960 x 576 at 50 Hz (interlaced) */
55     OUTPUT_960H_NTSC,         /* ITU-R BT.1302 960 x 480 at 60 Hz (interlaced) */
56     OUTPUT_1920X2160_30,      /* 1920x2160_30 */
57     OUTPUT_2560X1440_30,      /* 2560x1440_30 */
58     OUTPUT_2560X1440_60,      /* 2560x1440_60 */
59     OUTPUT_2560X1600_60,      /* 2560x1600_60 */
60     OUTPUT_3840X2160_24,      /* 3840x2160_24 */
61     OUTPUT_3840X2160_25,      /* 3840x2160_25 */
62     OUTPUT_3840X2160_30,      /* 3840x2160_30 */
63     OUTPUT_3840X2160_50,      /* 3840x2160_50 */
64     OUTPUT_3840X2160_60,      /* 3840x2160_60 */
65     OUTPUT_4096X2160_24,      /* 4096x2160_24 */
66     OUTPUT_4096X2160_25,      /* 4096x2160_25 */
67     OUTPUT_4096X2160_30,      /* 4096x2160_30 */
68     OUTPUT_4096X2160_50,      /* 4096x2160_50 */
69     OUTPUT_4096X2160_60,      /* 4096x2160_60 */
70     OUTPUT_320X240_60,        /* For ota5182 at 60 Hz (8bit) */
71     OUTPUT_320X240_50,        /* For ili9342 at 50 Hz (6bit) */
72     OUTPUT_240X320_50,        /* Hi3559AV100: For ili9341 at 50 Hz (6bit) */
73     OUTPUT_240X320_60,        /* For ili9341 at 60 Hz (16bit) */
74     OUTPUT_800X600_50,        /* For LCD     at 50 Hz (24bit) */
75     OUTPUT_720X1280_60,       /* For MIPI DSI Tx 720 x1280 at 60 Hz */
76     OUTPUT_1080X1920_60,      /* For MIPI DSI Tx 1080x1920 at 60 Hz */
77     OUTPUT_7680X4320_30,      /* For HDMI2.1 at 30 Hz */
78 };
79 
80 #endif /* HI35XX_DISP_H */
81