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