1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 /* come from linux kernel */
4 
5 #define ASPEED_CLK_GATE_ECLK            0
6 #define ASPEED_CLK_GATE_GCLK            1
7 #define ASPEED_CLK_GATE_MCLK            2
8 #define ASPEED_CLK_GATE_VCLK            3
9 #define ASPEED_CLK_GATE_BCLK            4
10 #define ASPEED_CLK_GATE_DCLK            5
11 #define ASPEED_CLK_GATE_REFCLK          6
12 #define ASPEED_CLK_GATE_USBPORT2CLK     7
13 #define ASPEED_CLK_GATE_LCLK            8
14 #define ASPEED_CLK_GATE_USBUHCICLK      9
15 #define ASPEED_CLK_GATE_D2CLK           10
16 /* 11 12 reserved */
17 #define ASPEED_CLK_GATE_YCLK            13
18 #define ASPEED_CLK_GATE_USBPORT1CLK     14
19 #define ASPEED_CLK_GATE_UART1CLK        15
20 #define ASPEED_CLK_GATE_UART2CLK        16
21 #define ASPEED_CLK_GATE_UART5CLK        17
22 /* 18 19 reserved */
23 #define ASPEED_CLK_GATE_MAC1CLK         20
24 #define ASPEED_CLK_GATE_MAC2CLK         21
25 /* 22 23 reserved */
26 #define ASPEED_CLK_GATE_RSACLK          24
27 #define ASPEED_CLK_GATE_UART3CLK        25
28 #define ASPEED_CLK_GATE_UART4CLK        26
29 #define ASPEED_CLK_GATE_SDCLK           27
30 #define ASPEED_CLK_GATE_LHCCLK          28
31 #define ASPEED_CLK_GATE_SDEXTCLK        29
32 #define ASPEED_CLK_HPLL                 30
33 #define ASPEED_CLK_AHB                  31
34 #define ASPEED_CLK_APB                  32
35 #define ASPEED_CLK_UART                 33
36 #define ASPEED_CLK_SDIO                 34
37 #define ASPEED_CLK_ECLK                 35
38 #define ASPEED_CLK_ECLK_MUX             36
39 #define ASPEED_CLK_LHCLK                37
40 #define ASPEED_CLK_MAC                  38
41 #define ASPEED_CLK_BCLK                 39
42 #define ASPEED_CLK_MPLL                 40
43 #define ASPEED_CLK_24M                  41
44 #define ASPEED_CLK_D2PLL                42
45 
46