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