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 19 /* come from linux kernel */ 20 21 #define ASPEED_CLK_GATE_ECLK 0 22 #define ASPEED_CLK_GATE_GCLK 1 23 #define ASPEED_CLK_GATE_MCLK 2 24 #define ASPEED_CLK_GATE_VCLK 3 25 #define ASPEED_CLK_GATE_BCLK 4 26 #define ASPEED_CLK_GATE_DCLK 5 27 #define ASPEED_CLK_GATE_REFCLK 6 28 #define ASPEED_CLK_GATE_USBPORT2CLK 7 29 #define ASPEED_CLK_GATE_LCLK 8 30 #define ASPEED_CLK_GATE_USBUHCICLK 9 31 #define ASPEED_CLK_GATE_D1CLK 10 32 #define ASPEED_CLK_GATE_YCLK 11 33 #define ASPEED_CLK_GATE_USBPORT1CLK 12 34 #define ASPEED_CLK_GATE_UART1CLK 13 35 #define ASPEED_CLK_GATE_UART2CLK 14 36 #define ASPEED_CLK_GATE_UART5CLK 15 37 #define ASPEED_CLK_GATE_ESPICLK 16 38 #define ASPEED_CLK_GATE_MAC1CLK 17 39 #define ASPEED_CLK_GATE_MAC2CLK 18 40 #define ASPEED_CLK_GATE_RSACLK 19 41 #define ASPEED_CLK_GATE_UART3CLK 20 42 #define ASPEED_CLK_GATE_UART4CLK 21 43 #define ASPEED_CLK_GATE_SDCLK 22 44 #define ASPEED_CLK_GATE_LHCCLK 23 45 #define ASPEED_CLK_GATE_SDEXTCLK 24 46 #define ASPEED_CLK_GATE_EMMCCLK 25 47 #define ASPEED_CLK_GATE_EMMCEXTCLK 26 48 49 #define ASPEED_CLK_GATE_UART6CLK 27 50 #define ASPEED_CLK_GATE_UART7CLK 28 51 #define ASPEED_CLK_GATE_UART8CLK 29 52 #define ASPEED_CLK_GATE_UART9CLK 30 53 #define ASPEED_CLK_GATE_UART10CLK 31 54 #define ASPEED_CLK_GATE_UART11CLK 32 55 #define ASPEED_CLK_GATE_UART12CLK 33 56 #define ASPEED_CLK_GATE_UART13CLK 34 57 58 #define ASPEED_CLK_HPLL 35 59 #define ASPEED_CLK_AHB 36 60 #define ASPEED_CLK_APB 37 61 #define ASPEED_CLK_UART 38 62 #define ASPEED_CLK_SDIO 39 63 #define ASPEED_CLK_ECLK 40 64 #define ASPEED_CLK_ECLK_MUX 41 65 #define ASPEED_CLK_LHCLK 42 66 #define ASPEED_CLK_MAC 43 67 #define ASPEED_CLK_BCLK 44 68 #define ASPEED_CLK_MPLL 45 69 #define ASPEED_CLK_24M 46 70 #define ASPEED_CLK_EMMC 47 71 #define ASPEED_CLK_UARTX 48 72 73 /// 74 #define ASPEED_CLK_APLL 50 75 #define ASPEED_CLK_EPLL 51 76 #define ASPEED_CLK_DPLL 52 77 78