11.1Sskrll/*	$NetBSD: x1000-cgu.h,v 1.1.1.2 2021/11/07 16:50:00 jmcneill Exp $	*/
21.1Sskrll
31.1Sskrll/* SPDX-License-Identifier: GPL-2.0 */
41.1Sskrll/*
51.1Sskrll * This header provides clock numbers for the ingenic,x1000-cgu DT binding.
61.1Sskrll *
71.1Sskrll * They are roughly ordered as:
81.1Sskrll *   - external clocks
91.1Sskrll *   - PLLs
101.1Sskrll *   - muxes/dividers in the order they appear in the x1000 programmers manual
111.1Sskrll *   - gates in order of their bit in the CLKGR* registers
121.1Sskrll */
131.1Sskrll
141.1Sskrll#ifndef __DT_BINDINGS_CLOCK_X1000_CGU_H__
151.1Sskrll#define __DT_BINDINGS_CLOCK_X1000_CGU_H__
161.1Sskrll
171.1.1.2Sjmcneill#define X1000_CLK_EXCLK			0
181.1.1.2Sjmcneill#define X1000_CLK_RTCLK			1
191.1.1.2Sjmcneill#define X1000_CLK_APLL			2
201.1.1.2Sjmcneill#define X1000_CLK_MPLL			3
211.1.1.2Sjmcneill#define X1000_CLK_OTGPHY		4
221.1.1.2Sjmcneill#define X1000_CLK_SCLKA			5
231.1.1.2Sjmcneill#define X1000_CLK_CPUMUX		6
241.1.1.2Sjmcneill#define X1000_CLK_CPU			7
251.1.1.2Sjmcneill#define X1000_CLK_L2CACHE		8
261.1.1.2Sjmcneill#define X1000_CLK_AHB0			9
271.1.1.2Sjmcneill#define X1000_CLK_AHB2PMUX		10
281.1.1.2Sjmcneill#define X1000_CLK_AHB2			11
291.1.1.2Sjmcneill#define X1000_CLK_PCLK			12
301.1.1.2Sjmcneill#define X1000_CLK_DDR			13
311.1.1.2Sjmcneill#define X1000_CLK_MAC			14
321.1.1.2Sjmcneill#define X1000_CLK_LCD			15
331.1.1.2Sjmcneill#define X1000_CLK_MSCMUX		16
341.1.1.2Sjmcneill#define X1000_CLK_MSC0			17
351.1.1.2Sjmcneill#define X1000_CLK_MSC1			18
361.1.1.2Sjmcneill#define X1000_CLK_OTG			19
371.1.1.2Sjmcneill#define X1000_CLK_SSIPLL		20
381.1.1.2Sjmcneill#define X1000_CLK_SSIPLL_DIV2	21
391.1.1.2Sjmcneill#define X1000_CLK_SSIMUX		22
401.1.1.2Sjmcneill#define X1000_CLK_EMC			23
411.1.1.2Sjmcneill#define X1000_CLK_EFUSE			24
421.1.1.2Sjmcneill#define X1000_CLK_SFC			25
431.1.1.2Sjmcneill#define X1000_CLK_I2C0			26
441.1.1.2Sjmcneill#define X1000_CLK_I2C1			27
451.1.1.2Sjmcneill#define X1000_CLK_I2C2			28
461.1.1.2Sjmcneill#define X1000_CLK_UART0			29
471.1.1.2Sjmcneill#define X1000_CLK_UART1			30
481.1.1.2Sjmcneill#define X1000_CLK_UART2			31
491.1.1.2Sjmcneill#define X1000_CLK_TCU			32
501.1.1.2Sjmcneill#define X1000_CLK_SSI			33
511.1.1.2Sjmcneill#define X1000_CLK_OST			34
521.1.1.2Sjmcneill#define X1000_CLK_PDMA			35
531.1.1.2Sjmcneill#define X1000_CLK_EXCLK_DIV512	36
541.1.1.2Sjmcneill#define X1000_CLK_RTC			37
551.1Sskrll
561.1Sskrll#endif /* __DT_BINDINGS_CLOCK_X1000_CGU_H__ */
57