xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/nuvoton,npcm845-clk.h (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
1*b97ee269SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2*b97ee269SEmmanuel Vadot /*
3*b97ee269SEmmanuel Vadot  * Copyright (C) 2021 Nuvoton Technologies.
4*b97ee269SEmmanuel Vadot  * Author: Tomer Maimon <tomer.maimon@nuvoton.com>
5*b97ee269SEmmanuel Vadot  *
6*b97ee269SEmmanuel Vadot  * Device Tree binding constants for NPCM8XX clock controller.
7*b97ee269SEmmanuel Vadot  */
8*b97ee269SEmmanuel Vadot 
9*b97ee269SEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_NPCM8XX_H
10*b97ee269SEmmanuel Vadot #define __DT_BINDINGS_CLOCK_NPCM8XX_H
11*b97ee269SEmmanuel Vadot 
12*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_CPU		0
13*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_GFX_PIXEL	1
14*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_MC		2
15*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_ADC		3
16*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_AHB		4
17*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_TIMER	5
18*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_UART	6
19*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_UART2	7
20*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_MMC		8
21*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SPI3	9
22*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_PCI		10
23*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_AXI		11
24*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_APB4	12
25*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_APB3	13
26*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_APB2	14
27*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_APB1	15
28*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_APB5	16
29*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_CLKOUT	17
30*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_GFX		18
31*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SU		19
32*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SU48	20
33*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SDHC	21
34*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SPI0	22
35*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SPI1	23
36*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SPIX	24
37*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_RG		25
38*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_RCP		26
39*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_PRE_ADC	27
40*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_ATB		28
41*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_PRE_CLK	29
42*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_TH		30
43*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_REFCLK	31
44*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_SYSBYPCK	32
45*b97ee269SEmmanuel Vadot #define NPCM8XX_CLK_MCBYPCK	33
46*b97ee269SEmmanuel Vadot 
47*b97ee269SEmmanuel Vadot #define NPCM8XX_NUM_CLOCKS	(NPCM8XX_CLK_MCBYPCK + 1)
48*b97ee269SEmmanuel Vadot 
49*b97ee269SEmmanuel Vadot #endif
50