1bf215546Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2bf215546Sopenharmony_ci<database xmlns="http://nouveau.freedesktop.org/"
3bf215546Sopenharmony_cixmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4bf215546Sopenharmony_cixsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd">
5bf215546Sopenharmony_ci<import file="freedreno_copyright.xml"/>
6bf215546Sopenharmony_ci
7bf215546Sopenharmony_ci<domain name="DSI" width="32">
8bf215546Sopenharmony_ci	<enum name="dsi_traffic_mode">
9bf215546Sopenharmony_ci		<value name="NON_BURST_SYNCH_PULSE" value="0"/>
10bf215546Sopenharmony_ci		<value name="NON_BURST_SYNCH_EVENT" value="1"/>
11bf215546Sopenharmony_ci		<value name="BURST_MODE" value="2"/>
12bf215546Sopenharmony_ci	</enum>
13bf215546Sopenharmony_ci	<enum name="dsi_vid_dst_format">
14bf215546Sopenharmony_ci		<value name="VID_DST_FORMAT_RGB565" value="0"/>
15bf215546Sopenharmony_ci		<value name="VID_DST_FORMAT_RGB666" value="1"/>
16bf215546Sopenharmony_ci		<value name="VID_DST_FORMAT_RGB666_LOOSE" value="2"/>
17bf215546Sopenharmony_ci		<value name="VID_DST_FORMAT_RGB888" value="3"/>
18bf215546Sopenharmony_ci	</enum>
19bf215546Sopenharmony_ci	<enum name="dsi_rgb_swap">
20bf215546Sopenharmony_ci		<value name="SWAP_RGB" value="0"/>
21bf215546Sopenharmony_ci		<value name="SWAP_RBG" value="1"/>
22bf215546Sopenharmony_ci		<value name="SWAP_BGR" value="2"/>
23bf215546Sopenharmony_ci		<value name="SWAP_BRG" value="3"/>
24bf215546Sopenharmony_ci		<value name="SWAP_GRB" value="4"/>
25bf215546Sopenharmony_ci		<value name="SWAP_GBR" value="5"/>
26bf215546Sopenharmony_ci	</enum>
27bf215546Sopenharmony_ci	<enum name="dsi_cmd_trigger">
28bf215546Sopenharmony_ci		<value name="TRIGGER_NONE" value="0"/>
29bf215546Sopenharmony_ci		<value name="TRIGGER_SEOF" value="1"/>
30bf215546Sopenharmony_ci		<value name="TRIGGER_TE" value="2"/>
31bf215546Sopenharmony_ci		<value name="TRIGGER_SW" value="4"/>
32bf215546Sopenharmony_ci		<value name="TRIGGER_SW_SEOF" value="5"/>
33bf215546Sopenharmony_ci		<value name="TRIGGER_SW_TE" value="6"/>
34bf215546Sopenharmony_ci	</enum>
35bf215546Sopenharmony_ci	<enum name="dsi_cmd_dst_format">
36bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB111" value="0"/>
37bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB332" value="3"/>
38bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB444" value="4"/>
39bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB565" value="6"/>
40bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB666" value="7"/>
41bf215546Sopenharmony_ci		<value name="CMD_DST_FORMAT_RGB888" value="8"/>
42bf215546Sopenharmony_ci	</enum>
43bf215546Sopenharmony_ci	<enum name="dsi_lane_swap">
44bf215546Sopenharmony_ci		<value name="LANE_SWAP_0123" value="0"/>
45bf215546Sopenharmony_ci		<value name="LANE_SWAP_3012" value="1"/>
46bf215546Sopenharmony_ci		<value name="LANE_SWAP_2301" value="2"/>
47bf215546Sopenharmony_ci		<value name="LANE_SWAP_1230" value="3"/>
48bf215546Sopenharmony_ci		<value name="LANE_SWAP_0321" value="4"/>
49bf215546Sopenharmony_ci		<value name="LANE_SWAP_1032" value="5"/>
50bf215546Sopenharmony_ci		<value name="LANE_SWAP_2103" value="6"/>
51bf215546Sopenharmony_ci		<value name="LANE_SWAP_3210" value="7"/>
52bf215546Sopenharmony_ci	</enum>
53bf215546Sopenharmony_ci		<enum name="video_config_bpp">
54bf215546Sopenharmony_ci		<value name="VIDEO_CONFIG_18BPP" value="0"/>
55bf215546Sopenharmony_ci		<value name="VIDEO_CONFIG_24BPP" value="1"/>
56bf215546Sopenharmony_ci	</enum>
57bf215546Sopenharmony_ci	<enum name="video_pattern_sel">
58bf215546Sopenharmony_ci		<value name="VID_PRBS" value="0"/>
59bf215546Sopenharmony_ci		<value name="VID_INCREMENTAL" value="1"/>
60bf215546Sopenharmony_ci		<value name="VID_FIXED" value="2"/>
61bf215546Sopenharmony_ci		<value name="VID_MDSS_GENERAL_PATTERN" value="3"/>
62bf215546Sopenharmony_ci	</enum>
63bf215546Sopenharmony_ci	<enum name="cmd_mdp_stream0_pattern_sel">
64bf215546Sopenharmony_ci		<value name="CMD_MDP_PRBS" value="0"/>
65bf215546Sopenharmony_ci		<value name="CMD_MDP_INCREMENTAL" value="1"/>
66bf215546Sopenharmony_ci		<value name="CMD_MDP_FIXED" value="2"/>
67bf215546Sopenharmony_ci		<value name="CMD_MDP_MDSS_GENERAL_PATTERN" value="3"/>
68bf215546Sopenharmony_ci	</enum>
69bf215546Sopenharmony_ci	<enum name="cmd_dma_pattern_sel">
70bf215546Sopenharmony_ci		<value name="CMD_DMA_PRBS" value="0"/>
71bf215546Sopenharmony_ci		<value name="CMD_DMA_INCREMENTAL" value="1"/>
72bf215546Sopenharmony_ci		<value name="CMD_DMA_FIXED" value="2"/>
73bf215546Sopenharmony_ci		<value name="CMD_DMA_CUSTOM_PATTERN_DMA_FIFO" value="3"/>
74bf215546Sopenharmony_ci	</enum>
75bf215546Sopenharmony_ci	<bitset name="DSI_IRQ">
76bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_DONE" pos="0" type="boolean"/>
77bf215546Sopenharmony_ci		<bitfield name="MASK_CMD_DMA_DONE" pos="1" type="boolean"/>
78bf215546Sopenharmony_ci		<bitfield name="CMD_MDP_DONE" pos="8" type="boolean"/>
79bf215546Sopenharmony_ci		<bitfield name="MASK_CMD_MDP_DONE" pos="9" type="boolean"/>
80bf215546Sopenharmony_ci		<bitfield name="VIDEO_DONE" pos="16" type="boolean"/>
81bf215546Sopenharmony_ci		<bitfield name="MASK_VIDEO_DONE" pos="17" type="boolean"/>
82bf215546Sopenharmony_ci		<bitfield name="BTA_DONE" pos="20" type="boolean"/>
83bf215546Sopenharmony_ci		<bitfield name="MASK_BTA_DONE" pos="21" type="boolean"/>
84bf215546Sopenharmony_ci		<bitfield name="ERROR" pos="24" type="boolean"/>
85bf215546Sopenharmony_ci		<bitfield name="MASK_ERROR" pos="25" type="boolean"/>
86bf215546Sopenharmony_ci	</bitset>
87bf215546Sopenharmony_ci
88bf215546Sopenharmony_ci	<reg32 offset="0x00000" name="6G_HW_VERSION">
89bf215546Sopenharmony_ci		<bitfield name="MAJOR" low="28" high="31" type="uint"/>
90bf215546Sopenharmony_ci		<bitfield name="MINOR" low="16" high="27" type="uint"/>
91bf215546Sopenharmony_ci		<bitfield name="STEP" low="0" high="15" type="uint"/>
92bf215546Sopenharmony_ci	</reg32>
93bf215546Sopenharmony_ci
94bf215546Sopenharmony_ci	<reg32 offset="0x00000" name="CTRL">
95bf215546Sopenharmony_ci		<bitfield name="ENABLE" pos="0" type="boolean"/>
96bf215546Sopenharmony_ci		<bitfield name="VID_MODE_EN" pos="1" type="boolean"/>
97bf215546Sopenharmony_ci		<bitfield name="CMD_MODE_EN" pos="2" type="boolean"/>
98bf215546Sopenharmony_ci		<bitfield name="LANE0" pos="4" type="boolean"/>
99bf215546Sopenharmony_ci		<bitfield name="LANE1" pos="5" type="boolean"/>
100bf215546Sopenharmony_ci		<bitfield name="LANE2" pos="6" type="boolean"/>
101bf215546Sopenharmony_ci		<bitfield name="LANE3" pos="7" type="boolean"/>
102bf215546Sopenharmony_ci		<bitfield name="CLK_EN" pos="8" type="boolean"/>
103bf215546Sopenharmony_ci		<bitfield name="ECC_CHECK" pos="20" type="boolean"/>
104bf215546Sopenharmony_ci		<bitfield name="CRC_CHECK" pos="24" type="boolean"/>
105bf215546Sopenharmony_ci	</reg32>
106bf215546Sopenharmony_ci
107bf215546Sopenharmony_ci	<reg32 offset="0x00004" name="STATUS0">
108bf215546Sopenharmony_ci		<bitfield name="CMD_MODE_ENGINE_BUSY" pos="0" type="boolean"/>
109bf215546Sopenharmony_ci		<bitfield name="CMD_MODE_DMA_BUSY" pos="1" type="boolean"/>
110bf215546Sopenharmony_ci		<bitfield name="CMD_MODE_MDP_BUSY" pos="2" type="boolean"/>
111bf215546Sopenharmony_ci		<bitfield name="VIDEO_MODE_ENGINE_BUSY" pos="3" type="boolean"/>
112bf215546Sopenharmony_ci		<bitfield name="DSI_BUSY" pos="4" type="boolean"/>  <!-- see mipi_dsi_cmd_bta_sw_trigger() -->
113bf215546Sopenharmony_ci		<bitfield name="INTERLEAVE_OP_CONTENTION" pos="31" type="boolean"/>
114bf215546Sopenharmony_ci	</reg32>
115bf215546Sopenharmony_ci
116bf215546Sopenharmony_ci	<reg32 offset="0x00008" name="FIFO_STATUS">
117bf215546Sopenharmony_ci		<bitfield name="VIDEO_MDP_FIFO_OVERFLOW" pos="0" type="boolean"/>
118bf215546Sopenharmony_ci		<bitfield name="VIDEO_MDP_FIFO_UNDERFLOW" pos="3" type="boolean"/>
119bf215546Sopenharmony_ci		<bitfield name="CMD_MDP_FIFO_UNDERFLOW" pos="7" type="boolean"/>
120bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_FIFO_RD_WATERMARK_REACH" pos="8" type="boolean"/>
121bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_FIFO_WR_WATERMARK_REACH" pos="9" type="boolean"/>
122bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_FIFO_UNDERFLOW" pos="10" type="boolean"/>
123bf215546Sopenharmony_ci		<bitfield name="DLN0_LP_FIFO_EMPTY"     pos="12" type="boolean"/>
124bf215546Sopenharmony_ci		<bitfield name="DLN0_LP_FIFO_FULL"      pos="13" type="boolean"/>
125bf215546Sopenharmony_ci		<bitfield name="DLN0_LP_FIFO_OVERFLOW"  pos="14" type="boolean"/>
126bf215546Sopenharmony_ci		<bitfield name="DLN0_HS_FIFO_EMPTY"     pos="16" type="boolean"/>
127bf215546Sopenharmony_ci		<bitfield name="DLN0_HS_FIFO_FULL"      pos="17" type="boolean"/>
128bf215546Sopenharmony_ci		<bitfield name="DLN0_HS_FIFO_OVERFLOW"  pos="18" type="boolean"/>
129bf215546Sopenharmony_ci		<bitfield name="DLN0_HS_FIFO_UNDERFLOW" pos="19" type="boolean"/>
130bf215546Sopenharmony_ci		<bitfield name="DLN1_HS_FIFO_EMPTY"     pos="20" type="boolean"/>
131bf215546Sopenharmony_ci		<bitfield name="DLN1_HS_FIFO_FULL"      pos="21" type="boolean"/>
132bf215546Sopenharmony_ci		<bitfield name="DLN1_HS_FIFO_OVERFLOW"  pos="22" type="boolean"/>
133bf215546Sopenharmony_ci		<bitfield name="DLN1_HS_FIFO_UNDERFLOW" pos="23" type="boolean"/>
134bf215546Sopenharmony_ci		<bitfield name="DLN2_HS_FIFO_EMPTY"     pos="24" type="boolean"/>
135bf215546Sopenharmony_ci		<bitfield name="DLN2_HS_FIFO_FULL"      pos="25" type="boolean"/>
136bf215546Sopenharmony_ci		<bitfield name="DLN2_HS_FIFO_OVERFLOW"  pos="26" type="boolean"/>
137bf215546Sopenharmony_ci		<bitfield name="DLN2_HS_FIFO_UNDERFLOW" pos="27" type="boolean"/>
138bf215546Sopenharmony_ci		<bitfield name="DLN3_HS_FIFO_EMPTY"     pos="28" type="boolean"/>
139bf215546Sopenharmony_ci		<bitfield name="DLN3_HS_FIFO_FULL"      pos="29" type="boolean"/>
140bf215546Sopenharmony_ci		<bitfield name="DLN3_HS_FIFO_OVERFLOW"  pos="30" type="boolean"/>
141bf215546Sopenharmony_ci		<bitfield name="DLN3_HS_FIFO_UNDERFLOW" pos="31" type="boolean"/>
142bf215546Sopenharmony_ci	</reg32>
143bf215546Sopenharmony_ci	<reg32 offset="0x0000c" name="VID_CFG0">
144bf215546Sopenharmony_ci		<bitfield name="VIRT_CHANNEL" low="0" high="1" type="uint"/>  <!-- always zero? -->
145bf215546Sopenharmony_ci		<bitfield name="DST_FORMAT" low="4" high="5" type="dsi_vid_dst_format"/>
146bf215546Sopenharmony_ci		<bitfield name="TRAFFIC_MODE" low="8" high="9" type="dsi_traffic_mode"/>
147bf215546Sopenharmony_ci		<bitfield name="BLLP_POWER_STOP" pos="12" type="boolean"/>
148bf215546Sopenharmony_ci		<bitfield name="EOF_BLLP_POWER_STOP" pos="15" type="boolean"/>
149bf215546Sopenharmony_ci		<bitfield name="HSA_POWER_STOP" pos="16" type="boolean"/>
150bf215546Sopenharmony_ci		<bitfield name="HBP_POWER_STOP" pos="20" type="boolean"/>
151bf215546Sopenharmony_ci		<bitfield name="HFP_POWER_STOP" pos="24" type="boolean"/>
152bf215546Sopenharmony_ci		<bitfield name="PULSE_MODE_HSA_HE" pos="28" type="boolean"/>
153bf215546Sopenharmony_ci	</reg32>
154bf215546Sopenharmony_ci	<reg32 offset="0x0001c" name="VID_CFG1">
155bf215546Sopenharmony_ci		<bitfield name="R_SEL" pos="0" type="boolean"/>
156bf215546Sopenharmony_ci		<bitfield name="G_SEL" pos="4" type="boolean"/>
157bf215546Sopenharmony_ci		<bitfield name="B_SEL" pos="8" type="boolean"/>
158bf215546Sopenharmony_ci		<bitfield name="RGB_SWAP" low="12" high="14" type="dsi_rgb_swap"/>
159bf215546Sopenharmony_ci	</reg32>
160bf215546Sopenharmony_ci	<reg32 offset="0x00020" name="ACTIVE_H">
161bf215546Sopenharmony_ci		<bitfield name="START" low="0" high="11" type="uint"/>
162bf215546Sopenharmony_ci		<bitfield name="END" low="16" high="27" type="uint"/>
163bf215546Sopenharmony_ci	</reg32>
164bf215546Sopenharmony_ci	<reg32 offset="0x00024" name="ACTIVE_V">
165bf215546Sopenharmony_ci		<bitfield name="START" low="0" high="11" type="uint"/>
166bf215546Sopenharmony_ci		<bitfield name="END" low="16" high="27" type="uint"/>
167bf215546Sopenharmony_ci	</reg32>
168bf215546Sopenharmony_ci	<reg32 offset="0x00028" name="TOTAL">
169bf215546Sopenharmony_ci		<bitfield name="H_TOTAL" low="0" high="11" type="uint"/>
170bf215546Sopenharmony_ci		<bitfield name="V_TOTAL" low="16" high="27" type="uint"/>
171bf215546Sopenharmony_ci	</reg32>
172bf215546Sopenharmony_ci	<reg32 offset="0x0002c" name="ACTIVE_HSYNC">
173bf215546Sopenharmony_ci		<bitfield name="START" low="0" high="11" type="uint"/>
174bf215546Sopenharmony_ci		<bitfield name="END" low="16" high="27" type="uint"/>
175bf215546Sopenharmony_ci	</reg32>
176bf215546Sopenharmony_ci	<reg32 offset="0x00030" name="ACTIVE_VSYNC_HPOS">
177bf215546Sopenharmony_ci		<bitfield name="START" low="0" high="11" type="uint"/>
178bf215546Sopenharmony_ci		<bitfield name="END" low="16" high="27" type="uint"/>
179bf215546Sopenharmony_ci	</reg32>
180bf215546Sopenharmony_ci	<reg32 offset="0x00034" name="ACTIVE_VSYNC_VPOS">
181bf215546Sopenharmony_ci		<bitfield name="START" low="0" high="11" type="uint"/>
182bf215546Sopenharmony_ci		<bitfield name="END" low="16" high="27" type="uint"/>
183bf215546Sopenharmony_ci	</reg32>
184bf215546Sopenharmony_ci
185bf215546Sopenharmony_ci	<reg32 offset="0x00038" name="CMD_DMA_CTRL">
186bf215546Sopenharmony_ci		<bitfield name="BROADCAST_EN" pos="31" type="boolean"/>
187bf215546Sopenharmony_ci		<bitfield name="FROM_FRAME_BUFFER" pos="28" type="boolean"/>
188bf215546Sopenharmony_ci		<bitfield name="LOW_POWER" pos="26" type="boolean"/>
189bf215546Sopenharmony_ci	</reg32>
190bf215546Sopenharmony_ci	<reg32 offset="0x0003c" name="CMD_CFG0">
191bf215546Sopenharmony_ci		<bitfield name="DST_FORMAT" low="0" high="3" type="dsi_cmd_dst_format"/>
192bf215546Sopenharmony_ci		<bitfield name="R_SEL" pos="4" type="boolean"/>
193bf215546Sopenharmony_ci		<bitfield name="G_SEL" pos="8" type="boolean"/>
194bf215546Sopenharmony_ci		<bitfield name="B_SEL" pos="12" type="boolean"/>
195bf215546Sopenharmony_ci		<bitfield name="INTERLEAVE_MAX" low="20" high="23" type="uint"/>
196bf215546Sopenharmony_ci		<bitfield name="RGB_SWAP" low="16" high="18" type="dsi_rgb_swap"/>
197bf215546Sopenharmony_ci	</reg32>
198bf215546Sopenharmony_ci	<reg32 offset="0x00040" name="CMD_CFG1">
199bf215546Sopenharmony_ci		<bitfield name="WR_MEM_START" low="0" high="7" type="uint"/>
200bf215546Sopenharmony_ci		<bitfield name="WR_MEM_CONTINUE" low="8" high="15" type="uint"/>
201bf215546Sopenharmony_ci		<bitfield name="INSERT_DCS_COMMAND" pos="16" type="boolean"/>
202bf215546Sopenharmony_ci	</reg32>
203bf215546Sopenharmony_ci	<reg32 offset="0x00044" name="DMA_BASE"/>
204bf215546Sopenharmony_ci	<reg32 offset="0x00048" name="DMA_LEN"/>
205bf215546Sopenharmony_ci	<reg32 offset="0x00054" name="CMD_MDP_STREAM0_CTRL">
206bf215546Sopenharmony_ci		<bitfield name="DATA_TYPE" low="0" high="5" type="uint"/>
207bf215546Sopenharmony_ci		<bitfield name="VIRTUAL_CHANNEL" low="8" high="9" type="uint"/>
208bf215546Sopenharmony_ci		<bitfield name="WORD_COUNT" low="16" high="31" type="uint"/>
209bf215546Sopenharmony_ci	</reg32>
210bf215546Sopenharmony_ci	<reg32 offset="0x00058" name="CMD_MDP_STREAM0_TOTAL">
211bf215546Sopenharmony_ci		<bitfield name="H_TOTAL" low="0" high="11" type="uint"/>
212bf215546Sopenharmony_ci		<bitfield name="V_TOTAL" low="16" high="27" type="uint"/>
213bf215546Sopenharmony_ci	</reg32>
214bf215546Sopenharmony_ci	<reg32 offset="0x0005c" name="CMD_MDP_STREAM1_CTRL">
215bf215546Sopenharmony_ci		<bitfield name="DATA_TYPE" low="0" high="5" type="uint"/>
216bf215546Sopenharmony_ci		<bitfield name="VIRTUAL_CHANNEL" low="8" high="9" type="uint"/>
217bf215546Sopenharmony_ci		<bitfield name="WORD_COUNT" low="16" high="31" type="uint"/>
218bf215546Sopenharmony_ci	</reg32>
219bf215546Sopenharmony_ci	<reg32 offset="0x00060" name="CMD_MDP_STREAM1_TOTAL">
220bf215546Sopenharmony_ci		<bitfield name="H_TOTAL" low="0" high="15" type="uint"/>
221bf215546Sopenharmony_ci		<bitfield name="V_TOTAL" low="16" high="31" type="uint"/>
222bf215546Sopenharmony_ci	</reg32>
223bf215546Sopenharmony_ci	<reg32 offset="0x00064" name="ACK_ERR_STATUS"/>
224bf215546Sopenharmony_ci	<array offset="0x00068" name="RDBK" length="4" stride="4">
225bf215546Sopenharmony_ci		<reg32 offset="0x0" name="DATA"/>
226bf215546Sopenharmony_ci	</array>
227bf215546Sopenharmony_ci	<reg32 offset="0x00080" name="TRIG_CTRL">
228bf215546Sopenharmony_ci		<bitfield name="DMA_TRIGGER" low="0" high="2" type="dsi_cmd_trigger"/>
229bf215546Sopenharmony_ci		<bitfield name="MDP_TRIGGER" low="4" high="6" type="dsi_cmd_trigger"/>
230bf215546Sopenharmony_ci		<bitfield name="STREAM" low="8" high="9" type="uint"/>
231bf215546Sopenharmony_ci		<bitfield name="BLOCK_DMA_WITHIN_FRAME" pos="12" type="boolean"/>
232bf215546Sopenharmony_ci		<bitfield name="TE" pos="31" type="boolean"/>
233bf215546Sopenharmony_ci	</reg32>
234bf215546Sopenharmony_ci	<reg32 offset="0x0008c" name="TRIG_DMA"/>
235bf215546Sopenharmony_ci	<reg32 offset="0x000b0" name="DLN0_PHY_ERR">
236bf215546Sopenharmony_ci		<bitfield name="DLN0_ERR_ESC" pos="0" type="boolean"/>
237bf215546Sopenharmony_ci		<bitfield name="DLN0_ERR_SYNC_ESC" pos="4" type="boolean"/>
238bf215546Sopenharmony_ci		<bitfield name="DLN0_ERR_CONTROL" pos="8" type="boolean"/>
239bf215546Sopenharmony_ci		<bitfield name="DLN0_ERR_CONTENTION_LP0" pos="12" type="boolean"/>
240bf215546Sopenharmony_ci		<bitfield name="DLN0_ERR_CONTENTION_LP1" pos="16" type="boolean"/>
241bf215546Sopenharmony_ci	</reg32>
242bf215546Sopenharmony_ci	<reg32 offset="0x000b4" name="LP_TIMER_CTRL">
243bf215546Sopenharmony_ci		<bitfield name="LP_RX_TO" low="0" high="15" type="uint"/>
244bf215546Sopenharmony_ci		<bitfield name="BTA_TO" low="16" high="31" type="uint"/>
245bf215546Sopenharmony_ci	</reg32>
246bf215546Sopenharmony_ci	<reg32 offset="0x000b8" name="HS_TIMER_CTRL">
247bf215546Sopenharmony_ci		<bitfield name="HS_TX_TO" low="0" high="15" type="uint"/>
248bf215546Sopenharmony_ci		<bitfield name="TIMER_RESOLUTION" low="16" high="19" type="uint"/>
249bf215546Sopenharmony_ci		<bitfield name="HS_TX_TO_STOP_EN" pos="28" type="boolean"/>
250bf215546Sopenharmony_ci	</reg32>
251bf215546Sopenharmony_ci	<reg32 offset="0x000bc" name="TIMEOUT_STATUS"/>
252bf215546Sopenharmony_ci	<reg32 offset="0x000c0" name="CLKOUT_TIMING_CTRL">
253bf215546Sopenharmony_ci		<bitfield name="T_CLK_PRE" low="0" high="5" type="uint"/>
254bf215546Sopenharmony_ci		<bitfield name="T_CLK_POST" low="8" high="13" type="uint"/>
255bf215546Sopenharmony_ci	</reg32>
256bf215546Sopenharmony_ci	<reg32 offset="0x000c8" name="EOT_PACKET_CTRL">
257bf215546Sopenharmony_ci		<bitfield name="TX_EOT_APPEND" pos="0" type="boolean"/>
258bf215546Sopenharmony_ci		<bitfield name="RX_EOT_IGNORE" pos="4" type="boolean"/>
259bf215546Sopenharmony_ci	</reg32>
260bf215546Sopenharmony_ci	<reg32 offset="0x000a4" name="LANE_STATUS">
261bf215546Sopenharmony_ci		<bitfield name="DLN0_STOPSTATE" pos="0" type="boolean"/>
262bf215546Sopenharmony_ci		<bitfield name="DLN1_STOPSTATE" pos="1" type="boolean"/>
263bf215546Sopenharmony_ci		<bitfield name="DLN2_STOPSTATE" pos="2" type="boolean"/>
264bf215546Sopenharmony_ci		<bitfield name="DLN3_STOPSTATE" pos="3" type="boolean"/>
265bf215546Sopenharmony_ci		<bitfield name="CLKLN_STOPSTATE" pos="4" type="boolean"/>
266bf215546Sopenharmony_ci		<bitfield name="DLN0_ULPS_ACTIVE_NOT" pos="8" type="boolean"/>
267bf215546Sopenharmony_ci		<bitfield name="DLN1_ULPS_ACTIVE_NOT" pos="9" type="boolean"/>
268bf215546Sopenharmony_ci		<bitfield name="DLN2_ULPS_ACTIVE_NOT" pos="10" type="boolean"/>
269bf215546Sopenharmony_ci		<bitfield name="DLN3_ULPS_ACTIVE_NOT" pos="11" type="boolean"/>
270bf215546Sopenharmony_ci		<bitfield name="CLKLN_ULPS_ACTIVE_NOT" pos="12" type="boolean"/>
271bf215546Sopenharmony_ci		<bitfield name="DLN0_DIRECTION" pos="16" type="boolean"/>
272bf215546Sopenharmony_ci	</reg32>
273bf215546Sopenharmony_ci	<reg32 offset="0x000a8" name="LANE_CTRL">
274bf215546Sopenharmony_ci		<bitfield name="HS_REQ_SEL_PHY" pos="24" type="boolean"/>
275bf215546Sopenharmony_ci		<bitfield name="CLKLN_HS_FORCE_REQUEST" pos="28" type="boolean"/>
276bf215546Sopenharmony_ci	</reg32>
277bf215546Sopenharmony_ci	<reg32 offset="0x000ac" name="LANE_SWAP_CTRL">
278bf215546Sopenharmony_ci		<bitfield name="DLN_SWAP_SEL" low="0" high="2" type="dsi_lane_swap"/>
279bf215546Sopenharmony_ci	</reg32>
280bf215546Sopenharmony_ci	<reg32 offset="0x00108" name="ERR_INT_MASK0"/>
281bf215546Sopenharmony_ci	<reg32 offset="0x0010c" name="INTR_CTRL" type="DSI_IRQ"/>
282bf215546Sopenharmony_ci	<reg32 offset="0x00114" name="RESET"/>
283bf215546Sopenharmony_ci	<reg32 offset="0x00118" name="CLK_CTRL">
284bf215546Sopenharmony_ci		<bitfield name="AHBS_HCLK_ON" pos="0" type="boolean"/>
285bf215546Sopenharmony_ci		<bitfield name="AHBM_SCLK_ON" pos="1" type="boolean"/>
286bf215546Sopenharmony_ci		<bitfield name="PCLK_ON" pos="2" type="boolean"/>
287bf215546Sopenharmony_ci		<bitfield name="DSICLK_ON" pos="3" type="boolean"/>
288bf215546Sopenharmony_ci		<bitfield name="BYTECLK_ON" pos="4" type="boolean"/>
289bf215546Sopenharmony_ci		<bitfield name="ESCCLK_ON" pos="5" type="boolean"/>
290bf215546Sopenharmony_ci		<bitfield name="FORCE_ON_DYN_AHBM_HCLK" pos="9" type="boolean"/>
291bf215546Sopenharmony_ci	</reg32>
292bf215546Sopenharmony_ci	<reg32 offset="0x0011c" name="CLK_STATUS">
293bf215546Sopenharmony_ci		<bitfield name="DSI_AON_AHBM_HCLK_ACTIVE" pos="0" type="boolean"/>
294bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_AHBM_HCLK_ACTIVE" pos="1" type="boolean"/>
295bf215546Sopenharmony_ci		<bitfield name="DSI_AON_AHBS_HCLK_ACTIVE" pos="2" type="boolean"/>
296bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_AHBS_HCLK_ACTIVE" pos="3" type="boolean"/>
297bf215546Sopenharmony_ci		<bitfield name="DSI_AON_DSICLK_ACTIVE" pos="4" type="boolean"/>
298bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_DSICLK_ACTIVE" pos="5" type="boolean"/>
299bf215546Sopenharmony_ci		<bitfield name="DSI_AON_BYTECLK_ACTIVE" pos="6" type="boolean"/>
300bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_BYTECLK_ACTIVE" pos="7" type="boolean"/>
301bf215546Sopenharmony_ci		<bitfield name="DSI_AON_ESCCLK_ACTIVE" pos="8" type="boolean"/>
302bf215546Sopenharmony_ci		<bitfield name="DSI_AON_PCLK_ACTIVE" pos="9" type="boolean"/>
303bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_PCLK_ACTIVE" pos="10" type="boolean"/>
304bf215546Sopenharmony_ci		<bitfield name="DSI_DYN_CMD_PCLK_ACTIVE" pos="12" type="boolean"/>
305bf215546Sopenharmony_ci		<bitfield name="DSI_CMD_PCLK_ACTIVE" pos="13" type="boolean"/>
306bf215546Sopenharmony_ci		<bitfield name="DSI_VID_PCLK_ACTIVE" pos="14" type="boolean"/>
307bf215546Sopenharmony_ci		<bitfield name="DSI_CAM_BIST_PCLK_ACT" pos="15" type="boolean"/>
308bf215546Sopenharmony_ci		<bitfield name="PLL_UNLOCKED" pos="16" type="boolean"/>
309bf215546Sopenharmony_ci	</reg32>
310bf215546Sopenharmony_ci	<reg32 offset="0x00128" name="PHY_RESET">
311bf215546Sopenharmony_ci		<bitfield name="RESET" pos="0" type="boolean"/>
312bf215546Sopenharmony_ci	</reg32>
313bf215546Sopenharmony_ci	<reg32 offset="0x00160" name="TEST_PATTERN_GEN_VIDEO_INIT_VAL"/>
314bf215546Sopenharmony_ci	<reg32 offset="0x00198" name="TPG_MAIN_CONTROL">
315bf215546Sopenharmony_ci		<bitfield name="CHECKERED_RECTANGLE_PATTERN" pos="8" type="boolean"/>
316bf215546Sopenharmony_ci	</reg32>
317bf215546Sopenharmony_ci	<reg32 offset="0x001a0" name="TPG_VIDEO_CONFIG">
318bf215546Sopenharmony_ci		<bitfield name="BPP" low="0" high="1" type="video_config_bpp"/>
319bf215546Sopenharmony_ci		<bitfield name="RGB" pos="2" type="boolean"/>
320bf215546Sopenharmony_ci	</reg32>
321bf215546Sopenharmony_ci	<reg32 offset="0x00158" name="TEST_PATTERN_GEN_CTRL">
322bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_PATTERN_SEL" low="16" high="17" type="cmd_dma_pattern_sel"/>
323bf215546Sopenharmony_ci		<bitfield name="CMD_MDP_STREAM0_PATTERN_SEL" low="8" high="9" type="cmd_mdp_stream0_pattern_sel"/>
324bf215546Sopenharmony_ci		<bitfield name="VIDEO_PATTERN_SEL" low="4" high="5" type="video_pattern_sel"/>
325bf215546Sopenharmony_ci		<bitfield name="TPG_DMA_FIFO_MODE" pos="2" type="boolean"/>
326bf215546Sopenharmony_ci		<bitfield name="CMD_DMA_TPG_EN" pos="1" type="boolean"/>
327bf215546Sopenharmony_ci		<bitfield name="EN" pos="0" type="boolean"/>
328bf215546Sopenharmony_ci	</reg32>
329bf215546Sopenharmony_ci	<reg32 offset="0x00168" name="TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0"/>
330bf215546Sopenharmony_ci	<reg32 offset="0x00180" name="TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER">
331bf215546Sopenharmony_ci		<bitfield name="SW_TRIGGER" pos="0" type="boolean"/>
332bf215546Sopenharmony_ci	</reg32>
333bf215546Sopenharmony_ci	<reg32 offset="0x0019c" name="TPG_MAIN_CONTROL2">
334bf215546Sopenharmony_ci		<bitfield name="CMD_MDP0_CHECKERED_RECTANGLE_PATTERN" pos="7" type="boolean"/>
335bf215546Sopenharmony_ci		<bitfield name="CMD_MDP1_CHECKERED_RECTANGLE_PATTERN" pos="16" type="boolean"/>
336bf215546Sopenharmony_ci		<bitfield name="CMD_MDP2_CHECKERED_RECTANGLE_PATTERN" pos="25" type="boolean"/>
337bf215546Sopenharmony_ci	</reg32>
338bf215546Sopenharmony_ci	<reg32 offset="0x0017c" name="T_CLK_PRE_EXTEND">
339bf215546Sopenharmony_ci		<bitfield name="INC_BY_2_BYTECLK" pos="0" type="boolean"/>
340bf215546Sopenharmony_ci	</reg32>
341bf215546Sopenharmony_ci	<reg32 offset="0x001b4" name="CMD_MODE_MDP_CTRL2">
342bf215546Sopenharmony_ci		<bitfield name="DST_FORMAT2" low="0" high="3" type="dsi_cmd_dst_format"/>
343bf215546Sopenharmony_ci		<bitfield name="R_SEL" pos="4" type="boolean"/>
344bf215546Sopenharmony_ci		<bitfield name="G_SEL" pos="5" type="boolean"/>
345bf215546Sopenharmony_ci		<bitfield name="B_SEL" pos="6" type="boolean"/>
346bf215546Sopenharmony_ci		<bitfield name="BYTE_MSB_LSB_FLIP" pos="7" type="boolean"/>
347bf215546Sopenharmony_ci		<bitfield name="RGB_SWAP" low="8" high="10" type="dsi_rgb_swap"/>
348bf215546Sopenharmony_ci		<bitfield name="INPUT_RGB_SWAP" low="12" high="14" type="dsi_rgb_swap"/>
349bf215546Sopenharmony_ci		<bitfield name="BURST_MODE" pos="16" type="boolean"/>
350bf215546Sopenharmony_ci	</reg32>
351bf215546Sopenharmony_ci	<reg32 offset="0x001b8" name="CMD_MODE_MDP_STREAM2_CTRL">
352bf215546Sopenharmony_ci		<bitfield name="DATA_TYPE" low="0" high="5" type="uint"/>
353bf215546Sopenharmony_ci		<bitfield name="VIRTUAL_CHANNEL" low="8" high="9" type="uint"/>
354bf215546Sopenharmony_ci		<bitfield name="WORD_COUNT" low="16" high="31" type="uint"/>
355bf215546Sopenharmony_ci	</reg32>
356bf215546Sopenharmony_ci	<reg32 offset="0x001d0" name="RDBK_DATA_CTRL">
357bf215546Sopenharmony_ci		<bitfield name="COUNT" low="16" high="23" type="uint"/>
358bf215546Sopenharmony_ci		<bitfield name="CLR" pos="0" type="boolean"/>
359bf215546Sopenharmony_ci	</reg32>
360bf215546Sopenharmony_ci	<reg32 offset="0x001f0" name="VERSION">
361bf215546Sopenharmony_ci		<bitfield name="MAJOR" low="24" high="31" type="uint"/>
362bf215546Sopenharmony_ci	</reg32>
363bf215546Sopenharmony_ci	<reg32 offset="0x002d4" name="CPHY_MODE_CTRL"/>
364bf215546Sopenharmony_ci	<reg32 offset="0x0029c" name="VIDEO_COMPRESSION_MODE_CTRL">
365bf215546Sopenharmony_ci		<bitfield name="WC" low="16" high="31" type="uint"/>
366bf215546Sopenharmony_ci		<bitfield name="DATATYPE" low="8" high="13" type="uint"/>
367bf215546Sopenharmony_ci		<bitfield name="PKT_PER_LINE" low="6" high="7" type="uint"/>
368bf215546Sopenharmony_ci		<bitfield name="EOL_BYTE_NUM" low="4" high="5" type="uint"/>
369bf215546Sopenharmony_ci		<bitfield name="EN" pos="0" type="boolean"/>
370bf215546Sopenharmony_ci	</reg32>
371bf215546Sopenharmony_ci	<reg32 offset="0x002a4" name="COMMAND_COMPRESSION_MODE_CTRL">
372bf215546Sopenharmony_ci		<bitfield name="STREAM1_DATATYPE" low="24" high="29" type="uint"/>
373bf215546Sopenharmony_ci		<bitfield name="STREAM1_PKT_PER_LINE" low="22" high="23" type="uint"/>
374bf215546Sopenharmony_ci		<bitfield name="STREAM1_EOL_BYTE_NUM" low="20" high="21" type="uint"/>
375bf215546Sopenharmony_ci		<bitfield name="STREAM1_EN" pos="16" type="boolean"/>
376bf215546Sopenharmony_ci		<bitfield name="STREAM0_DATATYPE" low="8" high="13" type="uint"/>
377bf215546Sopenharmony_ci		<bitfield name="STREAM0_PKT_PER_LINE" low="6" high="7" type="uint"/>
378bf215546Sopenharmony_ci		<bitfield name="STREAM0_EOL_BYTE_NUM" low="4" high="5" type="uint"/>
379bf215546Sopenharmony_ci		<bitfield name="STREAM0_EN" pos="0" type="boolean"/>
380bf215546Sopenharmony_ci	</reg32>
381bf215546Sopenharmony_ci	<reg32 offset="0x002a8" name="COMMAND_COMPRESSION_MODE_CTRL2">
382bf215546Sopenharmony_ci		<bitfield name="STREAM1_SLICE_WIDTH" low="16" high="31" type="uint"/>
383bf215546Sopenharmony_ci		<bitfield name="STREAM0_SLICE_WIDTH" low="0" high="15" type="uint"/>
384bf215546Sopenharmony_ci	</reg32>
385bf215546Sopenharmony_ci
386bf215546Sopenharmony_ci</domain>
387bf215546Sopenharmony_ci
388bf215546Sopenharmony_ci</database>
389