11.1Sjmcneill/*	$NetBSD: intel,lgm-clk.h,v 1.1.1.1 2021/11/07 16:49:59 jmcneill Exp $	*/
21.1Sjmcneill
31.1Sjmcneill/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
41.1Sjmcneill/*
51.1Sjmcneill * Copyright (C) 2020 Intel Corporation.
61.1Sjmcneill * Lei Chuanhua <Chuanhua.lei@intel.com>
71.1Sjmcneill * Zhu Yixin <Yixin.zhu@intel.com>
81.1Sjmcneill */
91.1Sjmcneill#ifndef __INTEL_LGM_CLK_H
101.1Sjmcneill#define __INTEL_LGM_CLK_H
111.1Sjmcneill
121.1Sjmcneill/* PLL clocks */
131.1Sjmcneill#define LGM_CLK_OSC		1
141.1Sjmcneill#define LGM_CLK_PLLPP		2
151.1Sjmcneill#define LGM_CLK_PLL2		3
161.1Sjmcneill#define LGM_CLK_PLL0CZ		4
171.1Sjmcneill#define LGM_CLK_PLL0B		5
181.1Sjmcneill#define LGM_CLK_PLL1		6
191.1Sjmcneill#define LGM_CLK_LJPLL3		7
201.1Sjmcneill#define LGM_CLK_LJPLL4		8
211.1Sjmcneill#define LGM_CLK_PLL0CM0		9
221.1Sjmcneill#define LGM_CLK_PLL0CM1		10
231.1Sjmcneill
241.1Sjmcneill/* clocks from PLLs */
251.1Sjmcneill
261.1Sjmcneill/* ROPLL clocks */
271.1Sjmcneill#define LGM_CLK_PP_HW		15
281.1Sjmcneill#define LGM_CLK_PP_UC		16
291.1Sjmcneill#define LGM_CLK_PP_FXD		17
301.1Sjmcneill#define LGM_CLK_PP_TBM		18
311.1Sjmcneill
321.1Sjmcneill/* PLL2 clocks */
331.1Sjmcneill#define LGM_CLK_DDR		20
341.1Sjmcneill
351.1Sjmcneill/* PLL0CZ */
361.1Sjmcneill#define LGM_CLK_CM		25
371.1Sjmcneill#define LGM_CLK_IC		26
381.1Sjmcneill#define LGM_CLK_SDXC3		27
391.1Sjmcneill
401.1Sjmcneill/* PLL0B */
411.1Sjmcneill#define LGM_CLK_NGI		30
421.1Sjmcneill#define LGM_CLK_NOC4		31
431.1Sjmcneill#define LGM_CLK_SW		32
441.1Sjmcneill#define LGM_CLK_QSPI		33
451.1Sjmcneill#define LGM_CLK_CQEM		LGM_CLK_SW
461.1Sjmcneill#define LGM_CLK_EMMC5		LGM_CLK_NOC4
471.1Sjmcneill
481.1Sjmcneill/* PLL1 */
491.1Sjmcneill#define LGM_CLK_CT		35
501.1Sjmcneill#define LGM_CLK_DSP		36
511.1Sjmcneill#define LGM_CLK_VIF		37
521.1Sjmcneill
531.1Sjmcneill/* LJPLL3 */
541.1Sjmcneill#define LGM_CLK_CML		40
551.1Sjmcneill#define LGM_CLK_SERDES		41
561.1Sjmcneill#define LGM_CLK_POOL		42
571.1Sjmcneill#define LGM_CLK_PTP		43
581.1Sjmcneill
591.1Sjmcneill/* LJPLL4 */
601.1Sjmcneill#define LGM_CLK_PCIE		45
611.1Sjmcneill#define LGM_CLK_SATA		LGM_CLK_PCIE
621.1Sjmcneill
631.1Sjmcneill/* PLL0CM0 */
641.1Sjmcneill#define LGM_CLK_CPU0		50
651.1Sjmcneill
661.1Sjmcneill/* PLL0CM1 */
671.1Sjmcneill#define LGM_CLK_CPU1		55
681.1Sjmcneill
691.1Sjmcneill/* Miscellaneous clocks */
701.1Sjmcneill#define LGM_CLK_EMMC4		60
711.1Sjmcneill#define LGM_CLK_SDXC2		61
721.1Sjmcneill#define LGM_CLK_EMMC		62
731.1Sjmcneill#define LGM_CLK_SDXC		63
741.1Sjmcneill#define LGM_CLK_SLIC		64
751.1Sjmcneill#define LGM_CLK_DCL		65
761.1Sjmcneill#define LGM_CLK_DOCSIS		66
771.1Sjmcneill#define LGM_CLK_PCM		67
781.1Sjmcneill#define LGM_CLK_DDR_PHY		68
791.1Sjmcneill#define LGM_CLK_PONDEF		69
801.1Sjmcneill#define LGM_CLK_PL25M		70
811.1Sjmcneill#define LGM_CLK_PL10M		71
821.1Sjmcneill#define LGM_CLK_PL1544K		72
831.1Sjmcneill#define LGM_CLK_PL2048K		73
841.1Sjmcneill#define LGM_CLK_PL8K		74
851.1Sjmcneill#define LGM_CLK_PON_NTR		75
861.1Sjmcneill#define LGM_CLK_SYNC0		76
871.1Sjmcneill#define LGM_CLK_SYNC1		77
881.1Sjmcneill#define LGM_CLK_PROGDIV		78
891.1Sjmcneill#define LGM_CLK_OD0		79
901.1Sjmcneill#define LGM_CLK_OD1		80
911.1Sjmcneill#define LGM_CLK_CBPHY0		81
921.1Sjmcneill#define LGM_CLK_CBPHY1		82
931.1Sjmcneill#define LGM_CLK_CBPHY2		83
941.1Sjmcneill#define LGM_CLK_CBPHY3		84
951.1Sjmcneill
961.1Sjmcneill/* Gate clocks */
971.1Sjmcneill/* Gate CLK0 */
981.1Sjmcneill#define LGM_GCLK_C55		100
991.1Sjmcneill#define LGM_GCLK_QSPI		101
1001.1Sjmcneill#define LGM_GCLK_EIP197		102
1011.1Sjmcneill#define LGM_GCLK_VAULT		103
1021.1Sjmcneill#define LGM_GCLK_TOE		104
1031.1Sjmcneill#define LGM_GCLK_SDXC		105
1041.1Sjmcneill#define LGM_GCLK_EMMC		106
1051.1Sjmcneill#define LGM_GCLK_SPI_DBG	107
1061.1Sjmcneill#define LGM_GCLK_DMA3		108
1071.1Sjmcneill
1081.1Sjmcneill/* Gate CLK1 */
1091.1Sjmcneill#define LGM_GCLK_DMA0		120
1101.1Sjmcneill#define LGM_GCLK_LEDC0		121
1111.1Sjmcneill#define LGM_GCLK_LEDC1		122
1121.1Sjmcneill#define LGM_GCLK_I2S0		123
1131.1Sjmcneill#define LGM_GCLK_I2S1		124
1141.1Sjmcneill#define LGM_GCLK_EBU		125
1151.1Sjmcneill#define LGM_GCLK_PWM		126
1161.1Sjmcneill#define LGM_GCLK_I2C0		127
1171.1Sjmcneill#define LGM_GCLK_I2C1		128
1181.1Sjmcneill#define LGM_GCLK_I2C2		129
1191.1Sjmcneill#define LGM_GCLK_I2C3		130
1201.1Sjmcneill#define LGM_GCLK_SSC0		131
1211.1Sjmcneill#define LGM_GCLK_SSC1		132
1221.1Sjmcneill#define LGM_GCLK_SSC2		133
1231.1Sjmcneill#define LGM_GCLK_SSC3		134
1241.1Sjmcneill#define LGM_GCLK_GPTC0		135
1251.1Sjmcneill#define LGM_GCLK_GPTC1		136
1261.1Sjmcneill#define LGM_GCLK_GPTC2		137
1271.1Sjmcneill#define LGM_GCLK_GPTC3		138
1281.1Sjmcneill#define LGM_GCLK_ASC0		139
1291.1Sjmcneill#define LGM_GCLK_ASC1		140
1301.1Sjmcneill#define LGM_GCLK_ASC2		141
1311.1Sjmcneill#define LGM_GCLK_ASC3		142
1321.1Sjmcneill#define LGM_GCLK_PCM0		143
1331.1Sjmcneill#define LGM_GCLK_PCM1		144
1341.1Sjmcneill#define LGM_GCLK_PCM2		145
1351.1Sjmcneill
1361.1Sjmcneill/* Gate CLK2 */
1371.1Sjmcneill#define LGM_GCLK_PCIE10		150
1381.1Sjmcneill#define LGM_GCLK_PCIE11		151
1391.1Sjmcneill#define LGM_GCLK_PCIE30		152
1401.1Sjmcneill#define LGM_GCLK_PCIE31		153
1411.1Sjmcneill#define LGM_GCLK_PCIE20		154
1421.1Sjmcneill#define LGM_GCLK_PCIE21		155
1431.1Sjmcneill#define LGM_GCLK_PCIE40		156
1441.1Sjmcneill#define LGM_GCLK_PCIE41		157
1451.1Sjmcneill#define LGM_GCLK_XPCS0		158
1461.1Sjmcneill#define LGM_GCLK_XPCS1		159
1471.1Sjmcneill#define LGM_GCLK_XPCS2		160
1481.1Sjmcneill#define LGM_GCLK_XPCS3		161
1491.1Sjmcneill#define LGM_GCLK_SATA0		162
1501.1Sjmcneill#define LGM_GCLK_SATA1		163
1511.1Sjmcneill#define LGM_GCLK_SATA2		164
1521.1Sjmcneill#define LGM_GCLK_SATA3		165
1531.1Sjmcneill
1541.1Sjmcneill/* Gate CLK3 */
1551.1Sjmcneill#define LGM_GCLK_ARCEM4		170
1561.1Sjmcneill#define LGM_GCLK_IDMAR1		171
1571.1Sjmcneill#define LGM_GCLK_IDMAT0		172
1581.1Sjmcneill#define LGM_GCLK_IDMAT1		173
1591.1Sjmcneill#define LGM_GCLK_IDMAT2		174
1601.1Sjmcneill#define LGM_GCLK_PPV4		175
1611.1Sjmcneill#define LGM_GCLK_GSWIPO		176
1621.1Sjmcneill#define LGM_GCLK_CQEM		177
1631.1Sjmcneill#define LGM_GCLK_XPCS5		178
1641.1Sjmcneill#define LGM_GCLK_USB1		179
1651.1Sjmcneill#define LGM_GCLK_USB2		180
1661.1Sjmcneill
1671.1Sjmcneill#endif /* __INTEL_LGM_CLK_H */
168