1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
3  */
4 
5 #ifndef _DPU_HWIO_H
6 #define _DPU_HWIO_H
7 
8 #include "dpu_hw_util.h"
9 
10 /**
11  * MDP TOP block Register and bit fields and defines
12  */
13 #define DISP_INTF_SEL                   0x004
14 #define INTR_EN                         0x010
15 #define INTR_STATUS                     0x014
16 #define INTR_CLEAR                      0x018
17 #define INTR2_EN                        0x008
18 #define INTR2_STATUS                    0x00c
19 #define SSPP_SPARE                      0x028
20 #define INTR2_CLEAR                     0x02c
21 #define HIST_INTR_EN                    0x01c
22 #define HIST_INTR_STATUS                0x020
23 #define HIST_INTR_CLEAR                 0x024
24 #define INTF_INTR_EN                    0x1C0
25 #define INTF_INTR_STATUS                0x1C4
26 #define INTF_INTR_CLEAR                 0x1C8
27 #define SPLIT_DISPLAY_EN                0x2F4
28 #define SPLIT_DISPLAY_UPPER_PIPE_CTRL   0x2F8
29 #define DSPP_IGC_COLOR0_RAM_LUTN        0x300
30 #define DSPP_IGC_COLOR1_RAM_LUTN        0x304
31 #define DSPP_IGC_COLOR2_RAM_LUTN        0x308
32 #define DANGER_STATUS                   0x360
33 #define SAFE_STATUS                     0x364
34 #define HW_EVENTS_CTL                   0x37C
35 #define MDP_WD_TIMER_0_CTL              0x380
36 #define MDP_WD_TIMER_0_CTL2             0x384
37 #define MDP_WD_TIMER_0_LOAD_VALUE       0x388
38 #define MDP_WD_TIMER_1_CTL              0x390
39 #define MDP_WD_TIMER_1_CTL2             0x394
40 #define MDP_WD_TIMER_1_LOAD_VALUE       0x398
41 #define CLK_CTRL3                       0x3A8
42 #define CLK_STATUS3                     0x3AC
43 #define CLK_CTRL4                       0x3B0
44 #define CLK_STATUS4                     0x3B4
45 #define CLK_CTRL5                       0x3B8
46 #define CLK_STATUS5                     0x3BC
47 #define CLK_CTRL7                       0x3D0
48 #define CLK_STATUS7                     0x3D4
49 #define SPLIT_DISPLAY_LOWER_PIPE_CTRL   0x3F0
50 #define SPLIT_DISPLAY_TE_LINE_INTERVAL  0x3F4
51 #define INTF_SW_RESET_MASK              0x3FC
52 #define HDMI_DP_CORE_SELECT             0x408
53 #define MDP_OUT_CTL_0                   0x410
54 #define MDP_VSYNC_SEL                   0x414
55 #define MDP_WD_TIMER_2_CTL              0x420
56 #define MDP_WD_TIMER_2_CTL2             0x424
57 #define MDP_WD_TIMER_2_LOAD_VALUE       0x428
58 #define MDP_WD_TIMER_3_CTL              0x430
59 #define MDP_WD_TIMER_3_CTL2             0x434
60 #define MDP_WD_TIMER_3_LOAD_VALUE       0x438
61 #define MDP_WD_TIMER_4_CTL              0x440
62 #define MDP_WD_TIMER_4_CTL2             0x444
63 #define MDP_WD_TIMER_4_LOAD_VALUE       0x448
64 #define DCE_SEL                         0x450
65 
66 #define MDP_PERIPH_TOP0			MDP_WD_TIMER_0_CTL
67 #define MDP_PERIPH_TOP0_END		CLK_CTRL3
68 
69 #endif /*_DPU_HWIO_H */
70