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