18c2ecf20Sopenharmony_ci#ifndef MMSS_CC_XML 28c2ecf20Sopenharmony_ci#define MMSS_CC_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 mmss_cc_clk { 508c2ecf20Sopenharmony_ci CLK = 0, 518c2ecf20Sopenharmony_ci PCLK = 1, 528c2ecf20Sopenharmony_ci}; 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci#define REG_MMSS_CC_AHB 0x00000008 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_cistatic inline uint32_t __offset_CLK(enum mmss_cc_clk idx) 578c2ecf20Sopenharmony_ci{ 588c2ecf20Sopenharmony_ci switch (idx) { 598c2ecf20Sopenharmony_ci case CLK: return 0x0000004c; 608c2ecf20Sopenharmony_ci case PCLK: return 0x00000130; 618c2ecf20Sopenharmony_ci default: return INVALID_IDX(idx); 628c2ecf20Sopenharmony_ci } 638c2ecf20Sopenharmony_ci} 648c2ecf20Sopenharmony_cistatic inline uint32_t REG_MMSS_CC_CLK(enum mmss_cc_clk i0) { return 0x00000000 + __offset_CLK(i0); } 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_cistatic inline uint32_t REG_MMSS_CC_CLK_CC(enum mmss_cc_clk i0) { return 0x00000000 + __offset_CLK(i0); } 678c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_CLK_EN 0x00000001 688c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_ROOT_EN 0x00000004 698c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_MND_EN 0x00000020 708c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_MND_MODE__MASK 0x000000c0 718c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_MND_MODE__SHIFT 6 728c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_CC_MND_MODE(uint32_t val) 738c2ecf20Sopenharmony_ci{ 748c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_CC_MND_MODE__SHIFT) & MMSS_CC_CLK_CC_MND_MODE__MASK; 758c2ecf20Sopenharmony_ci} 768c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_PMXO_SEL__MASK 0x00000300 778c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_CC_PMXO_SEL__SHIFT 8 788c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_CC_PMXO_SEL(uint32_t val) 798c2ecf20Sopenharmony_ci{ 808c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_CC_PMXO_SEL__SHIFT) & MMSS_CC_CLK_CC_PMXO_SEL__MASK; 818c2ecf20Sopenharmony_ci} 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_cistatic inline uint32_t REG_MMSS_CC_CLK_MD(enum mmss_cc_clk i0) { return 0x00000004 + __offset_CLK(i0); } 848c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_MD_D__MASK 0x000000ff 858c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_MD_D__SHIFT 0 868c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_MD_D(uint32_t val) 878c2ecf20Sopenharmony_ci{ 888c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_MD_D__SHIFT) & MMSS_CC_CLK_MD_D__MASK; 898c2ecf20Sopenharmony_ci} 908c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_MD_M__MASK 0x0000ff00 918c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_MD_M__SHIFT 8 928c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_MD_M(uint32_t val) 938c2ecf20Sopenharmony_ci{ 948c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_MD_M__SHIFT) & MMSS_CC_CLK_MD_M__MASK; 958c2ecf20Sopenharmony_ci} 968c2ecf20Sopenharmony_ci 978c2ecf20Sopenharmony_cistatic inline uint32_t REG_MMSS_CC_CLK_NS(enum mmss_cc_clk i0) { return 0x00000008 + __offset_CLK(i0); } 988c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_SRC__MASK 0x0000000f 998c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_SRC__SHIFT 0 1008c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_NS_SRC(uint32_t val) 1018c2ecf20Sopenharmony_ci{ 1028c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_NS_SRC__SHIFT) & MMSS_CC_CLK_NS_SRC__MASK; 1038c2ecf20Sopenharmony_ci} 1048c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_PRE_DIV_FUNC__MASK 0x00fff000 1058c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_PRE_DIV_FUNC__SHIFT 12 1068c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_NS_PRE_DIV_FUNC(uint32_t val) 1078c2ecf20Sopenharmony_ci{ 1088c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_NS_PRE_DIV_FUNC__SHIFT) & MMSS_CC_CLK_NS_PRE_DIV_FUNC__MASK; 1098c2ecf20Sopenharmony_ci} 1108c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_VAL__MASK 0xff000000 1118c2ecf20Sopenharmony_ci#define MMSS_CC_CLK_NS_VAL__SHIFT 24 1128c2ecf20Sopenharmony_cistatic inline uint32_t MMSS_CC_CLK_NS_VAL(uint32_t val) 1138c2ecf20Sopenharmony_ci{ 1148c2ecf20Sopenharmony_ci return ((val) << MMSS_CC_CLK_NS_VAL__SHIFT) & MMSS_CC_CLK_NS_VAL__MASK; 1158c2ecf20Sopenharmony_ci} 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci#define REG_MMSS_CC_DSI2_PIXEL_CC 0x00000094 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ci#define REG_MMSS_CC_DSI2_PIXEL_NS 0x000000e4 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci#define REG_MMSS_CC_DSI2_PIXEL_CC2 0x00000264 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci#endif /* MMSS_CC_XML */ 125