Go to the documentation of this file.
15 #ifndef _EXYNOS_MIPI_DSI_REGS_H
16 #define _EXYNOS_MIPI_DSI_REGS_H
18 #define EXYNOS_DSIM_STATUS 0x0
19 #define EXYNOS_DSIM_SWRST 0x4
20 #define EXYNOS_DSIM_CLKCTRL 0x8
21 #define EXYNOS_DSIM_TIMEOUT 0xc
22 #define EXYNOS_DSIM_CONFIG 0x10
23 #define EXYNOS_DSIM_ESCMODE 0x14
26 #define EXYNOS_DSIM_MDRESOL 0x18
27 #define EXYNOS_DSIM_MVPORCH 0x1c
28 #define EXYNOS_DSIM_MHPORCH 0x20
29 #define EXYNOS_DSIM_MSYNC 0x24
32 #define EXYNOS_DSIM_SDRESOL 0x28
33 #define EXYNOS_DSIM_INTSRC 0x2c
34 #define EXYNOS_DSIM_INTMSK 0x30
35 #define EXYNOS_DSIM_PKTHDR 0x34
36 #define EXYNOS_DSIM_PAYLOAD 0x38
37 #define EXYNOS_DSIM_RXFIFO 0x3c
38 #define EXYNOS_DSIM_FIFOTHLD 0x40
39 #define EXYNOS_DSIM_FIFOCTRL 0x44
42 #define EXYNOS_DSIM_PLLCTRL 0x4c
43 #define EXYNOS_DSIM_PLLTMR 0x50
44 #define EXYNOS_DSIM_PHYACCHR 0x54
45 #define EXYNOS_DSIM_PHYACCHR1 0x58
48 #define DSIM_STOP_STATE_DAT(x) (((x) & 0xf) << 0)
49 #define DSIM_STOP_STATE_CLK (1 << 8)
50 #define DSIM_TX_READY_HS_CLK (1 << 10)
53 #define DSIM_FUNCRST (1 << 16)
54 #define DSIM_SWRST (1 << 0)
57 #define DSIM_LPDR_TOUT_SHIFT(x) ((x) << 0)
58 #define DSIM_BTA_TOUT_SHIFT(x) ((x) << 16)
61 #define DSIM_LANE_ESC_CLKEN(x) (((x) & 0x1f) << 19)
62 #define DSIM_BYTE_CLKEN_SHIFT(x) ((x) << 24)
63 #define DSIM_BYTE_CLK_SRC_SHIFT(x) ((x) << 25)
64 #define DSIM_PLL_BYPASS_SHIFT(x) ((x) << 27)
65 #define DSIM_ESC_CLKEN_SHIFT(x) ((x) << 28)
66 #define DSIM_TX_REQUEST_HSCLK_SHIFT(x) ((x) << 31)
69 #define DSIM_LANE_ENx(x) (((x) & 0x1f) << 0)
70 #define DSIM_NUM_OF_DATALANE_SHIFT(x) ((x) << 5)
71 #define DSIM_HSA_MODE_SHIFT(x) ((x) << 20)
72 #define DSIM_HBP_MODE_SHIFT(x) ((x) << 21)
73 #define DSIM_HFP_MODE_SHIFT(x) ((x) << 22)
74 #define DSIM_HSE_MODE_SHIFT(x) ((x) << 23)
75 #define DSIM_AUTO_MODE_SHIFT(x) ((x) << 24)
76 #define DSIM_EOT_DISABLE(x) ((x) << 28)
77 #define DSIM_AUTO_FLUSH(x) ((x) << 29)
79 #define DSIM_NUM_OF_DATA_LANE(x) ((x) << DSIM_NUM_OF_DATALANE_SHIFT)
82 #define DSIM_TX_LPDT_LP (1 << 6)
83 #define DSIM_CMD_LPDT_LP (1 << 7)
84 #define DSIM_FORCE_STOP_STATE_SHIFT(x) ((x) << 20)
85 #define DSIM_STOP_STATE_CNT_SHIFT(x) ((x) << 21)
88 #define DSIM_MAIN_STAND_BY (1 << 31)
89 #define DSIM_MAIN_VRESOL(x) (((x) & 0x7ff) << 16)
90 #define DSIM_MAIN_HRESOL(x) (((x) & 0X7ff) << 0)
93 #define DSIM_CMD_ALLOW_SHIFT(x) ((x) << 28)
94 #define DSIM_STABLE_VFP_SHIFT(x) ((x) << 16)
95 #define DSIM_MAIN_VBP_SHIFT(x) ((x) << 0)
96 #define DSIM_CMD_ALLOW_MASK (0xf << 28)
97 #define DSIM_STABLE_VFP_MASK (0x7ff << 16)
98 #define DSIM_MAIN_VBP_MASK (0x7ff << 0)
101 #define DSIM_MAIN_HFP_SHIFT(x) ((x) << 16)
102 #define DSIM_MAIN_HBP_SHIFT(x) ((x) << 0)
103 #define DSIM_MAIN_HFP_MASK ((0xffff) << 16)
104 #define DSIM_MAIN_HBP_MASK ((0xffff) << 0)
107 #define DSIM_MAIN_VSA_SHIFT(x) ((x) << 22)
108 #define DSIM_MAIN_HSA_SHIFT(x) ((x) << 0)
109 #define DSIM_MAIN_VSA_MASK ((0x3ff) << 22)
110 #define DSIM_MAIN_HSA_MASK ((0xffff) << 0)
113 #define DSIM_SUB_STANDY_SHIFT(x) ((x) << 31)
114 #define DSIM_SUB_VRESOL_SHIFT(x) ((x) << 16)
115 #define DSIM_SUB_HRESOL_SHIFT(x) ((x) << 0)
116 #define DSIM_SUB_STANDY_MASK ((0x1) << 31)
117 #define DSIM_SUB_VRESOL_MASK ((0x7ff) << 16)
118 #define DSIM_SUB_HRESOL_MASK ((0x7ff) << 0)
121 #define INTSRC_PLL_STABLE (1 << 31)
122 #define INTSRC_SW_RST_RELEASE (1 << 30)
123 #define INTSRC_SFR_FIFO_EMPTY (1 << 29)
124 #define INTSRC_FRAME_DONE (1 << 24)
125 #define INTSRC_RX_DATA_DONE (1 << 18)
128 #define INTMSK_FIFO_EMPTY (1 << 29)
129 #define INTMSK_BTA (1 << 25)
130 #define INTMSK_FRAME_DONE (1 << 24)
131 #define INTMSK_RX_TIMEOUT (1 << 21)
132 #define INTMSK_BTA_TIMEOUT (1 << 20)
133 #define INTMSK_RX_DONE (1 << 18)
134 #define INTMSK_RX_TE (1 << 17)
135 #define INTMSK_RX_ACK (1 << 16)
136 #define INTMSK_RX_ECC_ERR (1 << 15)
137 #define INTMSK_RX_CRC_ERR (1 << 14)
140 #define SFR_HEADER_EMPTY (1 << 22)
143 #define DSIM_AFC_CTL(x) (((x) & 0x7) << 5)
146 #define DSIM_PLL_EN_SHIFT(x) ((x) << 23)
147 #define DSIM_FREQ_BAND_SHIFT(x) ((x) << 24)