11eda014bSryan_chen /* SPDX-License-Identifier: GPL-2.0+ */
21eda014bSryan_chen /*
3d1e64dd1Sryan_chen  * Copyright (C) ASPEED Technology Inc.
41eda014bSryan_chen  */
51eda014bSryan_chen 
6d1e64dd1Sryan_chen /* come from linux kernel */
71eda014bSryan_chen 
8d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_ECLK		0
9d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_GCLK		1
10d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_MCLK		2
11d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_VCLK		3
12d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_BCLK		4
13d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_DCLK		5
1427881d20Sryan_chen #define ASPEED_CLK_GATE_LCLK		6
1527881d20Sryan_chen #define ASPEED_CLK_GATE_YCLK		7
1627881d20Sryan_chen #define ASPEED_CLK_GATE_LHCCLK		8
1727881d20Sryan_chen #define ASPEED_CLK_GATE_REFCLK		9
1827881d20Sryan_chen #define ASPEED_CLK_GATE_ESPICLK		10
1927881d20Sryan_chen #define ASPEED_CLK_GATE_UART1CLK	11
2027881d20Sryan_chen #define ASPEED_CLK_GATE_UART2CLK	12
2127881d20Sryan_chen #define ASPEED_CLK_GATE_UART3CLK	13
2227881d20Sryan_chen #define ASPEED_CLK_GATE_UART4CLK	14
23d1e64dd1Sryan_chen #define ASPEED_CLK_GATE_UART5CLK	15
2427881d20Sryan_chen #define ASPEED_CLK_GATE_UART6CLK	16
2527881d20Sryan_chen #define ASPEED_CLK_GATE_UART7CLK	17
2627881d20Sryan_chen #define ASPEED_CLK_GATE_UART8CLK	18
2727881d20Sryan_chen #define ASPEED_CLK_GATE_UART9CLK	19
2827881d20Sryan_chen #define ASPEED_CLK_GATE_UART10CLK	20
2927881d20Sryan_chen #define ASPEED_CLK_GATE_UART11CLK	21
3027881d20Sryan_chen #define ASPEED_CLK_GATE_UART12CLK	22
3127881d20Sryan_chen #define ASPEED_CLK_GATE_UART13CLK	23
3227881d20Sryan_chen #define ASPEED_CLK_GATE_MAC1CLK		24
3327881d20Sryan_chen #define ASPEED_CLK_GATE_MAC2CLK		25
3427881d20Sryan_chen #define ASPEED_CLK_GATE_MAC3CLK		26
3527881d20Sryan_chen #define ASPEED_CLK_GATE_MAC4CLK		27
36*b8233483SChia-Wei Wang #define ASPEED_CLK_GATE_RSAECCCLK	28
3727881d20Sryan_chen #define ASPEED_CLK_GATE_SDCLK		29
3827881d20Sryan_chen #define ASPEED_CLK_GATE_SDEXTCLK	30
3927881d20Sryan_chen #define ASPEED_CLK_GATE_EMMCCLK		31
4027881d20Sryan_chen #define ASPEED_CLK_GATE_EMMCEXTCLK	32
4127881d20Sryan_chen #define ASPEED_CLK_GATE_USBUHCICLK	33
4227881d20Sryan_chen #define ASPEED_CLK_GATE_USBPORT1CLK	34
4327881d20Sryan_chen #define ASPEED_CLK_GATE_USBPORT2CLK	35
449934f0a6Sryan_chen #define ASPEED_CLK_GATE_FSICLK		36
451eda014bSryan_chen 
469934f0a6Sryan_chen #define ASPEED_CLK_APLL			37
479934f0a6Sryan_chen #define ASPEED_CLK_EPLL			38
489934f0a6Sryan_chen #define ASPEED_CLK_DPLL			39
499934f0a6Sryan_chen #define ASPEED_CLK_HPLL			40
509934f0a6Sryan_chen #define ASPEED_CLK_AHB			41
519934f0a6Sryan_chen #define ASPEED_CLK_APB1			42
529934f0a6Sryan_chen #define ASPEED_CLK_APB2			43
539934f0a6Sryan_chen #define ASPEED_CLK_UART			44
549934f0a6Sryan_chen #define ASPEED_CLK_SDIO			45
559934f0a6Sryan_chen #define ASPEED_CLK_ECLK			46
569934f0a6Sryan_chen #define ASPEED_CLK_ECLK_MUX		47
579934f0a6Sryan_chen #define ASPEED_CLK_LHCLK		48
589934f0a6Sryan_chen #define ASPEED_CLK_MAC			49
599934f0a6Sryan_chen #define ASPEED_CLK_BCLK			50
609934f0a6Sryan_chen #define ASPEED_CLK_MPLL			51
619934f0a6Sryan_chen #define ASPEED_CLK_24M			52
629934f0a6Sryan_chen #define ASPEED_CLK_EMMC			53
639934f0a6Sryan_chen #define ASPEED_CLK_UARTX		54
649934f0a6Sryan_chen #define ASPEED_CLK_HUARTX		55
65