18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2020 Intel Corporation. 48c2ecf20Sopenharmony_ci * Lei Chuanhua <Chuanhua.lei@intel.com> 58c2ecf20Sopenharmony_ci * Zhu Yixin <Yixin.zhu@intel.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __INTEL_LGM_CLK_H 88c2ecf20Sopenharmony_ci#define __INTEL_LGM_CLK_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* PLL clocks */ 118c2ecf20Sopenharmony_ci#define LGM_CLK_OSC 1 128c2ecf20Sopenharmony_ci#define LGM_CLK_PLLPP 2 138c2ecf20Sopenharmony_ci#define LGM_CLK_PLL2 3 148c2ecf20Sopenharmony_ci#define LGM_CLK_PLL0CZ 4 158c2ecf20Sopenharmony_ci#define LGM_CLK_PLL0B 5 168c2ecf20Sopenharmony_ci#define LGM_CLK_PLL1 6 178c2ecf20Sopenharmony_ci#define LGM_CLK_LJPLL3 7 188c2ecf20Sopenharmony_ci#define LGM_CLK_LJPLL4 8 198c2ecf20Sopenharmony_ci#define LGM_CLK_PLL0CM0 9 208c2ecf20Sopenharmony_ci#define LGM_CLK_PLL0CM1 10 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci/* clocks from PLLs */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* ROPLL clocks */ 258c2ecf20Sopenharmony_ci#define LGM_CLK_PP_HW 15 268c2ecf20Sopenharmony_ci#define LGM_CLK_PP_UC 16 278c2ecf20Sopenharmony_ci#define LGM_CLK_PP_FXD 17 288c2ecf20Sopenharmony_ci#define LGM_CLK_PP_TBM 18 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci/* PLL2 clocks */ 318c2ecf20Sopenharmony_ci#define LGM_CLK_DDR 20 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* PLL0CZ */ 348c2ecf20Sopenharmony_ci#define LGM_CLK_CM 25 358c2ecf20Sopenharmony_ci#define LGM_CLK_IC 26 368c2ecf20Sopenharmony_ci#define LGM_CLK_SDXC3 27 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci/* PLL0B */ 398c2ecf20Sopenharmony_ci#define LGM_CLK_NGI 30 408c2ecf20Sopenharmony_ci#define LGM_CLK_NOC4 31 418c2ecf20Sopenharmony_ci#define LGM_CLK_SW 32 428c2ecf20Sopenharmony_ci#define LGM_CLK_QSPI 33 438c2ecf20Sopenharmony_ci#define LGM_CLK_CQEM LGM_CLK_SW 448c2ecf20Sopenharmony_ci#define LGM_CLK_EMMC5 LGM_CLK_NOC4 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci/* PLL1 */ 478c2ecf20Sopenharmony_ci#define LGM_CLK_CT 35 488c2ecf20Sopenharmony_ci#define LGM_CLK_DSP 36 498c2ecf20Sopenharmony_ci#define LGM_CLK_VIF 37 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci/* LJPLL3 */ 528c2ecf20Sopenharmony_ci#define LGM_CLK_CML 40 538c2ecf20Sopenharmony_ci#define LGM_CLK_SERDES 41 548c2ecf20Sopenharmony_ci#define LGM_CLK_POOL 42 558c2ecf20Sopenharmony_ci#define LGM_CLK_PTP 43 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci/* LJPLL4 */ 588c2ecf20Sopenharmony_ci#define LGM_CLK_PCIE 45 598c2ecf20Sopenharmony_ci#define LGM_CLK_SATA LGM_CLK_PCIE 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci/* PLL0CM0 */ 628c2ecf20Sopenharmony_ci#define LGM_CLK_CPU0 50 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci/* PLL0CM1 */ 658c2ecf20Sopenharmony_ci#define LGM_CLK_CPU1 55 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci/* Miscellaneous clocks */ 688c2ecf20Sopenharmony_ci#define LGM_CLK_EMMC4 60 698c2ecf20Sopenharmony_ci#define LGM_CLK_SDXC2 61 708c2ecf20Sopenharmony_ci#define LGM_CLK_EMMC 62 718c2ecf20Sopenharmony_ci#define LGM_CLK_SDXC 63 728c2ecf20Sopenharmony_ci#define LGM_CLK_SLIC 64 738c2ecf20Sopenharmony_ci#define LGM_CLK_DCL 65 748c2ecf20Sopenharmony_ci#define LGM_CLK_DOCSIS 66 758c2ecf20Sopenharmony_ci#define LGM_CLK_PCM 67 768c2ecf20Sopenharmony_ci#define LGM_CLK_DDR_PHY 68 778c2ecf20Sopenharmony_ci#define LGM_CLK_PONDEF 69 788c2ecf20Sopenharmony_ci#define LGM_CLK_PL25M 70 798c2ecf20Sopenharmony_ci#define LGM_CLK_PL10M 71 808c2ecf20Sopenharmony_ci#define LGM_CLK_PL1544K 72 818c2ecf20Sopenharmony_ci#define LGM_CLK_PL2048K 73 828c2ecf20Sopenharmony_ci#define LGM_CLK_PL8K 74 838c2ecf20Sopenharmony_ci#define LGM_CLK_PON_NTR 75 848c2ecf20Sopenharmony_ci#define LGM_CLK_SYNC0 76 858c2ecf20Sopenharmony_ci#define LGM_CLK_SYNC1 77 868c2ecf20Sopenharmony_ci#define LGM_CLK_PROGDIV 78 878c2ecf20Sopenharmony_ci#define LGM_CLK_OD0 79 888c2ecf20Sopenharmony_ci#define LGM_CLK_OD1 80 898c2ecf20Sopenharmony_ci#define LGM_CLK_CBPHY0 81 908c2ecf20Sopenharmony_ci#define LGM_CLK_CBPHY1 82 918c2ecf20Sopenharmony_ci#define LGM_CLK_CBPHY2 83 928c2ecf20Sopenharmony_ci#define LGM_CLK_CBPHY3 84 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci/* Gate clocks */ 958c2ecf20Sopenharmony_ci/* Gate CLK0 */ 968c2ecf20Sopenharmony_ci#define LGM_GCLK_C55 100 978c2ecf20Sopenharmony_ci#define LGM_GCLK_QSPI 101 988c2ecf20Sopenharmony_ci#define LGM_GCLK_EIP197 102 998c2ecf20Sopenharmony_ci#define LGM_GCLK_VAULT 103 1008c2ecf20Sopenharmony_ci#define LGM_GCLK_TOE 104 1018c2ecf20Sopenharmony_ci#define LGM_GCLK_SDXC 105 1028c2ecf20Sopenharmony_ci#define LGM_GCLK_EMMC 106 1038c2ecf20Sopenharmony_ci#define LGM_GCLK_SPI_DBG 107 1048c2ecf20Sopenharmony_ci#define LGM_GCLK_DMA3 108 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci/* Gate CLK1 */ 1078c2ecf20Sopenharmony_ci#define LGM_GCLK_DMA0 120 1088c2ecf20Sopenharmony_ci#define LGM_GCLK_LEDC0 121 1098c2ecf20Sopenharmony_ci#define LGM_GCLK_LEDC1 122 1108c2ecf20Sopenharmony_ci#define LGM_GCLK_I2S0 123 1118c2ecf20Sopenharmony_ci#define LGM_GCLK_I2S1 124 1128c2ecf20Sopenharmony_ci#define LGM_GCLK_EBU 125 1138c2ecf20Sopenharmony_ci#define LGM_GCLK_PWM 126 1148c2ecf20Sopenharmony_ci#define LGM_GCLK_I2C0 127 1158c2ecf20Sopenharmony_ci#define LGM_GCLK_I2C1 128 1168c2ecf20Sopenharmony_ci#define LGM_GCLK_I2C2 129 1178c2ecf20Sopenharmony_ci#define LGM_GCLK_I2C3 130 1188c2ecf20Sopenharmony_ci#define LGM_GCLK_SSC0 131 1198c2ecf20Sopenharmony_ci#define LGM_GCLK_SSC1 132 1208c2ecf20Sopenharmony_ci#define LGM_GCLK_SSC2 133 1218c2ecf20Sopenharmony_ci#define LGM_GCLK_SSC3 134 1228c2ecf20Sopenharmony_ci#define LGM_GCLK_GPTC0 135 1238c2ecf20Sopenharmony_ci#define LGM_GCLK_GPTC1 136 1248c2ecf20Sopenharmony_ci#define LGM_GCLK_GPTC2 137 1258c2ecf20Sopenharmony_ci#define LGM_GCLK_GPTC3 138 1268c2ecf20Sopenharmony_ci#define LGM_GCLK_ASC0 139 1278c2ecf20Sopenharmony_ci#define LGM_GCLK_ASC1 140 1288c2ecf20Sopenharmony_ci#define LGM_GCLK_ASC2 141 1298c2ecf20Sopenharmony_ci#define LGM_GCLK_ASC3 142 1308c2ecf20Sopenharmony_ci#define LGM_GCLK_PCM0 143 1318c2ecf20Sopenharmony_ci#define LGM_GCLK_PCM1 144 1328c2ecf20Sopenharmony_ci#define LGM_GCLK_PCM2 145 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ci/* Gate CLK2 */ 1358c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE10 150 1368c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE11 151 1378c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE30 152 1388c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE31 153 1398c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE20 154 1408c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE21 155 1418c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE40 156 1428c2ecf20Sopenharmony_ci#define LGM_GCLK_PCIE41 157 1438c2ecf20Sopenharmony_ci#define LGM_GCLK_XPCS0 158 1448c2ecf20Sopenharmony_ci#define LGM_GCLK_XPCS1 159 1458c2ecf20Sopenharmony_ci#define LGM_GCLK_XPCS2 160 1468c2ecf20Sopenharmony_ci#define LGM_GCLK_XPCS3 161 1478c2ecf20Sopenharmony_ci#define LGM_GCLK_SATA0 162 1488c2ecf20Sopenharmony_ci#define LGM_GCLK_SATA1 163 1498c2ecf20Sopenharmony_ci#define LGM_GCLK_SATA2 164 1508c2ecf20Sopenharmony_ci#define LGM_GCLK_SATA3 165 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci/* Gate CLK3 */ 1538c2ecf20Sopenharmony_ci#define LGM_GCLK_ARCEM4 170 1548c2ecf20Sopenharmony_ci#define LGM_GCLK_IDMAR1 171 1558c2ecf20Sopenharmony_ci#define LGM_GCLK_IDMAT0 172 1568c2ecf20Sopenharmony_ci#define LGM_GCLK_IDMAT1 173 1578c2ecf20Sopenharmony_ci#define LGM_GCLK_IDMAT2 174 1588c2ecf20Sopenharmony_ci#define LGM_GCLK_PPV4 175 1598c2ecf20Sopenharmony_ci#define LGM_GCLK_GSWIPO 176 1608c2ecf20Sopenharmony_ci#define LGM_GCLK_CQEM 177 1618c2ecf20Sopenharmony_ci#define LGM_GCLK_XPCS5 178 1628c2ecf20Sopenharmony_ci#define LGM_GCLK_USB1 179 1638c2ecf20Sopenharmony_ci#define LGM_GCLK_USB2 180 1648c2ecf20Sopenharmony_ci 1658c2ecf20Sopenharmony_ci#endif /* __INTEL_LGM_CLK_H */ 166