18c2ecf20Sopenharmony_ci#ifndef EDP_XML
28c2ecf20Sopenharmony_ci#define EDP_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 edp_color_depth {
508c2ecf20Sopenharmony_ci	EDP_6BIT = 0,
518c2ecf20Sopenharmony_ci	EDP_8BIT = 1,
528c2ecf20Sopenharmony_ci	EDP_10BIT = 2,
538c2ecf20Sopenharmony_ci	EDP_12BIT = 3,
548c2ecf20Sopenharmony_ci	EDP_16BIT = 4,
558c2ecf20Sopenharmony_ci};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_cienum edp_component_format {
588c2ecf20Sopenharmony_ci	EDP_RGB = 0,
598c2ecf20Sopenharmony_ci	EDP_YUV422 = 1,
608c2ecf20Sopenharmony_ci	EDP_YUV444 = 2,
618c2ecf20Sopenharmony_ci};
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#define REG_EDP_MAINLINK_CTRL					0x00000004
648c2ecf20Sopenharmony_ci#define EDP_MAINLINK_CTRL_ENABLE				0x00000001
658c2ecf20Sopenharmony_ci#define EDP_MAINLINK_CTRL_RESET					0x00000002
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci#define REG_EDP_STATE_CTRL					0x00000008
688c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_TRAIN_PATTERN_1				0x00000001
698c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_TRAIN_PATTERN_2				0x00000002
708c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_TRAIN_PATTERN_3				0x00000004
718c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_SYMBOL_ERR_RATE_MEAS			0x00000008
728c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_PRBS7					0x00000010
738c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_CUSTOM_80_BIT_PATTERN			0x00000020
748c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_SEND_VIDEO				0x00000040
758c2ecf20Sopenharmony_ci#define EDP_STATE_CTRL_PUSH_IDLE				0x00000080
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci#define REG_EDP_CONFIGURATION_CTRL				0x0000000c
788c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_SYNC_CLK				0x00000001
798c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_STATIC_MVID			0x00000002
808c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_PROGRESSIVE			0x00000004
818c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_LANES__MASK			0x00000030
828c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_LANES__SHIFT			4
838c2ecf20Sopenharmony_cistatic inline uint32_t EDP_CONFIGURATION_CTRL_LANES(uint32_t val)
848c2ecf20Sopenharmony_ci{
858c2ecf20Sopenharmony_ci	return ((val) << EDP_CONFIGURATION_CTRL_LANES__SHIFT) & EDP_CONFIGURATION_CTRL_LANES__MASK;
868c2ecf20Sopenharmony_ci}
878c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_ENHANCED_FRAMING			0x00000040
888c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_COLOR__MASK			0x00000100
898c2ecf20Sopenharmony_ci#define EDP_CONFIGURATION_CTRL_COLOR__SHIFT			8
908c2ecf20Sopenharmony_cistatic inline uint32_t EDP_CONFIGURATION_CTRL_COLOR(enum edp_color_depth val)
918c2ecf20Sopenharmony_ci{
928c2ecf20Sopenharmony_ci	return ((val) << EDP_CONFIGURATION_CTRL_COLOR__SHIFT) & EDP_CONFIGURATION_CTRL_COLOR__MASK;
938c2ecf20Sopenharmony_ci}
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci#define REG_EDP_SOFTWARE_MVID					0x00000014
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci#define REG_EDP_SOFTWARE_NVID					0x00000018
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#define REG_EDP_TOTAL_HOR_VER					0x0000001c
1008c2ecf20Sopenharmony_ci#define EDP_TOTAL_HOR_VER_HORIZ__MASK				0x0000ffff
1018c2ecf20Sopenharmony_ci#define EDP_TOTAL_HOR_VER_HORIZ__SHIFT				0
1028c2ecf20Sopenharmony_cistatic inline uint32_t EDP_TOTAL_HOR_VER_HORIZ(uint32_t val)
1038c2ecf20Sopenharmony_ci{
1048c2ecf20Sopenharmony_ci	return ((val) << EDP_TOTAL_HOR_VER_HORIZ__SHIFT) & EDP_TOTAL_HOR_VER_HORIZ__MASK;
1058c2ecf20Sopenharmony_ci}
1068c2ecf20Sopenharmony_ci#define EDP_TOTAL_HOR_VER_VERT__MASK				0xffff0000
1078c2ecf20Sopenharmony_ci#define EDP_TOTAL_HOR_VER_VERT__SHIFT				16
1088c2ecf20Sopenharmony_cistatic inline uint32_t EDP_TOTAL_HOR_VER_VERT(uint32_t val)
1098c2ecf20Sopenharmony_ci{
1108c2ecf20Sopenharmony_ci	return ((val) << EDP_TOTAL_HOR_VER_VERT__SHIFT) & EDP_TOTAL_HOR_VER_VERT__MASK;
1118c2ecf20Sopenharmony_ci}
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci#define REG_EDP_START_HOR_VER_FROM_SYNC				0x00000020
1148c2ecf20Sopenharmony_ci#define EDP_START_HOR_VER_FROM_SYNC_HORIZ__MASK			0x0000ffff
1158c2ecf20Sopenharmony_ci#define EDP_START_HOR_VER_FROM_SYNC_HORIZ__SHIFT		0
1168c2ecf20Sopenharmony_cistatic inline uint32_t EDP_START_HOR_VER_FROM_SYNC_HORIZ(uint32_t val)
1178c2ecf20Sopenharmony_ci{
1188c2ecf20Sopenharmony_ci	return ((val) << EDP_START_HOR_VER_FROM_SYNC_HORIZ__SHIFT) & EDP_START_HOR_VER_FROM_SYNC_HORIZ__MASK;
1198c2ecf20Sopenharmony_ci}
1208c2ecf20Sopenharmony_ci#define EDP_START_HOR_VER_FROM_SYNC_VERT__MASK			0xffff0000
1218c2ecf20Sopenharmony_ci#define EDP_START_HOR_VER_FROM_SYNC_VERT__SHIFT			16
1228c2ecf20Sopenharmony_cistatic inline uint32_t EDP_START_HOR_VER_FROM_SYNC_VERT(uint32_t val)
1238c2ecf20Sopenharmony_ci{
1248c2ecf20Sopenharmony_ci	return ((val) << EDP_START_HOR_VER_FROM_SYNC_VERT__SHIFT) & EDP_START_HOR_VER_FROM_SYNC_VERT__MASK;
1258c2ecf20Sopenharmony_ci}
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci#define REG_EDP_HSYNC_VSYNC_WIDTH_POLARITY			0x00000024
1288c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_HORIZ__MASK		0x00007fff
1298c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_HORIZ__SHIFT		0
1308c2ecf20Sopenharmony_cistatic inline uint32_t EDP_HSYNC_VSYNC_WIDTH_POLARITY_HORIZ(uint32_t val)
1318c2ecf20Sopenharmony_ci{
1328c2ecf20Sopenharmony_ci	return ((val) << EDP_HSYNC_VSYNC_WIDTH_POLARITY_HORIZ__SHIFT) & EDP_HSYNC_VSYNC_WIDTH_POLARITY_HORIZ__MASK;
1338c2ecf20Sopenharmony_ci}
1348c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_NHSYNC			0x00008000
1358c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_VERT__MASK		0x7fff0000
1368c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_VERT__SHIFT		16
1378c2ecf20Sopenharmony_cistatic inline uint32_t EDP_HSYNC_VSYNC_WIDTH_POLARITY_VERT(uint32_t val)
1388c2ecf20Sopenharmony_ci{
1398c2ecf20Sopenharmony_ci	return ((val) << EDP_HSYNC_VSYNC_WIDTH_POLARITY_VERT__SHIFT) & EDP_HSYNC_VSYNC_WIDTH_POLARITY_VERT__MASK;
1408c2ecf20Sopenharmony_ci}
1418c2ecf20Sopenharmony_ci#define EDP_HSYNC_VSYNC_WIDTH_POLARITY_NVSYNC			0x80000000
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci#define REG_EDP_ACTIVE_HOR_VER					0x00000028
1448c2ecf20Sopenharmony_ci#define EDP_ACTIVE_HOR_VER_HORIZ__MASK				0x0000ffff
1458c2ecf20Sopenharmony_ci#define EDP_ACTIVE_HOR_VER_HORIZ__SHIFT				0
1468c2ecf20Sopenharmony_cistatic inline uint32_t EDP_ACTIVE_HOR_VER_HORIZ(uint32_t val)
1478c2ecf20Sopenharmony_ci{
1488c2ecf20Sopenharmony_ci	return ((val) << EDP_ACTIVE_HOR_VER_HORIZ__SHIFT) & EDP_ACTIVE_HOR_VER_HORIZ__MASK;
1498c2ecf20Sopenharmony_ci}
1508c2ecf20Sopenharmony_ci#define EDP_ACTIVE_HOR_VER_VERT__MASK				0xffff0000
1518c2ecf20Sopenharmony_ci#define EDP_ACTIVE_HOR_VER_VERT__SHIFT				16
1528c2ecf20Sopenharmony_cistatic inline uint32_t EDP_ACTIVE_HOR_VER_VERT(uint32_t val)
1538c2ecf20Sopenharmony_ci{
1548c2ecf20Sopenharmony_ci	return ((val) << EDP_ACTIVE_HOR_VER_VERT__SHIFT) & EDP_ACTIVE_HOR_VER_VERT__MASK;
1558c2ecf20Sopenharmony_ci}
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci#define REG_EDP_MISC1_MISC0					0x0000002c
1588c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_MISC0__MASK				0x000000ff
1598c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_MISC0__SHIFT				0
1608c2ecf20Sopenharmony_cistatic inline uint32_t EDP_MISC1_MISC0_MISC0(uint32_t val)
1618c2ecf20Sopenharmony_ci{
1628c2ecf20Sopenharmony_ci	return ((val) << EDP_MISC1_MISC0_MISC0__SHIFT) & EDP_MISC1_MISC0_MISC0__MASK;
1638c2ecf20Sopenharmony_ci}
1648c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_SYNC					0x00000001
1658c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_COMPONENT_FORMAT__MASK			0x00000006
1668c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_COMPONENT_FORMAT__SHIFT			1
1678c2ecf20Sopenharmony_cistatic inline uint32_t EDP_MISC1_MISC0_COMPONENT_FORMAT(enum edp_component_format val)
1688c2ecf20Sopenharmony_ci{
1698c2ecf20Sopenharmony_ci	return ((val) << EDP_MISC1_MISC0_COMPONENT_FORMAT__SHIFT) & EDP_MISC1_MISC0_COMPONENT_FORMAT__MASK;
1708c2ecf20Sopenharmony_ci}
1718c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_CEA					0x00000008
1728c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_BT709_5					0x00000010
1738c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_COLOR__MASK				0x000000e0
1748c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_COLOR__SHIFT				5
1758c2ecf20Sopenharmony_cistatic inline uint32_t EDP_MISC1_MISC0_COLOR(enum edp_color_depth val)
1768c2ecf20Sopenharmony_ci{
1778c2ecf20Sopenharmony_ci	return ((val) << EDP_MISC1_MISC0_COLOR__SHIFT) & EDP_MISC1_MISC0_COLOR__MASK;
1788c2ecf20Sopenharmony_ci}
1798c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_MISC1__MASK				0x0000ff00
1808c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_MISC1__SHIFT				8
1818c2ecf20Sopenharmony_cistatic inline uint32_t EDP_MISC1_MISC0_MISC1(uint32_t val)
1828c2ecf20Sopenharmony_ci{
1838c2ecf20Sopenharmony_ci	return ((val) << EDP_MISC1_MISC0_MISC1__SHIFT) & EDP_MISC1_MISC0_MISC1__MASK;
1848c2ecf20Sopenharmony_ci}
1858c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_INTERLACED_ODD				0x00000100
1868c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_STEREO__MASK				0x00000600
1878c2ecf20Sopenharmony_ci#define EDP_MISC1_MISC0_STEREO__SHIFT				9
1888c2ecf20Sopenharmony_cistatic inline uint32_t EDP_MISC1_MISC0_STEREO(uint32_t val)
1898c2ecf20Sopenharmony_ci{
1908c2ecf20Sopenharmony_ci	return ((val) << EDP_MISC1_MISC0_STEREO__SHIFT) & EDP_MISC1_MISC0_STEREO__MASK;
1918c2ecf20Sopenharmony_ci}
1928c2ecf20Sopenharmony_ci
1938c2ecf20Sopenharmony_ci#define REG_EDP_PHY_CTRL					0x00000074
1948c2ecf20Sopenharmony_ci#define EDP_PHY_CTRL_SW_RESET_PLL				0x00000001
1958c2ecf20Sopenharmony_ci#define EDP_PHY_CTRL_SW_RESET					0x00000004
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_ci#define REG_EDP_MAINLINK_READY					0x00000084
1988c2ecf20Sopenharmony_ci#define EDP_MAINLINK_READY_TRAIN_PATTERN_1_READY		0x00000008
1998c2ecf20Sopenharmony_ci#define EDP_MAINLINK_READY_TRAIN_PATTERN_2_READY		0x00000010
2008c2ecf20Sopenharmony_ci#define EDP_MAINLINK_READY_TRAIN_PATTERN_3_READY		0x00000020
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci#define REG_EDP_AUX_CTRL					0x00000300
2038c2ecf20Sopenharmony_ci#define EDP_AUX_CTRL_ENABLE					0x00000001
2048c2ecf20Sopenharmony_ci#define EDP_AUX_CTRL_RESET					0x00000002
2058c2ecf20Sopenharmony_ci
2068c2ecf20Sopenharmony_ci#define REG_EDP_INTERRUPT_REG_1					0x00000308
2078c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_HPD					0x00000001
2088c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_HPD_ACK				0x00000002
2098c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_HPD_EN				0x00000004
2108c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_I2C_DONE			0x00000008
2118c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_I2C_DONE_ACK			0x00000010
2128c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_I2C_DONE_EN			0x00000020
2138c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_ADDR				0x00000040
2148c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_ADDR_ACK			0x00000080
2158c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_ADDR_EN			0x00000100
2168c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_TIMEOUT				0x00000200
2178c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_TIMEOUT_ACK				0x00000400
2188c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_TIMEOUT_EN				0x00000800
2198c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_NACK_DEFER				0x00001000
2208c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_NACK_DEFER_ACK			0x00002000
2218c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_NACK_DEFER_EN			0x00004000
2228c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_DATA_CNT			0x00008000
2238c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_DATA_CNT_ACK			0x00010000
2248c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_WRONG_DATA_CNT_EN			0x00020000
2258c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_NACK				0x00040000
2268c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_NACK_ACK			0x00080000
2278c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_NACK_EN				0x00100000
2288c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_DEFER				0x00200000
2298c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_DEFER_ACK			0x00400000
2308c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_I2C_DEFER_EN			0x00800000
2318c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_PLL_UNLOCK				0x01000000
2328c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_PLL_UNLOCK_ACK			0x02000000
2338c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_PLL_UNLOCK_EN			0x04000000
2348c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_ERROR				0x08000000
2358c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_ERROR_ACK			0x10000000
2368c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_1_AUX_ERROR_EN			0x20000000
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci#define REG_EDP_INTERRUPT_REG_2					0x0000030c
2398c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_READY_FOR_VIDEO			0x00000001
2408c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_READY_FOR_VIDEO_ACK			0x00000002
2418c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_READY_FOR_VIDEO_EN			0x00000004
2428c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT			0x00000008
2438c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT_ACK		0x00000010
2448c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_IDLE_PATTERNs_SENT_EN		0x00000020
2458c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_FRAME_END				0x00000200
2468c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_FRAME_END_ACK			0x00000080
2478c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_FRAME_END_EN			0x00000100
2488c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_CRC_UPDATED				0x00000200
2498c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_CRC_UPDATED_ACK			0x00000400
2508c2ecf20Sopenharmony_ci#define EDP_INTERRUPT_REG_2_CRC_UPDATED_EN			0x00000800
2518c2ecf20Sopenharmony_ci
2528c2ecf20Sopenharmony_ci#define REG_EDP_INTERRUPT_TRANS_NUM				0x00000310
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci#define REG_EDP_AUX_DATA					0x00000314
2558c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_READ					0x00000001
2568c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_DATA__MASK					0x0000ff00
2578c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_DATA__SHIFT				8
2588c2ecf20Sopenharmony_cistatic inline uint32_t EDP_AUX_DATA_DATA(uint32_t val)
2598c2ecf20Sopenharmony_ci{
2608c2ecf20Sopenharmony_ci	return ((val) << EDP_AUX_DATA_DATA__SHIFT) & EDP_AUX_DATA_DATA__MASK;
2618c2ecf20Sopenharmony_ci}
2628c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_INDEX__MASK				0x00ff0000
2638c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_INDEX__SHIFT				16
2648c2ecf20Sopenharmony_cistatic inline uint32_t EDP_AUX_DATA_INDEX(uint32_t val)
2658c2ecf20Sopenharmony_ci{
2668c2ecf20Sopenharmony_ci	return ((val) << EDP_AUX_DATA_INDEX__SHIFT) & EDP_AUX_DATA_INDEX__MASK;
2678c2ecf20Sopenharmony_ci}
2688c2ecf20Sopenharmony_ci#define EDP_AUX_DATA_INDEX_WRITE				0x80000000
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci#define REG_EDP_AUX_TRANS_CTRL					0x00000318
2718c2ecf20Sopenharmony_ci#define EDP_AUX_TRANS_CTRL_I2C					0x00000100
2728c2ecf20Sopenharmony_ci#define EDP_AUX_TRANS_CTRL_GO					0x00000200
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci#define REG_EDP_AUX_STATUS					0x00000324
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_cistatic inline uint32_t REG_EDP_PHY_LN(uint32_t i0) { return 0x00000400 + 0x40*i0; }
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_cistatic inline uint32_t REG_EDP_PHY_LN_PD_CTL(uint32_t i0) { return 0x00000404 + 0x40*i0; }
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_VM_CFG0					0x00000510
2818c2ecf20Sopenharmony_ci
2828c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_VM_CFG1					0x00000514
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_MISC9					0x00000518
2858c2ecf20Sopenharmony_ci
2868c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_CFG					0x00000528
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_PD_CTL					0x0000052c
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci#define REG_EDP_PHY_GLB_PHY_STATUS				0x00000598
2918c2ecf20Sopenharmony_ci
2928c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_REFCLK_CFG				0x00000000
2938c2ecf20Sopenharmony_ci
2948c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_POSTDIV1_CFG			0x00000004
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CHGPUMP_CFG			0x00000008
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_VCOLPF_CFG				0x0000000c
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_VREG_CFG				0x00000010
3018c2ecf20Sopenharmony_ci
3028c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_PWRGEN_CFG				0x00000014
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_DMUX_CFG				0x00000018
3058c2ecf20Sopenharmony_ci
3068c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_AMUX_CFG				0x0000001c
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_GLB_CFG				0x00000020
3098c2ecf20Sopenharmony_ci#define EDP_28nm_PHY_PLL_GLB_CFG_PLL_PWRDN_B			0x00000001
3108c2ecf20Sopenharmony_ci#define EDP_28nm_PHY_PLL_GLB_CFG_PLL_LDO_PWRDN_B		0x00000002
3118c2ecf20Sopenharmony_ci#define EDP_28nm_PHY_PLL_GLB_CFG_PLL_PWRGEN_PWRDN_B		0x00000004
3128c2ecf20Sopenharmony_ci#define EDP_28nm_PHY_PLL_GLB_CFG_PLL_ENABLE			0x00000008
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_POSTDIV2_CFG			0x00000024
3158c2ecf20Sopenharmony_ci
3168c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_POSTDIV3_CFG			0x00000028
3178c2ecf20Sopenharmony_ci
3188c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LPFR_CFG				0x0000002c
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LPFC1_CFG				0x00000030
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LPFC2_CFG				0x00000034
3238c2ecf20Sopenharmony_ci
3248c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SDM_CFG0				0x00000038
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SDM_CFG1				0x0000003c
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SDM_CFG2				0x00000040
3298c2ecf20Sopenharmony_ci
3308c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SDM_CFG3				0x00000044
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SDM_CFG4				0x00000048
3338c2ecf20Sopenharmony_ci
3348c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SSC_CFG0				0x0000004c
3358c2ecf20Sopenharmony_ci
3368c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SSC_CFG1				0x00000050
3378c2ecf20Sopenharmony_ci
3388c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SSC_CFG2				0x00000054
3398c2ecf20Sopenharmony_ci
3408c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_SSC_CFG3				0x00000058
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LKDET_CFG0				0x0000005c
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LKDET_CFG1				0x00000060
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_LKDET_CFG2				0x00000064
3478c2ecf20Sopenharmony_ci
3488c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_TEST_CFG				0x00000068
3498c2ecf20Sopenharmony_ci#define EDP_28nm_PHY_PLL_TEST_CFG_PLL_SW_RESET			0x00000001
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG0				0x0000006c
3528c2ecf20Sopenharmony_ci
3538c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG1				0x00000070
3548c2ecf20Sopenharmony_ci
3558c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG2				0x00000074
3568c2ecf20Sopenharmony_ci
3578c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG3				0x00000078
3588c2ecf20Sopenharmony_ci
3598c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG4				0x0000007c
3608c2ecf20Sopenharmony_ci
3618c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG5				0x00000080
3628c2ecf20Sopenharmony_ci
3638c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG6				0x00000084
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG7				0x00000088
3668c2ecf20Sopenharmony_ci
3678c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG8				0x0000008c
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG9				0x00000090
3708c2ecf20Sopenharmony_ci
3718c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG10				0x00000094
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_CAL_CFG11				0x00000098
3748c2ecf20Sopenharmony_ci
3758c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_EFUSE_CFG				0x0000009c
3768c2ecf20Sopenharmony_ci
3778c2ecf20Sopenharmony_ci#define REG_EDP_28nm_PHY_PLL_DEBUG_BUS_SEL			0x000000a0
3788c2ecf20Sopenharmony_ci
3798c2ecf20Sopenharmony_ci
3808c2ecf20Sopenharmony_ci#endif /* EDP_XML */
381