1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) ASPEED Technology Inc.
4  */
5 
6 /* Bus Clocks, derived from core clocks */
7 #define BCLK_LHCLK	102
8 #define BCLK_MACCLK	103
9 #define BCLK_SDCLK	104
10 #define BCLK_ARMCLK	105
11 
12 /* Special clocks */
13 #define PCLK_UART1	501
14 #define PCLK_UART2	502
15 #define PCLK_UART3	503
16 #define PCLK_UART4	504
17 #define PCLK_UART5	505
18 #define PCLK_MAC1	506
19 #define PCLK_MAC2	507
20 
21 /* come from linux kernel */
22 
23 #define ASPEED_CLK_GATE_ECLK            0
24 #define ASPEED_CLK_GATE_GCLK            1
25 #define ASPEED_CLK_GATE_MCLK            2
26 #define ASPEED_CLK_GATE_VCLK            3
27 #define ASPEED_CLK_GATE_BCLK            4
28 #define ASPEED_CLK_GATE_DCLK            5
29 #define ASPEED_CLK_GATE_REFCLK          6
30 #define ASPEED_CLK_GATE_USBPORT2CLK     7
31 #define ASPEED_CLK_GATE_LCLK            8
32 #define ASPEED_CLK_GATE_USBUHCICLK      9
33 #define ASPEED_CLK_GATE_D1CLK           10
34 #define ASPEED_CLK_GATE_YCLK            11
35 #define ASPEED_CLK_GATE_USBPORT1CLK     12
36 #define ASPEED_CLK_GATE_UART1CLK        13
37 #define ASPEED_CLK_GATE_UART2CLK        14
38 #define ASPEED_CLK_GATE_UART5CLK        15
39 #define ASPEED_CLK_GATE_ESPICLK         16
40 #define ASPEED_CLK_GATE_MAC1CLK         17
41 #define ASPEED_CLK_GATE_MAC2CLK         18
42 #define ASPEED_CLK_GATE_RSACLK          19
43 #define ASPEED_CLK_GATE_UART3CLK        20
44 #define ASPEED_CLK_GATE_UART4CLK        21
45 #define ASPEED_CLK_GATE_SDCLK           22
46 #define ASPEED_CLK_GATE_LHCCLK          23
47 #define ASPEED_CLK_GATE_SDEXTCLK        24
48 #define ASPEED_CLK_GATE_EMMCCLK         25
49 #define ASPEED_CLK_GATE_EMMCEXTCLK      26
50 
51 #define ASPEED_CLK_GATE_UART6CLK        27
52 #define ASPEED_CLK_GATE_UART7CLK        28
53 #define ASPEED_CLK_GATE_UART8CLK        29
54 #define ASPEED_CLK_GATE_UART9CLK        30
55 #define ASPEED_CLK_GATE_UART10CLK       31
56 #define ASPEED_CLK_GATE_UART11CLK       32
57 #define ASPEED_CLK_GATE_UART12CLK       33
58 #define ASPEED_CLK_GATE_UART13CLK       34
59 
60 #define ASPEED_CLK_HPLL                 35
61 #define ASPEED_CLK_AHB                  36
62 #define ASPEED_CLK_APB                  37
63 #define ASPEED_CLK_UART                 38
64 #define ASPEED_CLK_SDIO                 39
65 #define ASPEED_CLK_ECLK                 40
66 #define ASPEED_CLK_ECLK_MUX             41
67 #define ASPEED_CLK_LHCLK                42
68 #define ASPEED_CLK_MAC                  43
69 #define ASPEED_CLK_BCLK                 44
70 #define ASPEED_CLK_MPLL                 45
71 #define ASPEED_CLK_24M                  46
72 #define ASPEED_CLK_EMMC                 47
73 #define ASPEED_CLK_UARTX                48
74 
75 ///
76 #define ASPEED_CLK_APLL					50
77 #define ASPEED_CLK_EPLL					51
78 #define ASPEED_CLK_DPLL					52
79 
80