18c2ecf20Sopenharmony_ci#ifndef DSI_XML
28c2ecf20Sopenharmony_ci#define DSI_XML
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/* Autogenerated file, DO NOT EDIT manually!
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciThis file was generated by the rules-ng-ng headergen tool in this git repository:
78c2ecf20Sopenharmony_cihttp://github.com/freedreno/envytools/
88c2ecf20Sopenharmony_cigit clone https://github.com/freedreno/envytools.git
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciThe rules-ng-ng source files this header was generated from are:
118c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/msm.xml                 (    676 bytes, from 2020-07-23 21:58:14)
128c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/freedreno_copyright.xml (   1572 bytes, from 2020-07-23 21:58:14)
138c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/mdp/mdp4.xml            (  20915 bytes, from 2020-07-23 21:58:14)
148c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/mdp/mdp_common.xml      (   2849 bytes, from 2020-07-23 21:58:14)
158c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/mdp/mdp5.xml            (  37411 bytes, from 2020-07-23 21:58:14)
168c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/dsi/dsi.xml             (  42301 bytes, from 2020-07-23 21:58:14)
178c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/dsi/sfpb.xml            (    602 bytes, from 2020-07-23 21:58:14)
188c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/dsi/mmss_cc.xml         (   1686 bytes, from 2020-07-23 21:58:14)
198c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/hdmi/qfprom.xml         (    600 bytes, from 2020-07-23 21:58:14)
208c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/hdmi/hdmi.xml           (  41874 bytes, from 2020-07-23 21:58:14)
218c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/edp/edp.xml             (  10416 bytes, from 2020-07-23 21:58:14)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciCopyright (C) 2013-2020 by the following authors:
248c2ecf20Sopenharmony_ci- Rob Clark <robdclark@gmail.com> (robclark)
258c2ecf20Sopenharmony_ci- Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining
288c2ecf20Sopenharmony_cia copy of this software and associated documentation files (the
298c2ecf20Sopenharmony_ci"Software"), to deal in the Software without restriction, including
308c2ecf20Sopenharmony_ciwithout limitation the rights to use, copy, modify, merge, publish,
318c2ecf20Sopenharmony_cidistribute, sublicense, and/or sell copies of the Software, and to
328c2ecf20Sopenharmony_cipermit persons to whom the Software is furnished to do so, subject to
338c2ecf20Sopenharmony_cithe following conditions:
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciThe above copyright notice and this permission notice (including the
368c2ecf20Sopenharmony_cinext paragraph) shall be included in all copies or substantial
378c2ecf20Sopenharmony_ciportions of the Software.
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
408c2ecf20Sopenharmony_ciEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
418c2ecf20Sopenharmony_ciMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
428c2ecf20Sopenharmony_ciIN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
438c2ecf20Sopenharmony_ciLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
448c2ecf20Sopenharmony_ciOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
458c2ecf20Sopenharmony_ciWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
468c2ecf20Sopenharmony_ci*/
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_cienum dsi_traffic_mode {
508c2ecf20Sopenharmony_ci	NON_BURST_SYNCH_PULSE = 0,
518c2ecf20Sopenharmony_ci	NON_BURST_SYNCH_EVENT = 1,
528c2ecf20Sopenharmony_ci	BURST_MODE = 2,
538c2ecf20Sopenharmony_ci};
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_cienum dsi_vid_dst_format {
568c2ecf20Sopenharmony_ci	VID_DST_FORMAT_RGB565 = 0,
578c2ecf20Sopenharmony_ci	VID_DST_FORMAT_RGB666 = 1,
588c2ecf20Sopenharmony_ci	VID_DST_FORMAT_RGB666_LOOSE = 2,
598c2ecf20Sopenharmony_ci	VID_DST_FORMAT_RGB888 = 3,
608c2ecf20Sopenharmony_ci};
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_cienum dsi_rgb_swap {
638c2ecf20Sopenharmony_ci	SWAP_RGB = 0,
648c2ecf20Sopenharmony_ci	SWAP_RBG = 1,
658c2ecf20Sopenharmony_ci	SWAP_BGR = 2,
668c2ecf20Sopenharmony_ci	SWAP_BRG = 3,
678c2ecf20Sopenharmony_ci	SWAP_GRB = 4,
688c2ecf20Sopenharmony_ci	SWAP_GBR = 5,
698c2ecf20Sopenharmony_ci};
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_cienum dsi_cmd_trigger {
728c2ecf20Sopenharmony_ci	TRIGGER_NONE = 0,
738c2ecf20Sopenharmony_ci	TRIGGER_SEOF = 1,
748c2ecf20Sopenharmony_ci	TRIGGER_TE = 2,
758c2ecf20Sopenharmony_ci	TRIGGER_SW = 4,
768c2ecf20Sopenharmony_ci	TRIGGER_SW_SEOF = 5,
778c2ecf20Sopenharmony_ci	TRIGGER_SW_TE = 6,
788c2ecf20Sopenharmony_ci};
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_cienum dsi_cmd_dst_format {
818c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB111 = 0,
828c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB332 = 3,
838c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB444 = 4,
848c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB565 = 6,
858c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB666 = 7,
868c2ecf20Sopenharmony_ci	CMD_DST_FORMAT_RGB888 = 8,
878c2ecf20Sopenharmony_ci};
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_cienum dsi_lane_swap {
908c2ecf20Sopenharmony_ci	LANE_SWAP_0123 = 0,
918c2ecf20Sopenharmony_ci	LANE_SWAP_3012 = 1,
928c2ecf20Sopenharmony_ci	LANE_SWAP_2301 = 2,
938c2ecf20Sopenharmony_ci	LANE_SWAP_1230 = 3,
948c2ecf20Sopenharmony_ci	LANE_SWAP_0321 = 4,
958c2ecf20Sopenharmony_ci	LANE_SWAP_1032 = 5,
968c2ecf20Sopenharmony_ci	LANE_SWAP_2103 = 6,
978c2ecf20Sopenharmony_ci	LANE_SWAP_3210 = 7,
988c2ecf20Sopenharmony_ci};
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci#define DSI_IRQ_CMD_DMA_DONE					0x00000001
1018c2ecf20Sopenharmony_ci#define DSI_IRQ_MASK_CMD_DMA_DONE				0x00000002
1028c2ecf20Sopenharmony_ci#define DSI_IRQ_CMD_MDP_DONE					0x00000100
1038c2ecf20Sopenharmony_ci#define DSI_IRQ_MASK_CMD_MDP_DONE				0x00000200
1048c2ecf20Sopenharmony_ci#define DSI_IRQ_VIDEO_DONE					0x00010000
1058c2ecf20Sopenharmony_ci#define DSI_IRQ_MASK_VIDEO_DONE					0x00020000
1068c2ecf20Sopenharmony_ci#define DSI_IRQ_BTA_DONE					0x00100000
1078c2ecf20Sopenharmony_ci#define DSI_IRQ_MASK_BTA_DONE					0x00200000
1088c2ecf20Sopenharmony_ci#define DSI_IRQ_ERROR						0x01000000
1098c2ecf20Sopenharmony_ci#define DSI_IRQ_MASK_ERROR					0x02000000
1108c2ecf20Sopenharmony_ci#define REG_DSI_6G_HW_VERSION					0x00000000
1118c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_MAJOR__MASK				0xf0000000
1128c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_MAJOR__SHIFT				28
1138c2ecf20Sopenharmony_cistatic inline uint32_t DSI_6G_HW_VERSION_MAJOR(uint32_t val)
1148c2ecf20Sopenharmony_ci{
1158c2ecf20Sopenharmony_ci	return ((val) << DSI_6G_HW_VERSION_MAJOR__SHIFT) & DSI_6G_HW_VERSION_MAJOR__MASK;
1168c2ecf20Sopenharmony_ci}
1178c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_MINOR__MASK				0x0fff0000
1188c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_MINOR__SHIFT				16
1198c2ecf20Sopenharmony_cistatic inline uint32_t DSI_6G_HW_VERSION_MINOR(uint32_t val)
1208c2ecf20Sopenharmony_ci{
1218c2ecf20Sopenharmony_ci	return ((val) << DSI_6G_HW_VERSION_MINOR__SHIFT) & DSI_6G_HW_VERSION_MINOR__MASK;
1228c2ecf20Sopenharmony_ci}
1238c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_STEP__MASK				0x0000ffff
1248c2ecf20Sopenharmony_ci#define DSI_6G_HW_VERSION_STEP__SHIFT				0
1258c2ecf20Sopenharmony_cistatic inline uint32_t DSI_6G_HW_VERSION_STEP(uint32_t val)
1268c2ecf20Sopenharmony_ci{
1278c2ecf20Sopenharmony_ci	return ((val) << DSI_6G_HW_VERSION_STEP__SHIFT) & DSI_6G_HW_VERSION_STEP__MASK;
1288c2ecf20Sopenharmony_ci}
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci#define REG_DSI_CTRL						0x00000000
1318c2ecf20Sopenharmony_ci#define DSI_CTRL_ENABLE						0x00000001
1328c2ecf20Sopenharmony_ci#define DSI_CTRL_VID_MODE_EN					0x00000002
1338c2ecf20Sopenharmony_ci#define DSI_CTRL_CMD_MODE_EN					0x00000004
1348c2ecf20Sopenharmony_ci#define DSI_CTRL_LANE0						0x00000010
1358c2ecf20Sopenharmony_ci#define DSI_CTRL_LANE1						0x00000020
1368c2ecf20Sopenharmony_ci#define DSI_CTRL_LANE2						0x00000040
1378c2ecf20Sopenharmony_ci#define DSI_CTRL_LANE3						0x00000080
1388c2ecf20Sopenharmony_ci#define DSI_CTRL_CLK_EN						0x00000100
1398c2ecf20Sopenharmony_ci#define DSI_CTRL_ECC_CHECK					0x00100000
1408c2ecf20Sopenharmony_ci#define DSI_CTRL_CRC_CHECK					0x01000000
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci#define REG_DSI_STATUS0						0x00000004
1438c2ecf20Sopenharmony_ci#define DSI_STATUS0_CMD_MODE_ENGINE_BUSY			0x00000001
1448c2ecf20Sopenharmony_ci#define DSI_STATUS0_CMD_MODE_DMA_BUSY				0x00000002
1458c2ecf20Sopenharmony_ci#define DSI_STATUS0_CMD_MODE_MDP_BUSY				0x00000004
1468c2ecf20Sopenharmony_ci#define DSI_STATUS0_VIDEO_MODE_ENGINE_BUSY			0x00000008
1478c2ecf20Sopenharmony_ci#define DSI_STATUS0_DSI_BUSY					0x00000010
1488c2ecf20Sopenharmony_ci#define DSI_STATUS0_INTERLEAVE_OP_CONTENTION			0x80000000
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci#define REG_DSI_FIFO_STATUS					0x00000008
1518c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_VIDEO_MDP_FIFO_OVERFLOW			0x00000001
1528c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_VIDEO_MDP_FIFO_UNDERFLOW		0x00000008
1538c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_CMD_MDP_FIFO_UNDERFLOW			0x00000080
1548c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_CMD_DMA_FIFO_RD_WATERMARK_REACH		0x00000100
1558c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_CMD_DMA_FIFO_WR_WATERMARK_REACH		0x00000200
1568c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_CMD_DMA_FIFO_UNDERFLOW			0x00000400
1578c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_LP_FIFO_EMPTY			0x00001000
1588c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_LP_FIFO_FULL			0x00002000
1598c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_LP_FIFO_OVERFLOW			0x00004000
1608c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_HS_FIFO_EMPTY			0x00010000
1618c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_HS_FIFO_FULL			0x00020000
1628c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_HS_FIFO_OVERFLOW			0x00040000
1638c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN0_HS_FIFO_UNDERFLOW			0x00080000
1648c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN1_HS_FIFO_EMPTY			0x00100000
1658c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN1_HS_FIFO_FULL			0x00200000
1668c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN1_HS_FIFO_OVERFLOW			0x00400000
1678c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN1_HS_FIFO_UNDERFLOW			0x00800000
1688c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN2_HS_FIFO_EMPTY			0x01000000
1698c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN2_HS_FIFO_FULL			0x02000000
1708c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN2_HS_FIFO_OVERFLOW			0x04000000
1718c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN2_HS_FIFO_UNDERFLOW			0x08000000
1728c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN3_HS_FIFO_EMPTY			0x10000000
1738c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN3_HS_FIFO_FULL			0x20000000
1748c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN3_HS_FIFO_OVERFLOW			0x40000000
1758c2ecf20Sopenharmony_ci#define DSI_FIFO_STATUS_DLN3_HS_FIFO_UNDERFLOW			0x80000000
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci#define REG_DSI_VID_CFG0					0x0000000c
1788c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_VIRT_CHANNEL__MASK				0x00000003
1798c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_VIRT_CHANNEL__SHIFT			0
1808c2ecf20Sopenharmony_cistatic inline uint32_t DSI_VID_CFG0_VIRT_CHANNEL(uint32_t val)
1818c2ecf20Sopenharmony_ci{
1828c2ecf20Sopenharmony_ci	return ((val) << DSI_VID_CFG0_VIRT_CHANNEL__SHIFT) & DSI_VID_CFG0_VIRT_CHANNEL__MASK;
1838c2ecf20Sopenharmony_ci}
1848c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_DST_FORMAT__MASK				0x00000030
1858c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_DST_FORMAT__SHIFT				4
1868c2ecf20Sopenharmony_cistatic inline uint32_t DSI_VID_CFG0_DST_FORMAT(enum dsi_vid_dst_format val)
1878c2ecf20Sopenharmony_ci{
1888c2ecf20Sopenharmony_ci	return ((val) << DSI_VID_CFG0_DST_FORMAT__SHIFT) & DSI_VID_CFG0_DST_FORMAT__MASK;
1898c2ecf20Sopenharmony_ci}
1908c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_TRAFFIC_MODE__MASK				0x00000300
1918c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_TRAFFIC_MODE__SHIFT			8
1928c2ecf20Sopenharmony_cistatic inline uint32_t DSI_VID_CFG0_TRAFFIC_MODE(enum dsi_traffic_mode val)
1938c2ecf20Sopenharmony_ci{
1948c2ecf20Sopenharmony_ci	return ((val) << DSI_VID_CFG0_TRAFFIC_MODE__SHIFT) & DSI_VID_CFG0_TRAFFIC_MODE__MASK;
1958c2ecf20Sopenharmony_ci}
1968c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_BLLP_POWER_STOP				0x00001000
1978c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_EOF_BLLP_POWER_STOP			0x00008000
1988c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_HSA_POWER_STOP				0x00010000
1998c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_HBP_POWER_STOP				0x00100000
2008c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_HFP_POWER_STOP				0x01000000
2018c2ecf20Sopenharmony_ci#define DSI_VID_CFG0_PULSE_MODE_HSA_HE				0x10000000
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci#define REG_DSI_VID_CFG1					0x0000001c
2048c2ecf20Sopenharmony_ci#define DSI_VID_CFG1_R_SEL					0x00000001
2058c2ecf20Sopenharmony_ci#define DSI_VID_CFG1_G_SEL					0x00000010
2068c2ecf20Sopenharmony_ci#define DSI_VID_CFG1_B_SEL					0x00000100
2078c2ecf20Sopenharmony_ci#define DSI_VID_CFG1_RGB_SWAP__MASK				0x00007000
2088c2ecf20Sopenharmony_ci#define DSI_VID_CFG1_RGB_SWAP__SHIFT				12
2098c2ecf20Sopenharmony_cistatic inline uint32_t DSI_VID_CFG1_RGB_SWAP(enum dsi_rgb_swap val)
2108c2ecf20Sopenharmony_ci{
2118c2ecf20Sopenharmony_ci	return ((val) << DSI_VID_CFG1_RGB_SWAP__SHIFT) & DSI_VID_CFG1_RGB_SWAP__MASK;
2128c2ecf20Sopenharmony_ci}
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci#define REG_DSI_ACTIVE_H					0x00000020
2158c2ecf20Sopenharmony_ci#define DSI_ACTIVE_H_START__MASK				0x00000fff
2168c2ecf20Sopenharmony_ci#define DSI_ACTIVE_H_START__SHIFT				0
2178c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_H_START(uint32_t val)
2188c2ecf20Sopenharmony_ci{
2198c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_H_START__SHIFT) & DSI_ACTIVE_H_START__MASK;
2208c2ecf20Sopenharmony_ci}
2218c2ecf20Sopenharmony_ci#define DSI_ACTIVE_H_END__MASK					0x0fff0000
2228c2ecf20Sopenharmony_ci#define DSI_ACTIVE_H_END__SHIFT					16
2238c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_H_END(uint32_t val)
2248c2ecf20Sopenharmony_ci{
2258c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_H_END__SHIFT) & DSI_ACTIVE_H_END__MASK;
2268c2ecf20Sopenharmony_ci}
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci#define REG_DSI_ACTIVE_V					0x00000024
2298c2ecf20Sopenharmony_ci#define DSI_ACTIVE_V_START__MASK				0x00000fff
2308c2ecf20Sopenharmony_ci#define DSI_ACTIVE_V_START__SHIFT				0
2318c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_V_START(uint32_t val)
2328c2ecf20Sopenharmony_ci{
2338c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_V_START__SHIFT) & DSI_ACTIVE_V_START__MASK;
2348c2ecf20Sopenharmony_ci}
2358c2ecf20Sopenharmony_ci#define DSI_ACTIVE_V_END__MASK					0x0fff0000
2368c2ecf20Sopenharmony_ci#define DSI_ACTIVE_V_END__SHIFT					16
2378c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_V_END(uint32_t val)
2388c2ecf20Sopenharmony_ci{
2398c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_V_END__SHIFT) & DSI_ACTIVE_V_END__MASK;
2408c2ecf20Sopenharmony_ci}
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci#define REG_DSI_TOTAL						0x00000028
2438c2ecf20Sopenharmony_ci#define DSI_TOTAL_H_TOTAL__MASK					0x00000fff
2448c2ecf20Sopenharmony_ci#define DSI_TOTAL_H_TOTAL__SHIFT				0
2458c2ecf20Sopenharmony_cistatic inline uint32_t DSI_TOTAL_H_TOTAL(uint32_t val)
2468c2ecf20Sopenharmony_ci{
2478c2ecf20Sopenharmony_ci	return ((val) << DSI_TOTAL_H_TOTAL__SHIFT) & DSI_TOTAL_H_TOTAL__MASK;
2488c2ecf20Sopenharmony_ci}
2498c2ecf20Sopenharmony_ci#define DSI_TOTAL_V_TOTAL__MASK					0x0fff0000
2508c2ecf20Sopenharmony_ci#define DSI_TOTAL_V_TOTAL__SHIFT				16
2518c2ecf20Sopenharmony_cistatic inline uint32_t DSI_TOTAL_V_TOTAL(uint32_t val)
2528c2ecf20Sopenharmony_ci{
2538c2ecf20Sopenharmony_ci	return ((val) << DSI_TOTAL_V_TOTAL__SHIFT) & DSI_TOTAL_V_TOTAL__MASK;
2548c2ecf20Sopenharmony_ci}
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci#define REG_DSI_ACTIVE_HSYNC					0x0000002c
2578c2ecf20Sopenharmony_ci#define DSI_ACTIVE_HSYNC_START__MASK				0x00000fff
2588c2ecf20Sopenharmony_ci#define DSI_ACTIVE_HSYNC_START__SHIFT				0
2598c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_HSYNC_START(uint32_t val)
2608c2ecf20Sopenharmony_ci{
2618c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_HSYNC_START__SHIFT) & DSI_ACTIVE_HSYNC_START__MASK;
2628c2ecf20Sopenharmony_ci}
2638c2ecf20Sopenharmony_ci#define DSI_ACTIVE_HSYNC_END__MASK				0x0fff0000
2648c2ecf20Sopenharmony_ci#define DSI_ACTIVE_HSYNC_END__SHIFT				16
2658c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_HSYNC_END(uint32_t val)
2668c2ecf20Sopenharmony_ci{
2678c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_HSYNC_END__SHIFT) & DSI_ACTIVE_HSYNC_END__MASK;
2688c2ecf20Sopenharmony_ci}
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci#define REG_DSI_ACTIVE_VSYNC_HPOS				0x00000030
2718c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_HPOS_START__MASK			0x00000fff
2728c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_HPOS_START__SHIFT			0
2738c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_VSYNC_HPOS_START(uint32_t val)
2748c2ecf20Sopenharmony_ci{
2758c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_VSYNC_HPOS_START__SHIFT) & DSI_ACTIVE_VSYNC_HPOS_START__MASK;
2768c2ecf20Sopenharmony_ci}
2778c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_HPOS_END__MASK				0x0fff0000
2788c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_HPOS_END__SHIFT			16
2798c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_VSYNC_HPOS_END(uint32_t val)
2808c2ecf20Sopenharmony_ci{
2818c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_VSYNC_HPOS_END__SHIFT) & DSI_ACTIVE_VSYNC_HPOS_END__MASK;
2828c2ecf20Sopenharmony_ci}
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci#define REG_DSI_ACTIVE_VSYNC_VPOS				0x00000034
2858c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_VPOS_START__MASK			0x00000fff
2868c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_VPOS_START__SHIFT			0
2878c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_VSYNC_VPOS_START(uint32_t val)
2888c2ecf20Sopenharmony_ci{
2898c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_VSYNC_VPOS_START__SHIFT) & DSI_ACTIVE_VSYNC_VPOS_START__MASK;
2908c2ecf20Sopenharmony_ci}
2918c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_VPOS_END__MASK				0x0fff0000
2928c2ecf20Sopenharmony_ci#define DSI_ACTIVE_VSYNC_VPOS_END__SHIFT			16
2938c2ecf20Sopenharmony_cistatic inline uint32_t DSI_ACTIVE_VSYNC_VPOS_END(uint32_t val)
2948c2ecf20Sopenharmony_ci{
2958c2ecf20Sopenharmony_ci	return ((val) << DSI_ACTIVE_VSYNC_VPOS_END__SHIFT) & DSI_ACTIVE_VSYNC_VPOS_END__MASK;
2968c2ecf20Sopenharmony_ci}
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci#define REG_DSI_CMD_DMA_CTRL					0x00000038
2998c2ecf20Sopenharmony_ci#define DSI_CMD_DMA_CTRL_BROADCAST_EN				0x80000000
3008c2ecf20Sopenharmony_ci#define DSI_CMD_DMA_CTRL_FROM_FRAME_BUFFER			0x10000000
3018c2ecf20Sopenharmony_ci#define DSI_CMD_DMA_CTRL_LOW_POWER				0x04000000
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ci#define REG_DSI_CMD_CFG0					0x0000003c
3048c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_DST_FORMAT__MASK				0x0000000f
3058c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_DST_FORMAT__SHIFT				0
3068c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_CFG0_DST_FORMAT(enum dsi_cmd_dst_format val)
3078c2ecf20Sopenharmony_ci{
3088c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_CFG0_DST_FORMAT__SHIFT) & DSI_CMD_CFG0_DST_FORMAT__MASK;
3098c2ecf20Sopenharmony_ci}
3108c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_R_SEL					0x00000010
3118c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_G_SEL					0x00000100
3128c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_B_SEL					0x00001000
3138c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_INTERLEAVE_MAX__MASK			0x00f00000
3148c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_INTERLEAVE_MAX__SHIFT			20
3158c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_CFG0_INTERLEAVE_MAX(uint32_t val)
3168c2ecf20Sopenharmony_ci{
3178c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_CFG0_INTERLEAVE_MAX__SHIFT) & DSI_CMD_CFG0_INTERLEAVE_MAX__MASK;
3188c2ecf20Sopenharmony_ci}
3198c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_RGB_SWAP__MASK				0x00070000
3208c2ecf20Sopenharmony_ci#define DSI_CMD_CFG0_RGB_SWAP__SHIFT				16
3218c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_CFG0_RGB_SWAP(enum dsi_rgb_swap val)
3228c2ecf20Sopenharmony_ci{
3238c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_CFG0_RGB_SWAP__SHIFT) & DSI_CMD_CFG0_RGB_SWAP__MASK;
3248c2ecf20Sopenharmony_ci}
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_ci#define REG_DSI_CMD_CFG1					0x00000040
3278c2ecf20Sopenharmony_ci#define DSI_CMD_CFG1_WR_MEM_START__MASK				0x000000ff
3288c2ecf20Sopenharmony_ci#define DSI_CMD_CFG1_WR_MEM_START__SHIFT			0
3298c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_CFG1_WR_MEM_START(uint32_t val)
3308c2ecf20Sopenharmony_ci{
3318c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_CFG1_WR_MEM_START__SHIFT) & DSI_CMD_CFG1_WR_MEM_START__MASK;
3328c2ecf20Sopenharmony_ci}
3338c2ecf20Sopenharmony_ci#define DSI_CMD_CFG1_WR_MEM_CONTINUE__MASK			0x0000ff00
3348c2ecf20Sopenharmony_ci#define DSI_CMD_CFG1_WR_MEM_CONTINUE__SHIFT			8
3358c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_CFG1_WR_MEM_CONTINUE(uint32_t val)
3368c2ecf20Sopenharmony_ci{
3378c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_CFG1_WR_MEM_CONTINUE__SHIFT) & DSI_CMD_CFG1_WR_MEM_CONTINUE__MASK;
3388c2ecf20Sopenharmony_ci}
3398c2ecf20Sopenharmony_ci#define DSI_CMD_CFG1_INSERT_DCS_COMMAND				0x00010000
3408c2ecf20Sopenharmony_ci
3418c2ecf20Sopenharmony_ci#define REG_DSI_DMA_BASE					0x00000044
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci#define REG_DSI_DMA_LEN						0x00000048
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MDP_STREAM0_CTRL				0x00000054
3468c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_DATA_TYPE__MASK		0x0000003f
3478c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_DATA_TYPE__SHIFT		0
3488c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM0_CTRL_DATA_TYPE(uint32_t val)
3498c2ecf20Sopenharmony_ci{
3508c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM0_CTRL_DATA_TYPE__SHIFT) & DSI_CMD_MDP_STREAM0_CTRL_DATA_TYPE__MASK;
3518c2ecf20Sopenharmony_ci}
3528c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_VIRTUAL_CHANNEL__MASK		0x00000300
3538c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_VIRTUAL_CHANNEL__SHIFT		8
3548c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM0_CTRL_VIRTUAL_CHANNEL(uint32_t val)
3558c2ecf20Sopenharmony_ci{
3568c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM0_CTRL_VIRTUAL_CHANNEL__SHIFT) & DSI_CMD_MDP_STREAM0_CTRL_VIRTUAL_CHANNEL__MASK;
3578c2ecf20Sopenharmony_ci}
3588c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT__MASK		0xffff0000
3598c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT__SHIFT		16
3608c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT(uint32_t val)
3618c2ecf20Sopenharmony_ci{
3628c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT__SHIFT) & DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT__MASK;
3638c2ecf20Sopenharmony_ci}
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MDP_STREAM0_TOTAL				0x00000058
3668c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_TOTAL_H_TOTAL__MASK			0x00000fff
3678c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_TOTAL_H_TOTAL__SHIFT		0
3688c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM0_TOTAL_H_TOTAL(uint32_t val)
3698c2ecf20Sopenharmony_ci{
3708c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM0_TOTAL_H_TOTAL__SHIFT) & DSI_CMD_MDP_STREAM0_TOTAL_H_TOTAL__MASK;
3718c2ecf20Sopenharmony_ci}
3728c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_TOTAL_V_TOTAL__MASK			0x0fff0000
3738c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM0_TOTAL_V_TOTAL__SHIFT		16
3748c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM0_TOTAL_V_TOTAL(uint32_t val)
3758c2ecf20Sopenharmony_ci{
3768c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM0_TOTAL_V_TOTAL__SHIFT) & DSI_CMD_MDP_STREAM0_TOTAL_V_TOTAL__MASK;
3778c2ecf20Sopenharmony_ci}
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MDP_STREAM1_CTRL				0x0000005c
3808c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_DATA_TYPE__MASK		0x0000003f
3818c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_DATA_TYPE__SHIFT		0
3828c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM1_CTRL_DATA_TYPE(uint32_t val)
3838c2ecf20Sopenharmony_ci{
3848c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM1_CTRL_DATA_TYPE__SHIFT) & DSI_CMD_MDP_STREAM1_CTRL_DATA_TYPE__MASK;
3858c2ecf20Sopenharmony_ci}
3868c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_VIRTUAL_CHANNEL__MASK		0x00000300
3878c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_VIRTUAL_CHANNEL__SHIFT		8
3888c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM1_CTRL_VIRTUAL_CHANNEL(uint32_t val)
3898c2ecf20Sopenharmony_ci{
3908c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM1_CTRL_VIRTUAL_CHANNEL__SHIFT) & DSI_CMD_MDP_STREAM1_CTRL_VIRTUAL_CHANNEL__MASK;
3918c2ecf20Sopenharmony_ci}
3928c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_WORD_COUNT__MASK		0xffff0000
3938c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_CTRL_WORD_COUNT__SHIFT		16
3948c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM1_CTRL_WORD_COUNT(uint32_t val)
3958c2ecf20Sopenharmony_ci{
3968c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM1_CTRL_WORD_COUNT__SHIFT) & DSI_CMD_MDP_STREAM1_CTRL_WORD_COUNT__MASK;
3978c2ecf20Sopenharmony_ci}
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MDP_STREAM1_TOTAL				0x00000060
4008c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_TOTAL_H_TOTAL__MASK			0x0000ffff
4018c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_TOTAL_H_TOTAL__SHIFT		0
4028c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM1_TOTAL_H_TOTAL(uint32_t val)
4038c2ecf20Sopenharmony_ci{
4048c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM1_TOTAL_H_TOTAL__SHIFT) & DSI_CMD_MDP_STREAM1_TOTAL_H_TOTAL__MASK;
4058c2ecf20Sopenharmony_ci}
4068c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_TOTAL_V_TOTAL__MASK			0xffff0000
4078c2ecf20Sopenharmony_ci#define DSI_CMD_MDP_STREAM1_TOTAL_V_TOTAL__SHIFT		16
4088c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MDP_STREAM1_TOTAL_V_TOTAL(uint32_t val)
4098c2ecf20Sopenharmony_ci{
4108c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MDP_STREAM1_TOTAL_V_TOTAL__SHIFT) & DSI_CMD_MDP_STREAM1_TOTAL_V_TOTAL__MASK;
4118c2ecf20Sopenharmony_ci}
4128c2ecf20Sopenharmony_ci
4138c2ecf20Sopenharmony_ci#define REG_DSI_ACK_ERR_STATUS					0x00000064
4148c2ecf20Sopenharmony_ci
4158c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_RDBK(uint32_t i0) { return 0x00000068 + 0x4*i0; }
4168c2ecf20Sopenharmony_ci
4178c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_RDBK_DATA(uint32_t i0) { return 0x00000068 + 0x4*i0; }
4188c2ecf20Sopenharmony_ci
4198c2ecf20Sopenharmony_ci#define REG_DSI_TRIG_CTRL					0x00000080
4208c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_DMA_TRIGGER__MASK				0x00000007
4218c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_DMA_TRIGGER__SHIFT			0
4228c2ecf20Sopenharmony_cistatic inline uint32_t DSI_TRIG_CTRL_DMA_TRIGGER(enum dsi_cmd_trigger val)
4238c2ecf20Sopenharmony_ci{
4248c2ecf20Sopenharmony_ci	return ((val) << DSI_TRIG_CTRL_DMA_TRIGGER__SHIFT) & DSI_TRIG_CTRL_DMA_TRIGGER__MASK;
4258c2ecf20Sopenharmony_ci}
4268c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_MDP_TRIGGER__MASK				0x00000070
4278c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_MDP_TRIGGER__SHIFT			4
4288c2ecf20Sopenharmony_cistatic inline uint32_t DSI_TRIG_CTRL_MDP_TRIGGER(enum dsi_cmd_trigger val)
4298c2ecf20Sopenharmony_ci{
4308c2ecf20Sopenharmony_ci	return ((val) << DSI_TRIG_CTRL_MDP_TRIGGER__SHIFT) & DSI_TRIG_CTRL_MDP_TRIGGER__MASK;
4318c2ecf20Sopenharmony_ci}
4328c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_STREAM__MASK				0x00000300
4338c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_STREAM__SHIFT				8
4348c2ecf20Sopenharmony_cistatic inline uint32_t DSI_TRIG_CTRL_STREAM(uint32_t val)
4358c2ecf20Sopenharmony_ci{
4368c2ecf20Sopenharmony_ci	return ((val) << DSI_TRIG_CTRL_STREAM__SHIFT) & DSI_TRIG_CTRL_STREAM__MASK;
4378c2ecf20Sopenharmony_ci}
4388c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_BLOCK_DMA_WITHIN_FRAME			0x00001000
4398c2ecf20Sopenharmony_ci#define DSI_TRIG_CTRL_TE					0x80000000
4408c2ecf20Sopenharmony_ci
4418c2ecf20Sopenharmony_ci#define REG_DSI_TRIG_DMA					0x0000008c
4428c2ecf20Sopenharmony_ci
4438c2ecf20Sopenharmony_ci#define REG_DSI_DLN0_PHY_ERR					0x000000b0
4448c2ecf20Sopenharmony_ci#define DSI_DLN0_PHY_ERR_DLN0_ERR_ESC				0x00000001
4458c2ecf20Sopenharmony_ci#define DSI_DLN0_PHY_ERR_DLN0_ERR_SYNC_ESC			0x00000010
4468c2ecf20Sopenharmony_ci#define DSI_DLN0_PHY_ERR_DLN0_ERR_CONTROL			0x00000100
4478c2ecf20Sopenharmony_ci#define DSI_DLN0_PHY_ERR_DLN0_ERR_CONTENTION_LP0		0x00001000
4488c2ecf20Sopenharmony_ci#define DSI_DLN0_PHY_ERR_DLN0_ERR_CONTENTION_LP1		0x00010000
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci#define REG_DSI_LP_TIMER_CTRL					0x000000b4
4518c2ecf20Sopenharmony_ci#define DSI_LP_TIMER_CTRL_LP_RX_TO__MASK			0x0000ffff
4528c2ecf20Sopenharmony_ci#define DSI_LP_TIMER_CTRL_LP_RX_TO__SHIFT			0
4538c2ecf20Sopenharmony_cistatic inline uint32_t DSI_LP_TIMER_CTRL_LP_RX_TO(uint32_t val)
4548c2ecf20Sopenharmony_ci{
4558c2ecf20Sopenharmony_ci	return ((val) << DSI_LP_TIMER_CTRL_LP_RX_TO__SHIFT) & DSI_LP_TIMER_CTRL_LP_RX_TO__MASK;
4568c2ecf20Sopenharmony_ci}
4578c2ecf20Sopenharmony_ci#define DSI_LP_TIMER_CTRL_BTA_TO__MASK				0xffff0000
4588c2ecf20Sopenharmony_ci#define DSI_LP_TIMER_CTRL_BTA_TO__SHIFT				16
4598c2ecf20Sopenharmony_cistatic inline uint32_t DSI_LP_TIMER_CTRL_BTA_TO(uint32_t val)
4608c2ecf20Sopenharmony_ci{
4618c2ecf20Sopenharmony_ci	return ((val) << DSI_LP_TIMER_CTRL_BTA_TO__SHIFT) & DSI_LP_TIMER_CTRL_BTA_TO__MASK;
4628c2ecf20Sopenharmony_ci}
4638c2ecf20Sopenharmony_ci
4648c2ecf20Sopenharmony_ci#define REG_DSI_HS_TIMER_CTRL					0x000000b8
4658c2ecf20Sopenharmony_ci#define DSI_HS_TIMER_CTRL_HS_TX_TO__MASK			0x0000ffff
4668c2ecf20Sopenharmony_ci#define DSI_HS_TIMER_CTRL_HS_TX_TO__SHIFT			0
4678c2ecf20Sopenharmony_cistatic inline uint32_t DSI_HS_TIMER_CTRL_HS_TX_TO(uint32_t val)
4688c2ecf20Sopenharmony_ci{
4698c2ecf20Sopenharmony_ci	return ((val) << DSI_HS_TIMER_CTRL_HS_TX_TO__SHIFT) & DSI_HS_TIMER_CTRL_HS_TX_TO__MASK;
4708c2ecf20Sopenharmony_ci}
4718c2ecf20Sopenharmony_ci#define DSI_HS_TIMER_CTRL_TIMER_RESOLUTION__MASK		0x000f0000
4728c2ecf20Sopenharmony_ci#define DSI_HS_TIMER_CTRL_TIMER_RESOLUTION__SHIFT		16
4738c2ecf20Sopenharmony_cistatic inline uint32_t DSI_HS_TIMER_CTRL_TIMER_RESOLUTION(uint32_t val)
4748c2ecf20Sopenharmony_ci{
4758c2ecf20Sopenharmony_ci	return ((val) << DSI_HS_TIMER_CTRL_TIMER_RESOLUTION__SHIFT) & DSI_HS_TIMER_CTRL_TIMER_RESOLUTION__MASK;
4768c2ecf20Sopenharmony_ci}
4778c2ecf20Sopenharmony_ci#define DSI_HS_TIMER_CTRL_HS_TX_TO_STOP_EN			0x10000000
4788c2ecf20Sopenharmony_ci
4798c2ecf20Sopenharmony_ci#define REG_DSI_TIMEOUT_STATUS					0x000000bc
4808c2ecf20Sopenharmony_ci
4818c2ecf20Sopenharmony_ci#define REG_DSI_CLKOUT_TIMING_CTRL				0x000000c0
4828c2ecf20Sopenharmony_ci#define DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__MASK			0x0000003f
4838c2ecf20Sopenharmony_ci#define DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__SHIFT			0
4848c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE(uint32_t val)
4858c2ecf20Sopenharmony_ci{
4868c2ecf20Sopenharmony_ci	return ((val) << DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__SHIFT) & DSI_CLKOUT_TIMING_CTRL_T_CLK_PRE__MASK;
4878c2ecf20Sopenharmony_ci}
4888c2ecf20Sopenharmony_ci#define DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__MASK			0x00003f00
4898c2ecf20Sopenharmony_ci#define DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__SHIFT		8
4908c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CLKOUT_TIMING_CTRL_T_CLK_POST(uint32_t val)
4918c2ecf20Sopenharmony_ci{
4928c2ecf20Sopenharmony_ci	return ((val) << DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__SHIFT) & DSI_CLKOUT_TIMING_CTRL_T_CLK_POST__MASK;
4938c2ecf20Sopenharmony_ci}
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci#define REG_DSI_EOT_PACKET_CTRL					0x000000c8
4968c2ecf20Sopenharmony_ci#define DSI_EOT_PACKET_CTRL_TX_EOT_APPEND			0x00000001
4978c2ecf20Sopenharmony_ci#define DSI_EOT_PACKET_CTRL_RX_EOT_IGNORE			0x00000010
4988c2ecf20Sopenharmony_ci
4998c2ecf20Sopenharmony_ci#define REG_DSI_LANE_STATUS					0x000000a4
5008c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN0_STOPSTATE				0x00000001
5018c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN1_STOPSTATE				0x00000002
5028c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN2_STOPSTATE				0x00000004
5038c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN3_STOPSTATE				0x00000008
5048c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_CLKLN_STOPSTATE				0x00000010
5058c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN0_ULPS_ACTIVE_NOT			0x00000100
5068c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN1_ULPS_ACTIVE_NOT			0x00000200
5078c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN2_ULPS_ACTIVE_NOT			0x00000400
5088c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN3_ULPS_ACTIVE_NOT			0x00000800
5098c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_CLKLN_ULPS_ACTIVE_NOT			0x00001000
5108c2ecf20Sopenharmony_ci#define DSI_LANE_STATUS_DLN0_DIRECTION				0x00010000
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci#define REG_DSI_LANE_CTRL					0x000000a8
5138c2ecf20Sopenharmony_ci#define DSI_LANE_CTRL_CLKLN_HS_FORCE_REQUEST			0x10000000
5148c2ecf20Sopenharmony_ci
5158c2ecf20Sopenharmony_ci#define REG_DSI_LANE_SWAP_CTRL					0x000000ac
5168c2ecf20Sopenharmony_ci#define DSI_LANE_SWAP_CTRL_DLN_SWAP_SEL__MASK			0x00000007
5178c2ecf20Sopenharmony_ci#define DSI_LANE_SWAP_CTRL_DLN_SWAP_SEL__SHIFT			0
5188c2ecf20Sopenharmony_cistatic inline uint32_t DSI_LANE_SWAP_CTRL_DLN_SWAP_SEL(enum dsi_lane_swap val)
5198c2ecf20Sopenharmony_ci{
5208c2ecf20Sopenharmony_ci	return ((val) << DSI_LANE_SWAP_CTRL_DLN_SWAP_SEL__SHIFT) & DSI_LANE_SWAP_CTRL_DLN_SWAP_SEL__MASK;
5218c2ecf20Sopenharmony_ci}
5228c2ecf20Sopenharmony_ci
5238c2ecf20Sopenharmony_ci#define REG_DSI_ERR_INT_MASK0					0x00000108
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_ci#define REG_DSI_INTR_CTRL					0x0000010c
5268c2ecf20Sopenharmony_ci
5278c2ecf20Sopenharmony_ci#define REG_DSI_RESET						0x00000114
5288c2ecf20Sopenharmony_ci
5298c2ecf20Sopenharmony_ci#define REG_DSI_CLK_CTRL					0x00000118
5308c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_AHBS_HCLK_ON				0x00000001
5318c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_AHBM_SCLK_ON				0x00000002
5328c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_PCLK_ON					0x00000004
5338c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_DSICLK_ON					0x00000008
5348c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_BYTECLK_ON					0x00000010
5358c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_ESCCLK_ON					0x00000020
5368c2ecf20Sopenharmony_ci#define DSI_CLK_CTRL_FORCE_ON_DYN_AHBM_HCLK			0x00000200
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci#define REG_DSI_CLK_STATUS					0x0000011c
5398c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_AHBM_HCLK_ACTIVE			0x00000001
5408c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_AHBM_HCLK_ACTIVE			0x00000002
5418c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_AHBS_HCLK_ACTIVE			0x00000004
5428c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_AHBS_HCLK_ACTIVE			0x00000008
5438c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_DSICLK_ACTIVE			0x00000010
5448c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_DSICLK_ACTIVE			0x00000020
5458c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_BYTECLK_ACTIVE			0x00000040
5468c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_BYTECLK_ACTIVE			0x00000080
5478c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_ESCCLK_ACTIVE			0x00000100
5488c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_AON_PCLK_ACTIVE			0x00000200
5498c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_PCLK_ACTIVE			0x00000400
5508c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_DYN_CMD_PCLK_ACTIVE			0x00001000
5518c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_CMD_PCLK_ACTIVE			0x00002000
5528c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_VID_PCLK_ACTIVE			0x00004000
5538c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_DSI_CAM_BIST_PCLK_ACT			0x00008000
5548c2ecf20Sopenharmony_ci#define DSI_CLK_STATUS_PLL_UNLOCKED				0x00010000
5558c2ecf20Sopenharmony_ci
5568c2ecf20Sopenharmony_ci#define REG_DSI_PHY_RESET					0x00000128
5578c2ecf20Sopenharmony_ci#define DSI_PHY_RESET_RESET					0x00000001
5588c2ecf20Sopenharmony_ci
5598c2ecf20Sopenharmony_ci#define REG_DSI_T_CLK_PRE_EXTEND				0x0000017c
5608c2ecf20Sopenharmony_ci#define DSI_T_CLK_PRE_EXTEND_INC_BY_2_BYTECLK			0x00000001
5618c2ecf20Sopenharmony_ci
5628c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MODE_MDP_CTRL2				0x000001b4
5638c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_DST_FORMAT2__MASK		0x0000000f
5648c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_DST_FORMAT2__SHIFT		0
5658c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_CTRL2_DST_FORMAT2(enum dsi_cmd_dst_format val)
5668c2ecf20Sopenharmony_ci{
5678c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_CTRL2_DST_FORMAT2__SHIFT) & DSI_CMD_MODE_MDP_CTRL2_DST_FORMAT2__MASK;
5688c2ecf20Sopenharmony_ci}
5698c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_R_SEL				0x00000010
5708c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_G_SEL				0x00000020
5718c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_B_SEL				0x00000040
5728c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_BYTE_MSB_LSB_FLIP		0x00000080
5738c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_RGB_SWAP__MASK			0x00000700
5748c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_RGB_SWAP__SHIFT			8
5758c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_CTRL2_RGB_SWAP(enum dsi_rgb_swap val)
5768c2ecf20Sopenharmony_ci{
5778c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_CTRL2_RGB_SWAP__SHIFT) & DSI_CMD_MODE_MDP_CTRL2_RGB_SWAP__MASK;
5788c2ecf20Sopenharmony_ci}
5798c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_INPUT_RGB_SWAP__MASK		0x00007000
5808c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_INPUT_RGB_SWAP__SHIFT		12
5818c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_CTRL2_INPUT_RGB_SWAP(enum dsi_rgb_swap val)
5828c2ecf20Sopenharmony_ci{
5838c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_CTRL2_INPUT_RGB_SWAP__SHIFT) & DSI_CMD_MODE_MDP_CTRL2_INPUT_RGB_SWAP__MASK;
5848c2ecf20Sopenharmony_ci}
5858c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_CTRL2_BURST_MODE			0x00010000
5868c2ecf20Sopenharmony_ci
5878c2ecf20Sopenharmony_ci#define REG_DSI_CMD_MODE_MDP_STREAM2_CTRL			0x000001b8
5888c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_DATA_TYPE__MASK		0x0000003f
5898c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_DATA_TYPE__SHIFT		0
5908c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_STREAM2_CTRL_DATA_TYPE(uint32_t val)
5918c2ecf20Sopenharmony_ci{
5928c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_STREAM2_CTRL_DATA_TYPE__SHIFT) & DSI_CMD_MODE_MDP_STREAM2_CTRL_DATA_TYPE__MASK;
5938c2ecf20Sopenharmony_ci}
5948c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_VIRTUAL_CHANNEL__MASK	0x00000300
5958c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_VIRTUAL_CHANNEL__SHIFT	8
5968c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_STREAM2_CTRL_VIRTUAL_CHANNEL(uint32_t val)
5978c2ecf20Sopenharmony_ci{
5988c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_STREAM2_CTRL_VIRTUAL_CHANNEL__SHIFT) & DSI_CMD_MODE_MDP_STREAM2_CTRL_VIRTUAL_CHANNEL__MASK;
5998c2ecf20Sopenharmony_ci}
6008c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_WORD_COUNT__MASK		0xffff0000
6018c2ecf20Sopenharmony_ci#define DSI_CMD_MODE_MDP_STREAM2_CTRL_WORD_COUNT__SHIFT		16
6028c2ecf20Sopenharmony_cistatic inline uint32_t DSI_CMD_MODE_MDP_STREAM2_CTRL_WORD_COUNT(uint32_t val)
6038c2ecf20Sopenharmony_ci{
6048c2ecf20Sopenharmony_ci	return ((val) << DSI_CMD_MODE_MDP_STREAM2_CTRL_WORD_COUNT__SHIFT) & DSI_CMD_MODE_MDP_STREAM2_CTRL_WORD_COUNT__MASK;
6058c2ecf20Sopenharmony_ci}
6068c2ecf20Sopenharmony_ci
6078c2ecf20Sopenharmony_ci#define REG_DSI_RDBK_DATA_CTRL					0x000001d0
6088c2ecf20Sopenharmony_ci#define DSI_RDBK_DATA_CTRL_COUNT__MASK				0x00ff0000
6098c2ecf20Sopenharmony_ci#define DSI_RDBK_DATA_CTRL_COUNT__SHIFT				16
6108c2ecf20Sopenharmony_cistatic inline uint32_t DSI_RDBK_DATA_CTRL_COUNT(uint32_t val)
6118c2ecf20Sopenharmony_ci{
6128c2ecf20Sopenharmony_ci	return ((val) << DSI_RDBK_DATA_CTRL_COUNT__SHIFT) & DSI_RDBK_DATA_CTRL_COUNT__MASK;
6138c2ecf20Sopenharmony_ci}
6148c2ecf20Sopenharmony_ci#define DSI_RDBK_DATA_CTRL_CLR					0x00000001
6158c2ecf20Sopenharmony_ci
6168c2ecf20Sopenharmony_ci#define REG_DSI_VERSION						0x000001f0
6178c2ecf20Sopenharmony_ci#define DSI_VERSION_MAJOR__MASK					0xff000000
6188c2ecf20Sopenharmony_ci#define DSI_VERSION_MAJOR__SHIFT				24
6198c2ecf20Sopenharmony_cistatic inline uint32_t DSI_VERSION_MAJOR(uint32_t val)
6208c2ecf20Sopenharmony_ci{
6218c2ecf20Sopenharmony_ci	return ((val) << DSI_VERSION_MAJOR__SHIFT) & DSI_VERSION_MAJOR__MASK;
6228c2ecf20Sopenharmony_ci}
6238c2ecf20Sopenharmony_ci
6248c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_0					0x00000200
6258c2ecf20Sopenharmony_ci#define DSI_PHY_PLL_CTRL_0_ENABLE				0x00000001
6268c2ecf20Sopenharmony_ci
6278c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_1					0x00000204
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_2					0x00000208
6308c2ecf20Sopenharmony_ci
6318c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_3					0x0000020c
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_4					0x00000210
6348c2ecf20Sopenharmony_ci
6358c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_5					0x00000214
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_6					0x00000218
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_7					0x0000021c
6408c2ecf20Sopenharmony_ci
6418c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_8					0x00000220
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_9					0x00000224
6448c2ecf20Sopenharmony_ci
6458c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_10					0x00000228
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_11					0x0000022c
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_12					0x00000230
6508c2ecf20Sopenharmony_ci
6518c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_13					0x00000234
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_14					0x00000238
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_15					0x0000023c
6568c2ecf20Sopenharmony_ci
6578c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_16					0x00000240
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_17					0x00000244
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_18					0x00000248
6628c2ecf20Sopenharmony_ci
6638c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_19					0x0000024c
6648c2ecf20Sopenharmony_ci
6658c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_CTRL_20					0x00000250
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci#define REG_DSI_PHY_PLL_STATUS					0x00000280
6688c2ecf20Sopenharmony_ci#define DSI_PHY_PLL_STATUS_PLL_BUSY				0x00000001
6698c2ecf20Sopenharmony_ci
6708c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TPA_CTRL_1				0x00000258
6718c2ecf20Sopenharmony_ci
6728c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TPA_CTRL_2				0x0000025c
6738c2ecf20Sopenharmony_ci
6748c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_0				0x00000260
6758c2ecf20Sopenharmony_ci
6768c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_1				0x00000264
6778c2ecf20Sopenharmony_ci
6788c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_2				0x00000268
6798c2ecf20Sopenharmony_ci
6808c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_3				0x0000026c
6818c2ecf20Sopenharmony_ci
6828c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_4				0x00000270
6838c2ecf20Sopenharmony_ci
6848c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_5				0x00000274
6858c2ecf20Sopenharmony_ci
6868c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_6				0x00000278
6878c2ecf20Sopenharmony_ci
6888c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_7				0x0000027c
6898c2ecf20Sopenharmony_ci
6908c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_8				0x00000280
6918c2ecf20Sopenharmony_ci
6928c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_9				0x00000284
6938c2ecf20Sopenharmony_ci
6948c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_10				0x00000288
6958c2ecf20Sopenharmony_ci
6968c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_TIMING_CTRL_11				0x0000028c
6978c2ecf20Sopenharmony_ci
6988c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CTRL_0					0x00000290
6998c2ecf20Sopenharmony_ci
7008c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CTRL_1					0x00000294
7018c2ecf20Sopenharmony_ci
7028c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CTRL_2					0x00000298
7038c2ecf20Sopenharmony_ci
7048c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CTRL_3					0x0000029c
7058c2ecf20Sopenharmony_ci
7068c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_STRENGTH_0				0x000002a0
7078c2ecf20Sopenharmony_ci
7088c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_STRENGTH_1				0x000002a4
7098c2ecf20Sopenharmony_ci
7108c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_STRENGTH_2				0x000002a8
7118c2ecf20Sopenharmony_ci
7128c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_STRENGTH_3				0x000002ac
7138c2ecf20Sopenharmony_ci
7148c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_REGULATOR_CTRL_0			0x000002cc
7158c2ecf20Sopenharmony_ci
7168c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_REGULATOR_CTRL_1			0x000002d0
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_REGULATOR_CTRL_2			0x000002d4
7198c2ecf20Sopenharmony_ci
7208c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_REGULATOR_CTRL_3			0x000002d8
7218c2ecf20Sopenharmony_ci
7228c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_REGULATOR_CTRL_4			0x000002dc
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CAL_HW_TRIGGER				0x000000f0
7258c2ecf20Sopenharmony_ci
7268c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CAL_CTRL				0x000000f4
7278c2ecf20Sopenharmony_ci
7288c2ecf20Sopenharmony_ci#define REG_DSI_8x60_PHY_CAL_STATUS				0x000000fc
7298c2ecf20Sopenharmony_ci#define DSI_8x60_PHY_CAL_STATUS_CAL_BUSY			0x10000000
7308c2ecf20Sopenharmony_ci
7318c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN(uint32_t i0) { return 0x00000000 + 0x40*i0; }
7328c2ecf20Sopenharmony_ci
7338c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_CFG_0(uint32_t i0) { return 0x00000000 + 0x40*i0; }
7348c2ecf20Sopenharmony_ci
7358c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_CFG_1(uint32_t i0) { return 0x00000004 + 0x40*i0; }
7368c2ecf20Sopenharmony_ci
7378c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_CFG_2(uint32_t i0) { return 0x00000008 + 0x40*i0; }
7388c2ecf20Sopenharmony_ci
7398c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x0000000c + 0x40*i0; }
7408c2ecf20Sopenharmony_ci
7418c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_TEST_STR_0(uint32_t i0) { return 0x00000014 + 0x40*i0; }
7428c2ecf20Sopenharmony_ci
7438c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_8960_PHY_LN_TEST_STR_1(uint32_t i0) { return 0x00000018 + 0x40*i0; }
7448c2ecf20Sopenharmony_ci
7458c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_CFG_0			0x00000100
7468c2ecf20Sopenharmony_ci
7478c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_CFG_1			0x00000104
7488c2ecf20Sopenharmony_ci
7498c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_CFG_2			0x00000108
7508c2ecf20Sopenharmony_ci
7518c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_TEST_DATAPATH		0x0000010c
7528c2ecf20Sopenharmony_ci
7538c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_TEST_STR0			0x00000114
7548c2ecf20Sopenharmony_ci
7558c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LNCK_TEST_STR1			0x00000118
7568c2ecf20Sopenharmony_ci
7578c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_0			0x00000140
7588c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_0_CLK_ZERO__MASK		0x000000ff
7598c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT		0
7608c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_0_CLK_ZERO(uint32_t val)
7618c2ecf20Sopenharmony_ci{
7628c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_0_CLK_ZERO__MASK;
7638c2ecf20Sopenharmony_ci}
7648c2ecf20Sopenharmony_ci
7658c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_1			0x00000144
7668c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK		0x000000ff
7678c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT	0
7688c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_1_CLK_TRAIL(uint32_t val)
7698c2ecf20Sopenharmony_ci{
7708c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK;
7718c2ecf20Sopenharmony_ci}
7728c2ecf20Sopenharmony_ci
7738c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_2			0x00000148
7748c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK	0x000000ff
7758c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT	0
7768c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_2_CLK_PREPARE(uint32_t val)
7778c2ecf20Sopenharmony_ci{
7788c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK;
7798c2ecf20Sopenharmony_ci}
7808c2ecf20Sopenharmony_ci
7818c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_3			0x0000014c
7828c2ecf20Sopenharmony_ci
7838c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_4			0x00000150
7848c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_4_HS_EXIT__MASK		0x000000ff
7858c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT		0
7868c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_4_HS_EXIT(uint32_t val)
7878c2ecf20Sopenharmony_ci{
7888c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_4_HS_EXIT__MASK;
7898c2ecf20Sopenharmony_ci}
7908c2ecf20Sopenharmony_ci
7918c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_5			0x00000154
7928c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_5_HS_ZERO__MASK		0x000000ff
7938c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT		0
7948c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_5_HS_ZERO(uint32_t val)
7958c2ecf20Sopenharmony_ci{
7968c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_5_HS_ZERO__MASK;
7978c2ecf20Sopenharmony_ci}
7988c2ecf20Sopenharmony_ci
7998c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_6			0x00000158
8008c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_6_HS_PREPARE__MASK	0x000000ff
8018c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT	0
8028c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_6_HS_PREPARE(uint32_t val)
8038c2ecf20Sopenharmony_ci{
8048c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_6_HS_PREPARE__MASK;
8058c2ecf20Sopenharmony_ci}
8068c2ecf20Sopenharmony_ci
8078c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_7			0x0000015c
8088c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_7_HS_TRAIL__MASK		0x000000ff
8098c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT		0
8108c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_7_HS_TRAIL(uint32_t val)
8118c2ecf20Sopenharmony_ci{
8128c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_7_HS_TRAIL__MASK;
8138c2ecf20Sopenharmony_ci}
8148c2ecf20Sopenharmony_ci
8158c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_8			0x00000160
8168c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_8_HS_RQST__MASK		0x000000ff
8178c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_8_HS_RQST__SHIFT		0
8188c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_8_HS_RQST(uint32_t val)
8198c2ecf20Sopenharmony_ci{
8208c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_8_HS_RQST__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_8_HS_RQST__MASK;
8218c2ecf20Sopenharmony_ci}
8228c2ecf20Sopenharmony_ci
8238c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_9			0x00000164
8248c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_GO__MASK		0x00000007
8258c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_GO__SHIFT		0
8268c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_GO(uint32_t val)
8278c2ecf20Sopenharmony_ci{
8288c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_GO__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_GO__MASK;
8298c2ecf20Sopenharmony_ci}
8308c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_SURE__MASK		0x00000070
8318c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_SURE__SHIFT		4
8328c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_SURE(uint32_t val)
8338c2ecf20Sopenharmony_ci{
8348c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_SURE__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_9_TA_SURE__MASK;
8358c2ecf20Sopenharmony_ci}
8368c2ecf20Sopenharmony_ci
8378c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_10			0x00000168
8388c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_10_TA_GET__MASK		0x00000007
8398c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_10_TA_GET__SHIFT		0
8408c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_10_TA_GET(uint32_t val)
8418c2ecf20Sopenharmony_ci{
8428c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_10_TA_GET__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_10_TA_GET__MASK;
8438c2ecf20Sopenharmony_ci}
8448c2ecf20Sopenharmony_ci
8458c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_TIMING_CTRL_11			0x0000016c
8468c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK	0x000000ff
8478c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT	0
8488c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_8960_PHY_TIMING_CTRL_11_TRIG3_CMD(uint32_t val)
8498c2ecf20Sopenharmony_ci{
8508c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_8960_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT) & DSI_28nm_8960_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK;
8518c2ecf20Sopenharmony_ci}
8528c2ecf20Sopenharmony_ci
8538c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_CTRL_0				0x00000170
8548c2ecf20Sopenharmony_ci
8558c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_CTRL_1				0x00000174
8568c2ecf20Sopenharmony_ci
8578c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_CTRL_2				0x00000178
8588c2ecf20Sopenharmony_ci
8598c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_CTRL_3				0x0000017c
8608c2ecf20Sopenharmony_ci
8618c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_STRENGTH_0			0x00000180
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_STRENGTH_1			0x00000184
8648c2ecf20Sopenharmony_ci
8658c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_STRENGTH_2			0x00000188
8668c2ecf20Sopenharmony_ci
8678c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_BIST_CTRL_0			0x0000018c
8688c2ecf20Sopenharmony_ci
8698c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_BIST_CTRL_1			0x00000190
8708c2ecf20Sopenharmony_ci
8718c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_BIST_CTRL_2			0x00000194
8728c2ecf20Sopenharmony_ci
8738c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_BIST_CTRL_3			0x00000198
8748c2ecf20Sopenharmony_ci
8758c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_BIST_CTRL_4			0x0000019c
8768c2ecf20Sopenharmony_ci
8778c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_LDO_CTRL				0x000001b0
8788c2ecf20Sopenharmony_ci
8798c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_0		0x00000000
8808c2ecf20Sopenharmony_ci
8818c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_1		0x00000004
8828c2ecf20Sopenharmony_ci
8838c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_2		0x00000008
8848c2ecf20Sopenharmony_ci
8858c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_3		0x0000000c
8868c2ecf20Sopenharmony_ci
8878c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_4		0x00000010
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CTRL_5		0x00000014
8908c2ecf20Sopenharmony_ci
8918c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_REGULATOR_CAL_PWR_CFG	0x00000018
8928c2ecf20Sopenharmony_ci
8938c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_TRIGGER		0x00000028
8948c2ecf20Sopenharmony_ci
8958c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_SW_CFG_0			0x0000002c
8968c2ecf20Sopenharmony_ci
8978c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_SW_CFG_1			0x00000030
8988c2ecf20Sopenharmony_ci
8998c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_SW_CFG_2			0x00000034
9008c2ecf20Sopenharmony_ci
9018c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_CFG_0			0x00000038
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_CFG_1			0x0000003c
9048c2ecf20Sopenharmony_ci
9058c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_CFG_2			0x00000040
9068c2ecf20Sopenharmony_ci
9078c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_CFG_3			0x00000044
9088c2ecf20Sopenharmony_ci
9098c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_HW_CFG_4			0x00000048
9108c2ecf20Sopenharmony_ci
9118c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_MISC_CAL_STATUS			0x00000050
9128c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_MISC_CAL_STATUS_CAL_BUSY		0x00000010
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_0			0x00000000
9158c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_PLL_CTRL_0_ENABLE			0x00000001
9168c2ecf20Sopenharmony_ci
9178c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_1			0x00000004
9188c2ecf20Sopenharmony_ci
9198c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_2			0x00000008
9208c2ecf20Sopenharmony_ci
9218c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_3			0x0000000c
9228c2ecf20Sopenharmony_ci
9238c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_4			0x00000010
9248c2ecf20Sopenharmony_ci
9258c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_5			0x00000014
9268c2ecf20Sopenharmony_ci
9278c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_6			0x00000018
9288c2ecf20Sopenharmony_ci
9298c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_7			0x0000001c
9308c2ecf20Sopenharmony_ci
9318c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_8			0x00000020
9328c2ecf20Sopenharmony_ci
9338c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_9			0x00000024
9348c2ecf20Sopenharmony_ci
9358c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_10			0x00000028
9368c2ecf20Sopenharmony_ci
9378c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_11			0x0000002c
9388c2ecf20Sopenharmony_ci
9398c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_12			0x00000030
9408c2ecf20Sopenharmony_ci
9418c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_13			0x00000034
9428c2ecf20Sopenharmony_ci
9438c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_14			0x00000038
9448c2ecf20Sopenharmony_ci
9458c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_15			0x0000003c
9468c2ecf20Sopenharmony_ci
9478c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_16			0x00000040
9488c2ecf20Sopenharmony_ci
9498c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_17			0x00000044
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_18			0x00000048
9528c2ecf20Sopenharmony_ci
9538c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_19			0x0000004c
9548c2ecf20Sopenharmony_ci
9558c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_CTRL_20			0x00000050
9568c2ecf20Sopenharmony_ci
9578c2ecf20Sopenharmony_ci#define REG_DSI_28nm_8960_PHY_PLL_RDY				0x00000080
9588c2ecf20Sopenharmony_ci#define DSI_28nm_8960_PHY_PLL_RDY_PLL_RDY			0x00000001
9598c2ecf20Sopenharmony_ci
9608c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN(uint32_t i0) { return 0x00000000 + 0x40*i0; }
9618c2ecf20Sopenharmony_ci
9628c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_CFG_0(uint32_t i0) { return 0x00000000 + 0x40*i0; }
9638c2ecf20Sopenharmony_ci
9648c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_CFG_1(uint32_t i0) { return 0x00000004 + 0x40*i0; }
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_CFG_2(uint32_t i0) { return 0x00000008 + 0x40*i0; }
9678c2ecf20Sopenharmony_ci
9688c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_CFG_3(uint32_t i0) { return 0x0000000c + 0x40*i0; }
9698c2ecf20Sopenharmony_ci
9708c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_CFG_4(uint32_t i0) { return 0x00000010 + 0x40*i0; }
9718c2ecf20Sopenharmony_ci
9728c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x00000014 + 0x40*i0; }
9738c2ecf20Sopenharmony_ci
9748c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_DEBUG_SEL(uint32_t i0) { return 0x00000018 + 0x40*i0; }
9758c2ecf20Sopenharmony_ci
9768c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_TEST_STR_0(uint32_t i0) { return 0x0000001c + 0x40*i0; }
9778c2ecf20Sopenharmony_ci
9788c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_28nm_PHY_LN_TEST_STR_1(uint32_t i0) { return 0x00000020 + 0x40*i0; }
9798c2ecf20Sopenharmony_ci
9808c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_CFG_0				0x00000100
9818c2ecf20Sopenharmony_ci
9828c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_CFG_1				0x00000104
9838c2ecf20Sopenharmony_ci
9848c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_CFG_2				0x00000108
9858c2ecf20Sopenharmony_ci
9868c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_CFG_3				0x0000010c
9878c2ecf20Sopenharmony_ci
9888c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_CFG_4				0x00000110
9898c2ecf20Sopenharmony_ci
9908c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_TEST_DATAPATH			0x00000114
9918c2ecf20Sopenharmony_ci
9928c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_DEBUG_SEL				0x00000118
9938c2ecf20Sopenharmony_ci
9948c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_TEST_STR0				0x0000011c
9958c2ecf20Sopenharmony_ci
9968c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LNCK_TEST_STR1				0x00000120
9978c2ecf20Sopenharmony_ci
9988c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_0				0x00000140
9998c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_0_CLK_ZERO__MASK		0x000000ff
10008c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT		0
10018c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_0_CLK_ZERO(uint32_t val)
10028c2ecf20Sopenharmony_ci{
10038c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_0_CLK_ZERO__MASK;
10048c2ecf20Sopenharmony_ci}
10058c2ecf20Sopenharmony_ci
10068c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_1				0x00000144
10078c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK		0x000000ff
10088c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT		0
10098c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_1_CLK_TRAIL(uint32_t val)
10108c2ecf20Sopenharmony_ci{
10118c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK;
10128c2ecf20Sopenharmony_ci}
10138c2ecf20Sopenharmony_ci
10148c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_2				0x00000148
10158c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK		0x000000ff
10168c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT		0
10178c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_2_CLK_PREPARE(uint32_t val)
10188c2ecf20Sopenharmony_ci{
10198c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK;
10208c2ecf20Sopenharmony_ci}
10218c2ecf20Sopenharmony_ci
10228c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_3				0x0000014c
10238c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_3_CLK_ZERO_8			0x00000001
10248c2ecf20Sopenharmony_ci
10258c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_4				0x00000150
10268c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_4_HS_EXIT__MASK		0x000000ff
10278c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT		0
10288c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_4_HS_EXIT(uint32_t val)
10298c2ecf20Sopenharmony_ci{
10308c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_4_HS_EXIT__MASK;
10318c2ecf20Sopenharmony_ci}
10328c2ecf20Sopenharmony_ci
10338c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_5				0x00000154
10348c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_5_HS_ZERO__MASK		0x000000ff
10358c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT		0
10368c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_5_HS_ZERO(uint32_t val)
10378c2ecf20Sopenharmony_ci{
10388c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_5_HS_ZERO__MASK;
10398c2ecf20Sopenharmony_ci}
10408c2ecf20Sopenharmony_ci
10418c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_6				0x00000158
10428c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_6_HS_PREPARE__MASK		0x000000ff
10438c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT		0
10448c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_6_HS_PREPARE(uint32_t val)
10458c2ecf20Sopenharmony_ci{
10468c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_6_HS_PREPARE__MASK;
10478c2ecf20Sopenharmony_ci}
10488c2ecf20Sopenharmony_ci
10498c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_7				0x0000015c
10508c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_7_HS_TRAIL__MASK		0x000000ff
10518c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT		0
10528c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_7_HS_TRAIL(uint32_t val)
10538c2ecf20Sopenharmony_ci{
10548c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_7_HS_TRAIL__MASK;
10558c2ecf20Sopenharmony_ci}
10568c2ecf20Sopenharmony_ci
10578c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_8				0x00000160
10588c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_8_HS_RQST__MASK		0x000000ff
10598c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_8_HS_RQST__SHIFT		0
10608c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_8_HS_RQST(uint32_t val)
10618c2ecf20Sopenharmony_ci{
10628c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_8_HS_RQST__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_8_HS_RQST__MASK;
10638c2ecf20Sopenharmony_ci}
10648c2ecf20Sopenharmony_ci
10658c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_9				0x00000164
10668c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_9_TA_GO__MASK			0x00000007
10678c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_9_TA_GO__SHIFT			0
10688c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_9_TA_GO(uint32_t val)
10698c2ecf20Sopenharmony_ci{
10708c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_9_TA_GO__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_9_TA_GO__MASK;
10718c2ecf20Sopenharmony_ci}
10728c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_9_TA_SURE__MASK		0x00000070
10738c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_9_TA_SURE__SHIFT		4
10748c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_9_TA_SURE(uint32_t val)
10758c2ecf20Sopenharmony_ci{
10768c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_9_TA_SURE__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_9_TA_SURE__MASK;
10778c2ecf20Sopenharmony_ci}
10788c2ecf20Sopenharmony_ci
10798c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_10				0x00000168
10808c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_10_TA_GET__MASK		0x00000007
10818c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_10_TA_GET__SHIFT		0
10828c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_10_TA_GET(uint32_t val)
10838c2ecf20Sopenharmony_ci{
10848c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_10_TA_GET__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_10_TA_GET__MASK;
10858c2ecf20Sopenharmony_ci}
10868c2ecf20Sopenharmony_ci
10878c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_TIMING_CTRL_11				0x0000016c
10888c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK		0x000000ff
10898c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT		0
10908c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_TIMING_CTRL_11_TRIG3_CMD(uint32_t val)
10918c2ecf20Sopenharmony_ci{
10928c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT) & DSI_28nm_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK;
10938c2ecf20Sopenharmony_ci}
10948c2ecf20Sopenharmony_ci
10958c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_CTRL_0					0x00000170
10968c2ecf20Sopenharmony_ci
10978c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_CTRL_1					0x00000174
10988c2ecf20Sopenharmony_ci
10998c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_CTRL_2					0x00000178
11008c2ecf20Sopenharmony_ci
11018c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_CTRL_3					0x0000017c
11028c2ecf20Sopenharmony_ci
11038c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_CTRL_4					0x00000180
11048c2ecf20Sopenharmony_ci
11058c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_STRENGTH_0				0x00000184
11068c2ecf20Sopenharmony_ci
11078c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_STRENGTH_1				0x00000188
11088c2ecf20Sopenharmony_ci
11098c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_0				0x000001b4
11108c2ecf20Sopenharmony_ci
11118c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_1				0x000001b8
11128c2ecf20Sopenharmony_ci
11138c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_2				0x000001bc
11148c2ecf20Sopenharmony_ci
11158c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_3				0x000001c0
11168c2ecf20Sopenharmony_ci
11178c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_4				0x000001c4
11188c2ecf20Sopenharmony_ci
11198c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_BIST_CTRL_5				0x000001c8
11208c2ecf20Sopenharmony_ci
11218c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_GLBL_TEST_CTRL				0x000001d4
11228c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_GLBL_TEST_CTRL_BITCLK_HS_SEL		0x00000001
11238c2ecf20Sopenharmony_ci
11248c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_LDO_CNTRL				0x000001dc
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_0			0x00000000
11278c2ecf20Sopenharmony_ci
11288c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_1			0x00000004
11298c2ecf20Sopenharmony_ci
11308c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_2			0x00000008
11318c2ecf20Sopenharmony_ci
11328c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_3			0x0000000c
11338c2ecf20Sopenharmony_ci
11348c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_4			0x00000010
11358c2ecf20Sopenharmony_ci
11368c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CTRL_5			0x00000014
11378c2ecf20Sopenharmony_ci
11388c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_REGULATOR_CAL_PWR_CFG			0x00000018
11398c2ecf20Sopenharmony_ci
11408c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_REFCLK_CFG				0x00000000
11418c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_REFCLK_CFG_DBLR			0x00000001
11428c2ecf20Sopenharmony_ci
11438c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_POSTDIV1_CFG			0x00000004
11448c2ecf20Sopenharmony_ci
11458c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CHGPUMP_CFG			0x00000008
11468c2ecf20Sopenharmony_ci
11478c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_VCOLPF_CFG				0x0000000c
11488c2ecf20Sopenharmony_ci
11498c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_VREG_CFG				0x00000010
11508c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_VREG_CFG_POSTDIV1_BYPASS_B		0x00000002
11518c2ecf20Sopenharmony_ci
11528c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_PWRGEN_CFG				0x00000014
11538c2ecf20Sopenharmony_ci
11548c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DMUX_CFG				0x00000018
11558c2ecf20Sopenharmony_ci
11568c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_AMUX_CFG				0x0000001c
11578c2ecf20Sopenharmony_ci
11588c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_GLB_CFG				0x00000020
11598c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRDN_B			0x00000001
11608c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_GLB_CFG_PLL_LDO_PWRDN_B		0x00000002
11618c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_GLB_CFG_PLL_PWRGEN_PWRDN_B		0x00000004
11628c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_GLB_CFG_PLL_ENABLE			0x00000008
11638c2ecf20Sopenharmony_ci
11648c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_POSTDIV2_CFG			0x00000024
11658c2ecf20Sopenharmony_ci
11668c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_POSTDIV3_CFG			0x00000028
11678c2ecf20Sopenharmony_ci
11688c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LPFR_CFG				0x0000002c
11698c2ecf20Sopenharmony_ci
11708c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LPFC1_CFG				0x00000030
11718c2ecf20Sopenharmony_ci
11728c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LPFC2_CFG				0x00000034
11738c2ecf20Sopenharmony_ci
11748c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SDM_CFG0				0x00000038
11758c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG0_BYP_DIV__MASK			0x0000003f
11768c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG0_BYP_DIV__SHIFT		0
11778c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_PLL_SDM_CFG0_BYP_DIV(uint32_t val)
11788c2ecf20Sopenharmony_ci{
11798c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_PLL_SDM_CFG0_BYP_DIV__SHIFT) & DSI_28nm_PHY_PLL_SDM_CFG0_BYP_DIV__MASK;
11808c2ecf20Sopenharmony_ci}
11818c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG0_BYP				0x00000040
11828c2ecf20Sopenharmony_ci
11838c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SDM_CFG1				0x0000003c
11848c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG1_DC_OFFSET__MASK		0x0000003f
11858c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG1_DC_OFFSET__SHIFT		0
11868c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_PLL_SDM_CFG1_DC_OFFSET(uint32_t val)
11878c2ecf20Sopenharmony_ci{
11888c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_PLL_SDM_CFG1_DC_OFFSET__SHIFT) & DSI_28nm_PHY_PLL_SDM_CFG1_DC_OFFSET__MASK;
11898c2ecf20Sopenharmony_ci}
11908c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG1_DITHER_EN__MASK		0x00000040
11918c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG1_DITHER_EN__SHIFT		6
11928c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_PLL_SDM_CFG1_DITHER_EN(uint32_t val)
11938c2ecf20Sopenharmony_ci{
11948c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_PLL_SDM_CFG1_DITHER_EN__SHIFT) & DSI_28nm_PHY_PLL_SDM_CFG1_DITHER_EN__MASK;
11958c2ecf20Sopenharmony_ci}
11968c2ecf20Sopenharmony_ci
11978c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SDM_CFG2				0x00000040
11988c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG2_FREQ_SEED_7_0__MASK		0x000000ff
11998c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG2_FREQ_SEED_7_0__SHIFT		0
12008c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_PLL_SDM_CFG2_FREQ_SEED_7_0(uint32_t val)
12018c2ecf20Sopenharmony_ci{
12028c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_PLL_SDM_CFG2_FREQ_SEED_7_0__SHIFT) & DSI_28nm_PHY_PLL_SDM_CFG2_FREQ_SEED_7_0__MASK;
12038c2ecf20Sopenharmony_ci}
12048c2ecf20Sopenharmony_ci
12058c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SDM_CFG3				0x00000044
12068c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG3_FREQ_SEED_15_8__MASK		0x000000ff
12078c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_SDM_CFG3_FREQ_SEED_15_8__SHIFT		0
12088c2ecf20Sopenharmony_cistatic inline uint32_t DSI_28nm_PHY_PLL_SDM_CFG3_FREQ_SEED_15_8(uint32_t val)
12098c2ecf20Sopenharmony_ci{
12108c2ecf20Sopenharmony_ci	return ((val) << DSI_28nm_PHY_PLL_SDM_CFG3_FREQ_SEED_15_8__SHIFT) & DSI_28nm_PHY_PLL_SDM_CFG3_FREQ_SEED_15_8__MASK;
12118c2ecf20Sopenharmony_ci}
12128c2ecf20Sopenharmony_ci
12138c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SDM_CFG4				0x00000048
12148c2ecf20Sopenharmony_ci
12158c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SSC_CFG0				0x0000004c
12168c2ecf20Sopenharmony_ci
12178c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SSC_CFG1				0x00000050
12188c2ecf20Sopenharmony_ci
12198c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SSC_CFG2				0x00000054
12208c2ecf20Sopenharmony_ci
12218c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_SSC_CFG3				0x00000058
12228c2ecf20Sopenharmony_ci
12238c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LKDET_CFG0				0x0000005c
12248c2ecf20Sopenharmony_ci
12258c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LKDET_CFG1				0x00000060
12268c2ecf20Sopenharmony_ci
12278c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_LKDET_CFG2				0x00000064
12288c2ecf20Sopenharmony_ci
12298c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_TEST_CFG				0x00000068
12308c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_TEST_CFG_PLL_SW_RESET			0x00000001
12318c2ecf20Sopenharmony_ci
12328c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG0				0x0000006c
12338c2ecf20Sopenharmony_ci
12348c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG1				0x00000070
12358c2ecf20Sopenharmony_ci
12368c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG2				0x00000074
12378c2ecf20Sopenharmony_ci
12388c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG3				0x00000078
12398c2ecf20Sopenharmony_ci
12408c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG4				0x0000007c
12418c2ecf20Sopenharmony_ci
12428c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG5				0x00000080
12438c2ecf20Sopenharmony_ci
12448c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG6				0x00000084
12458c2ecf20Sopenharmony_ci
12468c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG7				0x00000088
12478c2ecf20Sopenharmony_ci
12488c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG8				0x0000008c
12498c2ecf20Sopenharmony_ci
12508c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG9				0x00000090
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG10				0x00000094
12538c2ecf20Sopenharmony_ci
12548c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CAL_CFG11				0x00000098
12558c2ecf20Sopenharmony_ci
12568c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_EFUSE_CFG				0x0000009c
12578c2ecf20Sopenharmony_ci
12588c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DEBUG_BUS_SEL			0x000000a0
12598c2ecf20Sopenharmony_ci
12608c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_42				0x000000a4
12618c2ecf20Sopenharmony_ci
12628c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_43				0x000000a8
12638c2ecf20Sopenharmony_ci
12648c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_44				0x000000ac
12658c2ecf20Sopenharmony_ci
12668c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_45				0x000000b0
12678c2ecf20Sopenharmony_ci
12688c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_46				0x000000b4
12698c2ecf20Sopenharmony_ci
12708c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_47				0x000000b8
12718c2ecf20Sopenharmony_ci
12728c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_48				0x000000bc
12738c2ecf20Sopenharmony_ci
12748c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_STATUS				0x000000c0
12758c2ecf20Sopenharmony_ci#define DSI_28nm_PHY_PLL_STATUS_PLL_RDY				0x00000001
12768c2ecf20Sopenharmony_ci
12778c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DEBUG_BUS0				0x000000c4
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DEBUG_BUS1				0x000000c8
12808c2ecf20Sopenharmony_ci
12818c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DEBUG_BUS2				0x000000cc
12828c2ecf20Sopenharmony_ci
12838c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_DEBUG_BUS3				0x000000d0
12848c2ecf20Sopenharmony_ci
12858c2ecf20Sopenharmony_ci#define REG_DSI_28nm_PHY_PLL_CTRL_54				0x000000d4
12868c2ecf20Sopenharmony_ci
12878c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN(uint32_t i0) { return 0x00000000 + 0x40*i0; }
12888c2ecf20Sopenharmony_ci
12898c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_CFG_0(uint32_t i0) { return 0x00000000 + 0x40*i0; }
12908c2ecf20Sopenharmony_ci
12918c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_CFG_1(uint32_t i0) { return 0x00000004 + 0x40*i0; }
12928c2ecf20Sopenharmony_ci
12938c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_CFG_2(uint32_t i0) { return 0x00000008 + 0x40*i0; }
12948c2ecf20Sopenharmony_ci
12958c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_CFG_3(uint32_t i0) { return 0x0000000c + 0x40*i0; }
12968c2ecf20Sopenharmony_ci
12978c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_CFG_4(uint32_t i0) { return 0x00000010 + 0x40*i0; }
12988c2ecf20Sopenharmony_ci
12998c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x00000014 + 0x40*i0; }
13008c2ecf20Sopenharmony_ci
13018c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_DEBUG_SEL(uint32_t i0) { return 0x00000018 + 0x40*i0; }
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_TEST_STR_0(uint32_t i0) { return 0x0000001c + 0x40*i0; }
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_20nm_PHY_LN_TEST_STR_1(uint32_t i0) { return 0x00000020 + 0x40*i0; }
13068c2ecf20Sopenharmony_ci
13078c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_CFG_0				0x00000100
13088c2ecf20Sopenharmony_ci
13098c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_CFG_1				0x00000104
13108c2ecf20Sopenharmony_ci
13118c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_CFG_2				0x00000108
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_CFG_3				0x0000010c
13148c2ecf20Sopenharmony_ci
13158c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_CFG_4				0x00000110
13168c2ecf20Sopenharmony_ci
13178c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_TEST_DATAPATH			0x00000114
13188c2ecf20Sopenharmony_ci
13198c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_DEBUG_SEL				0x00000118
13208c2ecf20Sopenharmony_ci
13218c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_TEST_STR0				0x0000011c
13228c2ecf20Sopenharmony_ci
13238c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LNCK_TEST_STR1				0x00000120
13248c2ecf20Sopenharmony_ci
13258c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_0				0x00000140
13268c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_0_CLK_ZERO__MASK		0x000000ff
13278c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT		0
13288c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_0_CLK_ZERO(uint32_t val)
13298c2ecf20Sopenharmony_ci{
13308c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_0_CLK_ZERO__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_0_CLK_ZERO__MASK;
13318c2ecf20Sopenharmony_ci}
13328c2ecf20Sopenharmony_ci
13338c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_1				0x00000144
13348c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK		0x000000ff
13358c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT		0
13368c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_1_CLK_TRAIL(uint32_t val)
13378c2ecf20Sopenharmony_ci{
13388c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_1_CLK_TRAIL__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_1_CLK_TRAIL__MASK;
13398c2ecf20Sopenharmony_ci}
13408c2ecf20Sopenharmony_ci
13418c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_2				0x00000148
13428c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK		0x000000ff
13438c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT		0
13448c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_2_CLK_PREPARE(uint32_t val)
13458c2ecf20Sopenharmony_ci{
13468c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_2_CLK_PREPARE__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_2_CLK_PREPARE__MASK;
13478c2ecf20Sopenharmony_ci}
13488c2ecf20Sopenharmony_ci
13498c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_3				0x0000014c
13508c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_3_CLK_ZERO_8			0x00000001
13518c2ecf20Sopenharmony_ci
13528c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_4				0x00000150
13538c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_4_HS_EXIT__MASK		0x000000ff
13548c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT		0
13558c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_4_HS_EXIT(uint32_t val)
13568c2ecf20Sopenharmony_ci{
13578c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_4_HS_EXIT__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_4_HS_EXIT__MASK;
13588c2ecf20Sopenharmony_ci}
13598c2ecf20Sopenharmony_ci
13608c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_5				0x00000154
13618c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_5_HS_ZERO__MASK		0x000000ff
13628c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT		0
13638c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_5_HS_ZERO(uint32_t val)
13648c2ecf20Sopenharmony_ci{
13658c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_5_HS_ZERO__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_5_HS_ZERO__MASK;
13668c2ecf20Sopenharmony_ci}
13678c2ecf20Sopenharmony_ci
13688c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_6				0x00000158
13698c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_6_HS_PREPARE__MASK		0x000000ff
13708c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT		0
13718c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_6_HS_PREPARE(uint32_t val)
13728c2ecf20Sopenharmony_ci{
13738c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_6_HS_PREPARE__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_6_HS_PREPARE__MASK;
13748c2ecf20Sopenharmony_ci}
13758c2ecf20Sopenharmony_ci
13768c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_7				0x0000015c
13778c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_7_HS_TRAIL__MASK		0x000000ff
13788c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT		0
13798c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_7_HS_TRAIL(uint32_t val)
13808c2ecf20Sopenharmony_ci{
13818c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_7_HS_TRAIL__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_7_HS_TRAIL__MASK;
13828c2ecf20Sopenharmony_ci}
13838c2ecf20Sopenharmony_ci
13848c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_8				0x00000160
13858c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_8_HS_RQST__MASK		0x000000ff
13868c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_8_HS_RQST__SHIFT		0
13878c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_8_HS_RQST(uint32_t val)
13888c2ecf20Sopenharmony_ci{
13898c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_8_HS_RQST__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_8_HS_RQST__MASK;
13908c2ecf20Sopenharmony_ci}
13918c2ecf20Sopenharmony_ci
13928c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_9				0x00000164
13938c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_9_TA_GO__MASK			0x00000007
13948c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_9_TA_GO__SHIFT			0
13958c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_9_TA_GO(uint32_t val)
13968c2ecf20Sopenharmony_ci{
13978c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_9_TA_GO__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_9_TA_GO__MASK;
13988c2ecf20Sopenharmony_ci}
13998c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_9_TA_SURE__MASK		0x00000070
14008c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_9_TA_SURE__SHIFT		4
14018c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_9_TA_SURE(uint32_t val)
14028c2ecf20Sopenharmony_ci{
14038c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_9_TA_SURE__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_9_TA_SURE__MASK;
14048c2ecf20Sopenharmony_ci}
14058c2ecf20Sopenharmony_ci
14068c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_10				0x00000168
14078c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_10_TA_GET__MASK		0x00000007
14088c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_10_TA_GET__SHIFT		0
14098c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_10_TA_GET(uint32_t val)
14108c2ecf20Sopenharmony_ci{
14118c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_10_TA_GET__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_10_TA_GET__MASK;
14128c2ecf20Sopenharmony_ci}
14138c2ecf20Sopenharmony_ci
14148c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_TIMING_CTRL_11				0x0000016c
14158c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK		0x000000ff
14168c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT		0
14178c2ecf20Sopenharmony_cistatic inline uint32_t DSI_20nm_PHY_TIMING_CTRL_11_TRIG3_CMD(uint32_t val)
14188c2ecf20Sopenharmony_ci{
14198c2ecf20Sopenharmony_ci	return ((val) << DSI_20nm_PHY_TIMING_CTRL_11_TRIG3_CMD__SHIFT) & DSI_20nm_PHY_TIMING_CTRL_11_TRIG3_CMD__MASK;
14208c2ecf20Sopenharmony_ci}
14218c2ecf20Sopenharmony_ci
14228c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_CTRL_0					0x00000170
14238c2ecf20Sopenharmony_ci
14248c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_CTRL_1					0x00000174
14258c2ecf20Sopenharmony_ci
14268c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_CTRL_2					0x00000178
14278c2ecf20Sopenharmony_ci
14288c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_CTRL_3					0x0000017c
14298c2ecf20Sopenharmony_ci
14308c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_CTRL_4					0x00000180
14318c2ecf20Sopenharmony_ci
14328c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_STRENGTH_0				0x00000184
14338c2ecf20Sopenharmony_ci
14348c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_STRENGTH_1				0x00000188
14358c2ecf20Sopenharmony_ci
14368c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_0				0x000001b4
14378c2ecf20Sopenharmony_ci
14388c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_1				0x000001b8
14398c2ecf20Sopenharmony_ci
14408c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_2				0x000001bc
14418c2ecf20Sopenharmony_ci
14428c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_3				0x000001c0
14438c2ecf20Sopenharmony_ci
14448c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_4				0x000001c4
14458c2ecf20Sopenharmony_ci
14468c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_BIST_CTRL_5				0x000001c8
14478c2ecf20Sopenharmony_ci
14488c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_GLBL_TEST_CTRL				0x000001d4
14498c2ecf20Sopenharmony_ci#define DSI_20nm_PHY_GLBL_TEST_CTRL_BITCLK_HS_SEL		0x00000001
14508c2ecf20Sopenharmony_ci
14518c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_LDO_CNTRL				0x000001dc
14528c2ecf20Sopenharmony_ci
14538c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_0			0x00000000
14548c2ecf20Sopenharmony_ci
14558c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_1			0x00000004
14568c2ecf20Sopenharmony_ci
14578c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_2			0x00000008
14588c2ecf20Sopenharmony_ci
14598c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_3			0x0000000c
14608c2ecf20Sopenharmony_ci
14618c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_4			0x00000010
14628c2ecf20Sopenharmony_ci
14638c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CTRL_5			0x00000014
14648c2ecf20Sopenharmony_ci
14658c2ecf20Sopenharmony_ci#define REG_DSI_20nm_PHY_REGULATOR_CAL_PWR_CFG			0x00000018
14668c2ecf20Sopenharmony_ci
14678c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_REVISION_ID0			0x00000000
14688c2ecf20Sopenharmony_ci
14698c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_REVISION_ID1			0x00000004
14708c2ecf20Sopenharmony_ci
14718c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_REVISION_ID2			0x00000008
14728c2ecf20Sopenharmony_ci
14738c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_REVISION_ID3			0x0000000c
14748c2ecf20Sopenharmony_ci
14758c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_CLK_CFG0				0x00000010
14768c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_3_0__MASK		0x000000f0
14778c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_3_0__SHIFT		4
14788c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_3_0(uint32_t val)
14798c2ecf20Sopenharmony_ci{
14808c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_3_0__SHIFT) & DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_3_0__MASK;
14818c2ecf20Sopenharmony_ci}
14828c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_7_4__MASK		0x000000f0
14838c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_7_4__SHIFT		4
14848c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_7_4(uint32_t val)
14858c2ecf20Sopenharmony_ci{
14868c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_7_4__SHIFT) & DSI_14nm_PHY_CMN_CLK_CFG0_DIV_CTRL_7_4__MASK;
14878c2ecf20Sopenharmony_ci}
14888c2ecf20Sopenharmony_ci
14898c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_CLK_CFG1				0x00000014
14908c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_CLK_CFG1_DSICLK_SEL			0x00000001
14918c2ecf20Sopenharmony_ci
14928c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_GLBL_TEST_CTRL			0x00000018
14938c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_GLBL_TEST_CTRL_BITCLK_HS_SEL		0x00000004
14948c2ecf20Sopenharmony_ci
14958c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_CTRL_0				0x0000001c
14968c2ecf20Sopenharmony_ci
14978c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_CTRL_1				0x00000020
14988c2ecf20Sopenharmony_ci
14998c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_TRIGGER				0x00000024
15008c2ecf20Sopenharmony_ci
15018c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_SW_CFG0				0x00000028
15028c2ecf20Sopenharmony_ci
15038c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_SW_CFG1				0x0000002c
15048c2ecf20Sopenharmony_ci
15058c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_SW_CFG2				0x00000030
15068c2ecf20Sopenharmony_ci
15078c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_CFG0				0x00000034
15088c2ecf20Sopenharmony_ci
15098c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_CFG1				0x00000038
15108c2ecf20Sopenharmony_ci
15118c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_CFG2				0x0000003c
15128c2ecf20Sopenharmony_ci
15138c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_CFG3				0x00000040
15148c2ecf20Sopenharmony_ci
15158c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_HW_CFG4				0x00000044
15168c2ecf20Sopenharmony_ci
15178c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_PLL_CNTRL				0x00000048
15188c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_PLL_CNTRL_PLL_START			0x00000001
15198c2ecf20Sopenharmony_ci
15208c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_CMN_LDO_CNTRL				0x0000004c
15218c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_LDO_CNTRL_VREG_CTRL__MASK		0x0000003f
15228c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_CMN_LDO_CNTRL_VREG_CTRL__SHIFT		0
15238c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_CMN_LDO_CNTRL_VREG_CTRL(uint32_t val)
15248c2ecf20Sopenharmony_ci{
15258c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_CMN_LDO_CNTRL_VREG_CTRL__SHIFT) & DSI_14nm_PHY_CMN_LDO_CNTRL_VREG_CTRL__MASK;
15268c2ecf20Sopenharmony_ci}
15278c2ecf20Sopenharmony_ci
15288c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN(uint32_t i0) { return 0x00000000 + 0x80*i0; }
15298c2ecf20Sopenharmony_ci
15308c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_CFG0(uint32_t i0) { return 0x00000000 + 0x80*i0; }
15318c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_CFG0_PREPARE_DLY__MASK			0x000000c0
15328c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_CFG0_PREPARE_DLY__SHIFT			6
15338c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_CFG0_PREPARE_DLY(uint32_t val)
15348c2ecf20Sopenharmony_ci{
15358c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_CFG0_PREPARE_DLY__SHIFT) & DSI_14nm_PHY_LN_CFG0_PREPARE_DLY__MASK;
15368c2ecf20Sopenharmony_ci}
15378c2ecf20Sopenharmony_ci
15388c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_CFG1(uint32_t i0) { return 0x00000004 + 0x80*i0; }
15398c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_CFG1_HALFBYTECLK_EN			0x00000001
15408c2ecf20Sopenharmony_ci
15418c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_CFG2(uint32_t i0) { return 0x00000008 + 0x80*i0; }
15428c2ecf20Sopenharmony_ci
15438c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_CFG3(uint32_t i0) { return 0x0000000c + 0x80*i0; }
15448c2ecf20Sopenharmony_ci
15458c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x00000010 + 0x80*i0; }
15468c2ecf20Sopenharmony_ci
15478c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TEST_STR(uint32_t i0) { return 0x00000014 + 0x80*i0; }
15488c2ecf20Sopenharmony_ci
15498c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_4(uint32_t i0) { return 0x00000018 + 0x80*i0; }
15508c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_4_HS_EXIT__MASK		0x000000ff
15518c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_4_HS_EXIT__SHIFT		0
15528c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_4_HS_EXIT(uint32_t val)
15538c2ecf20Sopenharmony_ci{
15548c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_4_HS_EXIT__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_4_HS_EXIT__MASK;
15558c2ecf20Sopenharmony_ci}
15568c2ecf20Sopenharmony_ci
15578c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_5(uint32_t i0) { return 0x0000001c + 0x80*i0; }
15588c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_5_HS_ZERO__MASK		0x000000ff
15598c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_5_HS_ZERO__SHIFT		0
15608c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_5_HS_ZERO(uint32_t val)
15618c2ecf20Sopenharmony_ci{
15628c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_5_HS_ZERO__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_5_HS_ZERO__MASK;
15638c2ecf20Sopenharmony_ci}
15648c2ecf20Sopenharmony_ci
15658c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_6(uint32_t i0) { return 0x00000020 + 0x80*i0; }
15668c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_6_HS_PREPARE__MASK		0x000000ff
15678c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_6_HS_PREPARE__SHIFT		0
15688c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_6_HS_PREPARE(uint32_t val)
15698c2ecf20Sopenharmony_ci{
15708c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_6_HS_PREPARE__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_6_HS_PREPARE__MASK;
15718c2ecf20Sopenharmony_ci}
15728c2ecf20Sopenharmony_ci
15738c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_7(uint32_t i0) { return 0x00000024 + 0x80*i0; }
15748c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_7_HS_TRAIL__MASK		0x000000ff
15758c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_7_HS_TRAIL__SHIFT		0
15768c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_7_HS_TRAIL(uint32_t val)
15778c2ecf20Sopenharmony_ci{
15788c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_7_HS_TRAIL__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_7_HS_TRAIL__MASK;
15798c2ecf20Sopenharmony_ci}
15808c2ecf20Sopenharmony_ci
15818c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_8(uint32_t i0) { return 0x00000028 + 0x80*i0; }
15828c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST__MASK		0x000000ff
15838c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST__SHIFT		0
15848c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST(uint32_t val)
15858c2ecf20Sopenharmony_ci{
15868c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST__MASK;
15878c2ecf20Sopenharmony_ci}
15888c2ecf20Sopenharmony_ci
15898c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_9(uint32_t i0) { return 0x0000002c + 0x80*i0; }
15908c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_GO__MASK		0x00000007
15918c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_GO__SHIFT		0
15928c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_GO(uint32_t val)
15938c2ecf20Sopenharmony_ci{
15948c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_GO__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_GO__MASK;
15958c2ecf20Sopenharmony_ci}
15968c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_SURE__MASK		0x00000070
15978c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_SURE__SHIFT		4
15988c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_SURE(uint32_t val)
15998c2ecf20Sopenharmony_ci{
16008c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_SURE__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_9_TA_SURE__MASK;
16018c2ecf20Sopenharmony_ci}
16028c2ecf20Sopenharmony_ci
16038c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_10(uint32_t i0) { return 0x00000030 + 0x80*i0; }
16048c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_10_TA_GET__MASK		0x00000007
16058c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_10_TA_GET__SHIFT		0
16068c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_10_TA_GET(uint32_t val)
16078c2ecf20Sopenharmony_ci{
16088c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_10_TA_GET__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_10_TA_GET__MASK;
16098c2ecf20Sopenharmony_ci}
16108c2ecf20Sopenharmony_ci
16118c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_TIMING_CTRL_11(uint32_t i0) { return 0x00000034 + 0x80*i0; }
16128c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_11_TRIG3_CMD__MASK		0x000000ff
16138c2ecf20Sopenharmony_ci#define DSI_14nm_PHY_LN_TIMING_CTRL_11_TRIG3_CMD__SHIFT		0
16148c2ecf20Sopenharmony_cistatic inline uint32_t DSI_14nm_PHY_LN_TIMING_CTRL_11_TRIG3_CMD(uint32_t val)
16158c2ecf20Sopenharmony_ci{
16168c2ecf20Sopenharmony_ci	return ((val) << DSI_14nm_PHY_LN_TIMING_CTRL_11_TRIG3_CMD__SHIFT) & DSI_14nm_PHY_LN_TIMING_CTRL_11_TRIG3_CMD__MASK;
16178c2ecf20Sopenharmony_ci}
16188c2ecf20Sopenharmony_ci
16198c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_STRENGTH_CTRL_0(uint32_t i0) { return 0x00000038 + 0x80*i0; }
16208c2ecf20Sopenharmony_ci
16218c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_STRENGTH_CTRL_1(uint32_t i0) { return 0x0000003c + 0x80*i0; }
16228c2ecf20Sopenharmony_ci
16238c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_14nm_PHY_LN_VREG_CNTRL(uint32_t i0) { return 0x00000064 + 0x80*i0; }
16248c2ecf20Sopenharmony_ci
16258c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_IE_TRIM				0x00000000
16268c2ecf20Sopenharmony_ci
16278c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_IP_TRIM				0x00000004
16288c2ecf20Sopenharmony_ci
16298c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_IPTAT_TRIM				0x00000010
16308c2ecf20Sopenharmony_ci
16318c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_CLKBUFLR_EN			0x0000001c
16328c2ecf20Sopenharmony_ci
16338c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SYSCLK_EN_RESET			0x00000028
16348c2ecf20Sopenharmony_ci
16358c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESETSM_CNTRL			0x0000002c
16368c2ecf20Sopenharmony_ci
16378c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESETSM_CNTRL2			0x00000030
16388c2ecf20Sopenharmony_ci
16398c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESETSM_CNTRL3			0x00000034
16408c2ecf20Sopenharmony_ci
16418c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESETSM_CNTRL4			0x00000038
16428c2ecf20Sopenharmony_ci
16438c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESETSM_CNTRL5			0x0000003c
16448c2ecf20Sopenharmony_ci
16458c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_KVCO_DIV_REF1			0x00000040
16468c2ecf20Sopenharmony_ci
16478c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_KVCO_DIV_REF2			0x00000044
16488c2ecf20Sopenharmony_ci
16498c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_KVCO_COUNT1			0x00000048
16508c2ecf20Sopenharmony_ci
16518c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_KVCO_COUNT2			0x0000004c
16528c2ecf20Sopenharmony_ci
16538c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_VREF_CFG1				0x0000005c
16548c2ecf20Sopenharmony_ci
16558c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_KVCO_CODE				0x00000058
16568c2ecf20Sopenharmony_ci
16578c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_VCO_DIV_REF1			0x0000006c
16588c2ecf20Sopenharmony_ci
16598c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_VCO_DIV_REF2			0x00000070
16608c2ecf20Sopenharmony_ci
16618c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_VCO_COUNT1				0x00000074
16628c2ecf20Sopenharmony_ci
16638c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_VCO_COUNT2				0x00000078
16648c2ecf20Sopenharmony_ci
16658c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLLLOCK_CMP1			0x0000007c
16668c2ecf20Sopenharmony_ci
16678c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLLLOCK_CMP2			0x00000080
16688c2ecf20Sopenharmony_ci
16698c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLLLOCK_CMP3			0x00000084
16708c2ecf20Sopenharmony_ci
16718c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLLLOCK_CMP_EN			0x00000088
16728c2ecf20Sopenharmony_ci
16738c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_VCO_TUNE			0x0000008c
16748c2ecf20Sopenharmony_ci
16758c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_DEC_START				0x00000090
16768c2ecf20Sopenharmony_ci
16778c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_EN_CENTER			0x00000094
16788c2ecf20Sopenharmony_ci
16798c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_ADJ_PER1			0x00000098
16808c2ecf20Sopenharmony_ci
16818c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_ADJ_PER2			0x0000009c
16828c2ecf20Sopenharmony_ci
16838c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_PER1				0x000000a0
16848c2ecf20Sopenharmony_ci
16858c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_PER2				0x000000a4
16868c2ecf20Sopenharmony_ci
16878c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_STEP_SIZE1			0x000000a8
16888c2ecf20Sopenharmony_ci
16898c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_SSC_STEP_SIZE2			0x000000ac
16908c2ecf20Sopenharmony_ci
16918c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_DIV_FRAC_START1			0x000000b4
16928c2ecf20Sopenharmony_ci
16938c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_DIV_FRAC_START2			0x000000b8
16948c2ecf20Sopenharmony_ci
16958c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_DIV_FRAC_START3			0x000000bc
16968c2ecf20Sopenharmony_ci
16978c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_TXCLK_EN				0x000000c0
16988c2ecf20Sopenharmony_ci
16998c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_CRCTRL				0x000000c4
17008c2ecf20Sopenharmony_ci
17018c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_RESET_SM_READY_STATUS		0x000000cc
17028c2ecf20Sopenharmony_ci
17038c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_MISC1				0x000000e8
17048c2ecf20Sopenharmony_ci
17058c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_CP_SET_CUR				0x000000f0
17068c2ecf20Sopenharmony_ci
17078c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_ICPMSET			0x000000f4
17088c2ecf20Sopenharmony_ci
17098c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_ICPCSET			0x000000f8
17108c2ecf20Sopenharmony_ci
17118c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_ICP_SET			0x000000fc
17128c2ecf20Sopenharmony_ci
17138c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_LPF1				0x00000100
17148c2ecf20Sopenharmony_ci
17158c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_LPF2_POSTDIV			0x00000104
17168c2ecf20Sopenharmony_ci
17178c2ecf20Sopenharmony_ci#define REG_DSI_14nm_PHY_PLL_PLL_BANDGAP			0x00000108
17188c2ecf20Sopenharmony_ci
17198c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_REVISION_ID0			0x00000000
17208c2ecf20Sopenharmony_ci
17218c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_REVISION_ID1			0x00000004
17228c2ecf20Sopenharmony_ci
17238c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_REVISION_ID2			0x00000008
17248c2ecf20Sopenharmony_ci
17258c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_REVISION_ID3			0x0000000c
17268c2ecf20Sopenharmony_ci
17278c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_CLK_CFG0				0x00000010
17288c2ecf20Sopenharmony_ci
17298c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_CLK_CFG1				0x00000014
17308c2ecf20Sopenharmony_ci
17318c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_GLBL_CTRL				0x00000018
17328c2ecf20Sopenharmony_ci
17338c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_RBUF_CTRL				0x0000001c
17348c2ecf20Sopenharmony_ci
17358c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_VREG_CTRL				0x00000020
17368c2ecf20Sopenharmony_ci
17378c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_CTRL_0				0x00000024
17388c2ecf20Sopenharmony_ci
17398c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_CTRL_1				0x00000028
17408c2ecf20Sopenharmony_ci
17418c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_CTRL_2				0x0000002c
17428c2ecf20Sopenharmony_ci
17438c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CFG0				0x00000030
17448c2ecf20Sopenharmony_ci
17458c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CFG1				0x00000034
17468c2ecf20Sopenharmony_ci
17478c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_PLL_CNTRL				0x00000038
17488c2ecf20Sopenharmony_ci
17498c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CTRL0				0x00000098
17508c2ecf20Sopenharmony_ci
17518c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CTRL1				0x0000009c
17528c2ecf20Sopenharmony_ci
17538c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CTRL2				0x000000a0
17548c2ecf20Sopenharmony_ci
17558c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CTRL3				0x000000a4
17568c2ecf20Sopenharmony_ci
17578c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_CTRL4				0x000000a8
17588c2ecf20Sopenharmony_ci
17598c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_0			0x000000ac
17608c2ecf20Sopenharmony_ci
17618c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_1			0x000000b0
17628c2ecf20Sopenharmony_ci
17638c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_2			0x000000b4
17648c2ecf20Sopenharmony_ci
17658c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_3			0x000000b8
17668c2ecf20Sopenharmony_ci
17678c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_4			0x000000bc
17688c2ecf20Sopenharmony_ci
17698c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_5			0x000000c0
17708c2ecf20Sopenharmony_ci
17718c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_6			0x000000c4
17728c2ecf20Sopenharmony_ci
17738c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_7			0x000000c8
17748c2ecf20Sopenharmony_ci
17758c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_8			0x000000cc
17768c2ecf20Sopenharmony_ci
17778c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_9			0x000000d0
17788c2ecf20Sopenharmony_ci
17798c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_10			0x000000d4
17808c2ecf20Sopenharmony_ci
17818c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_TIMING_CTRL_11			0x000000d8
17828c2ecf20Sopenharmony_ci
17838c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_PHY_STATUS				0x000000ec
17848c2ecf20Sopenharmony_ci
17858c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_STATUS0			0x000000f4
17868c2ecf20Sopenharmony_ci
17878c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_CMN_LANE_STATUS1			0x000000f8
17888c2ecf20Sopenharmony_ci
17898c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN(uint32_t i0) { return 0x00000000 + 0x80*i0; }
17908c2ecf20Sopenharmony_ci
17918c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_CFG0(uint32_t i0) { return 0x00000000 + 0x80*i0; }
17928c2ecf20Sopenharmony_ci
17938c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_CFG1(uint32_t i0) { return 0x00000004 + 0x80*i0; }
17948c2ecf20Sopenharmony_ci
17958c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_CFG2(uint32_t i0) { return 0x00000008 + 0x80*i0; }
17968c2ecf20Sopenharmony_ci
17978c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_CFG3(uint32_t i0) { return 0x0000000c + 0x80*i0; }
17988c2ecf20Sopenharmony_ci
17998c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x00000010 + 0x80*i0; }
18008c2ecf20Sopenharmony_ci
18018c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_PIN_SWAP(uint32_t i0) { return 0x00000014 + 0x80*i0; }
18028c2ecf20Sopenharmony_ci
18038c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_HSTX_STR_CTRL(uint32_t i0) { return 0x00000018 + 0x80*i0; }
18048c2ecf20Sopenharmony_ci
18058c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_OFFSET_TOP_CTRL(uint32_t i0) { return 0x0000001c + 0x80*i0; }
18068c2ecf20Sopenharmony_ci
18078c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_OFFSET_BOT_CTRL(uint32_t i0) { return 0x00000020 + 0x80*i0; }
18088c2ecf20Sopenharmony_ci
18098c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_LPTX_STR_CTRL(uint32_t i0) { return 0x00000024 + 0x80*i0; }
18108c2ecf20Sopenharmony_ci
18118c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_LPRX_CTRL(uint32_t i0) { return 0x00000028 + 0x80*i0; }
18128c2ecf20Sopenharmony_ci
18138c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_10nm_PHY_LN_TX_DCTRL(uint32_t i0) { return 0x0000002c + 0x80*i0; }
18148c2ecf20Sopenharmony_ci
18158c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_ANALOG_CONTROLS_ONE		0x00000000
18168c2ecf20Sopenharmony_ci
18178c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_ANALOG_CONTROLS_TWO		0x00000004
18188c2ecf20Sopenharmony_ci
18198c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_ANALOG_CONTROLS_THREE		0x00000010
18208c2ecf20Sopenharmony_ci
18218c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_DSM_DIVIDER			0x0000001c
18228c2ecf20Sopenharmony_ci
18238c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_FEEDBACK_DIVIDER			0x00000020
18248c2ecf20Sopenharmony_ci
18258c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SYSTEM_MUXES			0x00000024
18268c2ecf20Sopenharmony_ci
18278c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_CMODE				0x0000002c
18288c2ecf20Sopenharmony_ci
18298c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_CALIBRATION_SETTINGS		0x00000030
18308c2ecf20Sopenharmony_ci
18318c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_BAND_SEL_CAL_SETTINGS_THREE	0x00000054
18328c2ecf20Sopenharmony_ci
18338c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_FREQ_DETECT_SETTINGS_ONE		0x00000064
18348c2ecf20Sopenharmony_ci
18358c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PFILT				0x0000007c
18368c2ecf20Sopenharmony_ci
18378c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_IFILT				0x00000080
18388c2ecf20Sopenharmony_ci
18398c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_OUTDIV				0x00000094
18408c2ecf20Sopenharmony_ci
18418c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_CORE_OVERRIDE			0x000000a4
18428c2ecf20Sopenharmony_ci
18438c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_CORE_INPUT_OVERRIDE		0x000000a8
18448c2ecf20Sopenharmony_ci
18458c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_DIGITAL_TIMERS_TWO		0x000000b4
18468c2ecf20Sopenharmony_ci
18478c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_DECIMAL_DIV_START_1		0x000000cc
18488c2ecf20Sopenharmony_ci
18498c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_LOW_1		0x000000d0
18508c2ecf20Sopenharmony_ci
18518c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_MID_1		0x000000d4
18528c2ecf20Sopenharmony_ci
18538c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_HIGH_1		0x000000d8
18548c2ecf20Sopenharmony_ci
18558c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_STEPSIZE_LOW_1			0x0000010c
18568c2ecf20Sopenharmony_ci
18578c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_STEPSIZE_HIGH_1		0x00000110
18588c2ecf20Sopenharmony_ci
18598c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_DIV_PER_LOW_1			0x00000114
18608c2ecf20Sopenharmony_ci
18618c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_DIV_PER_HIGH_1			0x00000118
18628c2ecf20Sopenharmony_ci
18638c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_DIV_ADJPER_LOW_1		0x0000011c
18648c2ecf20Sopenharmony_ci
18658c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_DIV_ADJPER_HIGH_1		0x00000120
18668c2ecf20Sopenharmony_ci
18678c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_SSC_CONTROL			0x0000013c
18688c2ecf20Sopenharmony_ci
18698c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_OUTDIV_RATE			0x00000140
18708c2ecf20Sopenharmony_ci
18718c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_LOCKDET_RATE_1			0x00000144
18728c2ecf20Sopenharmony_ci
18738c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_PROP_GAIN_RATE_1		0x0000014c
18748c2ecf20Sopenharmony_ci
18758c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_BAND_SET_RATE_1		0x00000154
18768c2ecf20Sopenharmony_ci
18778c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_INT_GAIN_IFILT_BAND_1		0x0000015c
18788c2ecf20Sopenharmony_ci
18798c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_FL_INT_GAIN_PFILT_BAND_1	0x00000164
18808c2ecf20Sopenharmony_ci
18818c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_LOCK_OVERRIDE			0x00000180
18828c2ecf20Sopenharmony_ci
18838c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_PLL_LOCK_DELAY			0x00000184
18848c2ecf20Sopenharmony_ci
18858c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_CLOCK_INVERTERS			0x0000018c
18868c2ecf20Sopenharmony_ci
18878c2ecf20Sopenharmony_ci#define REG_DSI_10nm_PHY_PLL_COMMON_STATUS_ONE			0x000001a0
18888c2ecf20Sopenharmony_ci
18898c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_REVISION_ID0			0x00000000
18908c2ecf20Sopenharmony_ci
18918c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_REVISION_ID1			0x00000004
18928c2ecf20Sopenharmony_ci
18938c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_REVISION_ID2			0x00000008
18948c2ecf20Sopenharmony_ci
18958c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_REVISION_ID3			0x0000000c
18968c2ecf20Sopenharmony_ci
18978c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CLK_CFG0				0x00000010
18988c2ecf20Sopenharmony_ci
18998c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CLK_CFG1				0x00000014
19008c2ecf20Sopenharmony_ci
19018c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_CTRL				0x00000018
19028c2ecf20Sopenharmony_ci
19038c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_RBUF_CTRL				0x0000001c
19048c2ecf20Sopenharmony_ci
19058c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_VREG_CTRL_0				0x00000020
19068c2ecf20Sopenharmony_ci
19078c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CTRL_0				0x00000024
19088c2ecf20Sopenharmony_ci
19098c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CTRL_1				0x00000028
19108c2ecf20Sopenharmony_ci
19118c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CTRL_2				0x0000002c
19128c2ecf20Sopenharmony_ci
19138c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CTRL_3				0x00000030
19148c2ecf20Sopenharmony_ci
19158c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CFG0				0x00000034
19168c2ecf20Sopenharmony_ci
19178c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CFG1				0x00000038
19188c2ecf20Sopenharmony_ci
19198c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_PLL_CNTRL				0x0000003c
19208c2ecf20Sopenharmony_ci
19218c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_DPHY_SOT				0x00000040
19228c2ecf20Sopenharmony_ci
19238c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CTRL0				0x000000a0
19248c2ecf20Sopenharmony_ci
19258c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CTRL1				0x000000a4
19268c2ecf20Sopenharmony_ci
19278c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CTRL2				0x000000a8
19288c2ecf20Sopenharmony_ci
19298c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CTRL3				0x000000ac
19308c2ecf20Sopenharmony_ci
19318c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_CTRL4				0x000000b0
19328c2ecf20Sopenharmony_ci
19338c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_0			0x000000b4
19348c2ecf20Sopenharmony_ci
19358c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_1			0x000000b8
19368c2ecf20Sopenharmony_ci
19378c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_2			0x000000bc
19388c2ecf20Sopenharmony_ci
19398c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_3			0x000000c0
19408c2ecf20Sopenharmony_ci
19418c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_4			0x000000c4
19428c2ecf20Sopenharmony_ci
19438c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_5			0x000000c8
19448c2ecf20Sopenharmony_ci
19458c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_6			0x000000cc
19468c2ecf20Sopenharmony_ci
19478c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_7			0x000000d0
19488c2ecf20Sopenharmony_ci
19498c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_8			0x000000d4
19508c2ecf20Sopenharmony_ci
19518c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_9			0x000000d8
19528c2ecf20Sopenharmony_ci
19538c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_10			0x000000dc
19548c2ecf20Sopenharmony_ci
19558c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_11			0x000000e0
19568c2ecf20Sopenharmony_ci
19578c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_12			0x000000e4
19588c2ecf20Sopenharmony_ci
19598c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_TIMING_CTRL_13			0x000000e8
19608c2ecf20Sopenharmony_ci
19618c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_HSTX_STR_CTRL_0		0x000000ec
19628c2ecf20Sopenharmony_ci
19638c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_HSTX_STR_CTRL_1		0x000000f0
19648c2ecf20Sopenharmony_ci
19658c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_RESCODE_OFFSET_TOP_CTRL	0x000000f4
19668c2ecf20Sopenharmony_ci
19678c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_RESCODE_OFFSET_BOT_CTRL	0x000000f8
19688c2ecf20Sopenharmony_ci
19698c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_RESCODE_OFFSET_MID_CTRL	0x000000fc
19708c2ecf20Sopenharmony_ci
19718c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_LPTX_STR_CTRL			0x00000100
19728c2ecf20Sopenharmony_ci
19738c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_PEMPH_CTRL_0			0x00000104
19748c2ecf20Sopenharmony_ci
19758c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_PEMPH_CTRL_1			0x00000108
19768c2ecf20Sopenharmony_ci
19778c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_STR_SWI_CAL_SEL_CTRL		0x0000010c
19788c2ecf20Sopenharmony_ci
19798c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_VREG_CTRL_1				0x00000110
19808c2ecf20Sopenharmony_ci
19818c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_CTRL_4				0x00000114
19828c2ecf20Sopenharmony_ci
19838c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_GLBL_DIGTOP_SPARE4			0x00000128
19848c2ecf20Sopenharmony_ci
19858c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_PHY_STATUS				0x00000140
19868c2ecf20Sopenharmony_ci
19878c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_STATUS0			0x00000148
19888c2ecf20Sopenharmony_ci
19898c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_CMN_LANE_STATUS1			0x0000014c
19908c2ecf20Sopenharmony_ci
19918c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN(uint32_t i0) { return 0x00000000 + 0x80*i0; }
19928c2ecf20Sopenharmony_ci
19938c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_CFG0(uint32_t i0) { return 0x00000000 + 0x80*i0; }
19948c2ecf20Sopenharmony_ci
19958c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_CFG1(uint32_t i0) { return 0x00000004 + 0x80*i0; }
19968c2ecf20Sopenharmony_ci
19978c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_CFG2(uint32_t i0) { return 0x00000008 + 0x80*i0; }
19988c2ecf20Sopenharmony_ci
19998c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_TEST_DATAPATH(uint32_t i0) { return 0x0000000c + 0x80*i0; }
20008c2ecf20Sopenharmony_ci
20018c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_PIN_SWAP(uint32_t i0) { return 0x00000010 + 0x80*i0; }
20028c2ecf20Sopenharmony_ci
20038c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_LPRX_CTRL(uint32_t i0) { return 0x00000014 + 0x80*i0; }
20048c2ecf20Sopenharmony_ci
20058c2ecf20Sopenharmony_cistatic inline uint32_t REG_DSI_7nm_PHY_LN_TX_DCTRL(uint32_t i0) { return 0x00000018 + 0x80*i0; }
20068c2ecf20Sopenharmony_ci
20078c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_ONE			0x00000000
20088c2ecf20Sopenharmony_ci
20098c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_TWO			0x00000004
20108c2ecf20Sopenharmony_ci
20118c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_INT_LOOP_SETTINGS			0x00000008
20128c2ecf20Sopenharmony_ci
20138c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_INT_LOOP_SETTINGS_TWO		0x0000000c
20148c2ecf20Sopenharmony_ci
20158c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_THREE		0x00000010
20168c2ecf20Sopenharmony_ci
20178c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_FOUR		0x00000014
20188c2ecf20Sopenharmony_ci
20198c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_FIVE		0x00000018
20208c2ecf20Sopenharmony_ci
20218c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_INT_LOOP_CONTROLS			0x0000001c
20228c2ecf20Sopenharmony_ci
20238c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DSM_DIVIDER				0x00000020
20248c2ecf20Sopenharmony_ci
20258c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FEEDBACK_DIVIDER			0x00000024
20268c2ecf20Sopenharmony_ci
20278c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SYSTEM_MUXES			0x00000028
20288c2ecf20Sopenharmony_ci
20298c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_UPDATE_CONTROL_OVERRIDES	0x0000002c
20308c2ecf20Sopenharmony_ci
20318c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CMODE				0x00000030
20328c2ecf20Sopenharmony_ci
20338c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PSM_CTRL				0x00000034
20348c2ecf20Sopenharmony_ci
20358c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_RSM_CTRL				0x00000038
20368c2ecf20Sopenharmony_ci
20378c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_TUNE_MAP			0x0000003c
20388c2ecf20Sopenharmony_ci
20398c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_CNTRL				0x00000040
20408c2ecf20Sopenharmony_ci
20418c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CALIBRATION_SETTINGS		0x00000044
20428c2ecf20Sopenharmony_ci
20438c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_TIMER_LOW		0x00000048
20448c2ecf20Sopenharmony_ci
20458c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_TIMER_HIGH		0x0000004c
20468c2ecf20Sopenharmony_ci
20478c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_SETTINGS		0x00000050
20488c2ecf20Sopenharmony_ci
20498c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_MIN			0x00000054
20508c2ecf20Sopenharmony_ci
20518c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_MAX			0x00000058
20528c2ecf20Sopenharmony_ci
20538c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_PFILT			0x0000005c
20548c2ecf20Sopenharmony_ci
20558c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_IFILT			0x00000060
20568c2ecf20Sopenharmony_ci
20578c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_SETTINGS_TWO		0x00000064
20588c2ecf20Sopenharmony_ci
20598c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_SETTINGS_THREE		0x00000068
20608c2ecf20Sopenharmony_ci
20618c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL_SETTINGS_FOUR		0x0000006c
20628c2ecf20Sopenharmony_ci
20638c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_ICODE_HIGH			0x00000070
20648c2ecf20Sopenharmony_ci
20658c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_ICODE_LOW			0x00000074
20668c2ecf20Sopenharmony_ci
20678c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DETECT_SETTINGS_ONE		0x00000078
20688c2ecf20Sopenharmony_ci
20698c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DETECT_THRESH			0x0000007c
20708c2ecf20Sopenharmony_ci
20718c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DET_REFCLK_HIGH		0x00000080
20728c2ecf20Sopenharmony_ci
20738c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DET_REFCLK_LOW			0x00000084
20748c2ecf20Sopenharmony_ci
20758c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DET_PLLCLK_HIGH		0x00000088
20768c2ecf20Sopenharmony_ci
20778c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_DET_PLLCLK_LOW			0x0000008c
20788c2ecf20Sopenharmony_ci
20798c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PFILT				0x00000090
20808c2ecf20Sopenharmony_ci
20818c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_IFILT				0x00000094
20828c2ecf20Sopenharmony_ci
20838c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_GAIN				0x00000098
20848c2ecf20Sopenharmony_ci
20858c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ICODE_LOW				0x0000009c
20868c2ecf20Sopenharmony_ci
20878c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ICODE_HIGH				0x000000a0
20888c2ecf20Sopenharmony_ci
20898c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_LOCKDET				0x000000a4
20908c2ecf20Sopenharmony_ci
20918c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_OUTDIV				0x000000a8
20928c2ecf20Sopenharmony_ci
20938c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FASTLOCK_CONTROL			0x000000ac
20948c2ecf20Sopenharmony_ci
20958c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PASS_OUT_OVERRIDE_ONE		0x000000b0
20968c2ecf20Sopenharmony_ci
20978c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PASS_OUT_OVERRIDE_TWO		0x000000b4
20988c2ecf20Sopenharmony_ci
20998c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CORE_OVERRIDE			0x000000b8
21008c2ecf20Sopenharmony_ci
21018c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CORE_INPUT_OVERRIDE			0x000000bc
21028c2ecf20Sopenharmony_ci
21038c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_RATE_CHANGE				0x000000c0
21048c2ecf20Sopenharmony_ci
21058c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_DIGITAL_TIMERS			0x000000c4
21068c2ecf20Sopenharmony_ci
21078c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_DIGITAL_TIMERS_TWO		0x000000c8
21088c2ecf20Sopenharmony_ci
21098c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DECIMAL_DIV_START			0x000000cc
21108c2ecf20Sopenharmony_ci
21118c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_LOW			0x000000d0
21128c2ecf20Sopenharmony_ci
21138c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_MID			0x000000d4
21148c2ecf20Sopenharmony_ci
21158c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_HIGH			0x000000d8
21168c2ecf20Sopenharmony_ci
21178c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEC_FRAC_MUXES			0x000000dc
21188c2ecf20Sopenharmony_ci
21198c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DECIMAL_DIV_START_1			0x000000e0
21208c2ecf20Sopenharmony_ci
21218c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_LOW_1		0x000000e4
21228c2ecf20Sopenharmony_ci
21238c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_MID_1		0x000000e8
21248c2ecf20Sopenharmony_ci
21258c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_HIGH_1		0x000000ec
21268c2ecf20Sopenharmony_ci
21278c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DECIMAL_DIV_START_2			0x000000f0
21288c2ecf20Sopenharmony_ci
21298c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_LOW_2		0x000000f4
21308c2ecf20Sopenharmony_ci
21318c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_MID_2		0x000000f8
21328c2ecf20Sopenharmony_ci
21338c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FRAC_DIV_START_HIGH_2		0x000000fc
21348c2ecf20Sopenharmony_ci
21358c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_MASH_CONTROL			0x00000100
21368c2ecf20Sopenharmony_ci
21378c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_LOW			0x00000104
21388c2ecf20Sopenharmony_ci
21398c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_HIGH			0x00000108
21408c2ecf20Sopenharmony_ci
21418c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_LOW			0x0000010c
21428c2ecf20Sopenharmony_ci
21438c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_HIGH			0x00000110
21448c2ecf20Sopenharmony_ci
21458c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_LOW			0x00000114
21468c2ecf20Sopenharmony_ci
21478c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_HIGH			0x00000118
21488c2ecf20Sopenharmony_ci
21498c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_MUX_CONTROL			0x0000011c
21508c2ecf20Sopenharmony_ci
21518c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_LOW_1			0x00000120
21528c2ecf20Sopenharmony_ci
21538c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_HIGH_1			0x00000124
21548c2ecf20Sopenharmony_ci
21558c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_LOW_1			0x00000128
21568c2ecf20Sopenharmony_ci
21578c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_HIGH_1			0x0000012c
21588c2ecf20Sopenharmony_ci
21598c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_LOW_1			0x00000130
21608c2ecf20Sopenharmony_ci
21618c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_HIGH_1			0x00000134
21628c2ecf20Sopenharmony_ci
21638c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_LOW_2			0x00000138
21648c2ecf20Sopenharmony_ci
21658c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_STEPSIZE_HIGH_2			0x0000013c
21668c2ecf20Sopenharmony_ci
21678c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_LOW_2			0x00000140
21688c2ecf20Sopenharmony_ci
21698c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_DIV_PER_HIGH_2			0x00000144
21708c2ecf20Sopenharmony_ci
21718c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_LOW_2			0x00000148
21728c2ecf20Sopenharmony_ci
21738c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_ADJPER_HIGH_2			0x0000014c
21748c2ecf20Sopenharmony_ci
21758c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SSC_CONTROL				0x00000150
21768c2ecf20Sopenharmony_ci
21778c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_OUTDIV_RATE			0x00000154
21788c2ecf20Sopenharmony_ci
21798c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_LOCKDET_RATE_1			0x00000158
21808c2ecf20Sopenharmony_ci
21818c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_LOCKDET_RATE_2			0x0000015c
21828c2ecf20Sopenharmony_ci
21838c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_PROP_GAIN_RATE_1		0x00000160
21848c2ecf20Sopenharmony_ci
21858c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_PROP_GAIN_RATE_2		0x00000164
21868c2ecf20Sopenharmony_ci
21878c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_BAND_SEL_RATE_1			0x00000168
21888c2ecf20Sopenharmony_ci
21898c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_BAND_SEL_RATE_2			0x0000016c
21908c2ecf20Sopenharmony_ci
21918c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_INT_GAIN_IFILT_BAND_1		0x00000170
21928c2ecf20Sopenharmony_ci
21938c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_INT_GAIN_IFILT_BAND_2		0x00000174
21948c2ecf20Sopenharmony_ci
21958c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_FL_INT_GAIN_PFILT_BAND_1	0x00000178
21968c2ecf20Sopenharmony_ci
21978c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_FL_INT_GAIN_PFILT_BAND_2	0x0000017c
21988c2ecf20Sopenharmony_ci
21998c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_FASTLOCK_EN_BAND		0x00000180
22008c2ecf20Sopenharmony_ci
22018c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_TUNE_ACCUM_INIT_MID		0x00000184
22028c2ecf20Sopenharmony_ci
22038c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_TUNE_ACCUM_INIT_HIGH		0x00000188
22048c2ecf20Sopenharmony_ci
22058c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FREQ_TUNE_ACCUM_INIT_MUX		0x0000018c
22068c2ecf20Sopenharmony_ci
22078c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_LOCK_OVERRIDE			0x00000190
22088c2ecf20Sopenharmony_ci
22098c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_LOCK_DELAY			0x00000194
22108c2ecf20Sopenharmony_ci
22118c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_LOCK_MIN_DELAY			0x00000198
22128c2ecf20Sopenharmony_ci
22138c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CLOCK_INVERTERS			0x0000019c
22148c2ecf20Sopenharmony_ci
22158c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SPARE_AND_JPC_OVERRIDES		0x000001a0
22168c2ecf20Sopenharmony_ci
22178c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BIAS_CONTROL_1			0x000001a4
22188c2ecf20Sopenharmony_ci
22198c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BIAS_CONTROL_2			0x000001a8
22208c2ecf20Sopenharmony_ci
22218c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ALOG_OBSV_BUS_CTRL_1		0x000001ac
22228c2ecf20Sopenharmony_ci
22238c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_COMMON_STATUS_ONE			0x000001b0
22248c2ecf20Sopenharmony_ci
22258c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_COMMON_STATUS_TWO			0x000001b4
22268c2ecf20Sopenharmony_ci
22278c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_BAND_SEL_CAL			0x000001b8
22288c2ecf20Sopenharmony_ci
22298c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ICODE_ACCUM_STATUS_LOW		0x000001bc
22308c2ecf20Sopenharmony_ci
22318c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ICODE_ACCUM_STATUS_HIGH		0x000001c0
22328c2ecf20Sopenharmony_ci
22338c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FD_OUT_LOW				0x000001c4
22348c2ecf20Sopenharmony_ci
22358c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FD_OUT_HIGH				0x000001c8
22368c2ecf20Sopenharmony_ci
22378c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ALOG_OBSV_BUS_STATUS_1		0x000001cc
22388c2ecf20Sopenharmony_ci
22398c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_MISC_CONFIG			0x000001d0
22408c2ecf20Sopenharmony_ci
22418c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_CONFIG				0x000001d4
22428c2ecf20Sopenharmony_ci
22438c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_FREQ_ACQ_TIME			0x000001d8
22448c2ecf20Sopenharmony_ci
22458c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_CODE0				0x000001dc
22468c2ecf20Sopenharmony_ci
22478c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_CODE1				0x000001e0
22488c2ecf20Sopenharmony_ci
22498c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_GAIN0				0x000001e4
22508c2ecf20Sopenharmony_ci
22518c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FLL_GAIN1				0x000001e8
22528c2ecf20Sopenharmony_ci
22538c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SW_RESET				0x000001ec
22548c2ecf20Sopenharmony_ci
22558c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_FAST_PWRUP				0x000001f0
22568c2ecf20Sopenharmony_ci
22578c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_LOCKTIME0				0x000001f4
22588c2ecf20Sopenharmony_ci
22598c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_LOCKTIME1				0x000001f8
22608c2ecf20Sopenharmony_ci
22618c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEBUG_BUS_SEL			0x000001fc
22628c2ecf20Sopenharmony_ci
22638c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEBUG_BUS0				0x00000200
22648c2ecf20Sopenharmony_ci
22658c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEBUG_BUS1				0x00000204
22668c2ecf20Sopenharmony_ci
22678c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEBUG_BUS2				0x00000208
22688c2ecf20Sopenharmony_ci
22698c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_DEBUG_BUS3				0x0000020c
22708c2ecf20Sopenharmony_ci
22718c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_FLL_CONTROL_OVERRIDES	0x00000210
22728c2ecf20Sopenharmony_ci
22738c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_CONFIG				0x00000214
22748c2ecf20Sopenharmony_ci
22758c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_CAL_CODE1_MODE0_STATUS		0x00000218
22768c2ecf20Sopenharmony_ci
22778c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_CAL_CODE1_MODE1_STATUS		0x0000021c
22788c2ecf20Sopenharmony_ci
22798c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_RESET_SM_STATUS			0x00000220
22808c2ecf20Sopenharmony_ci
22818c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_TDC_OFFSET				0x00000224
22828c2ecf20Sopenharmony_ci
22838c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PS3_PWRDOWN_CONTROLS		0x00000228
22848c2ecf20Sopenharmony_ci
22858c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PS4_PWRDOWN_CONTROLS		0x0000022c
22868c2ecf20Sopenharmony_ci
22878c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PLL_RST_CONTROLS			0x00000230
22888c2ecf20Sopenharmony_ci
22898c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_GEAR_BAND_SELECT_CONTROLS		0x00000234
22908c2ecf20Sopenharmony_ci
22918c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PSM_CLK_CONTROLS			0x00000238
22928c2ecf20Sopenharmony_ci
22938c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_SYSTEM_MUXES_2			0x0000023c
22948c2ecf20Sopenharmony_ci
22958c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_CONFIG_1			0x00000240
22968c2ecf20Sopenharmony_ci
22978c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_VCO_CONFIG_2			0x00000244
22988c2ecf20Sopenharmony_ci
22998c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CLOCK_INVERTERS_1			0x00000248
23008c2ecf20Sopenharmony_ci
23018c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CLOCK_INVERTERS_2			0x0000024c
23028c2ecf20Sopenharmony_ci
23038c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CMODE_1				0x00000250
23048c2ecf20Sopenharmony_ci
23058c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_CMODE_2				0x00000254
23068c2ecf20Sopenharmony_ci
23078c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_FIVE_1		0x00000258
23088c2ecf20Sopenharmony_ci
23098c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_ANALOG_CONTROLS_FIVE_2		0x0000025c
23108c2ecf20Sopenharmony_ci
23118c2ecf20Sopenharmony_ci#define REG_DSI_7nm_PHY_PLL_PERF_OPTIMIZE			0x00000260
23128c2ecf20Sopenharmony_ci
23138c2ecf20Sopenharmony_ci#endif /* DSI_XML */
2314