1*75a6faf6SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 25efaf090SZhangfei Gao /* 35efaf090SZhangfei Gao * Copyright (c) 2014 Linaro Ltd. 45efaf090SZhangfei Gao * Copyright (c) 2014 Hisilicon Limited. 55efaf090SZhangfei Gao */ 65efaf090SZhangfei Gao 75efaf090SZhangfei Gao #ifndef __DTS_HIX5HD2_CLOCK_H 85efaf090SZhangfei Gao #define __DTS_HIX5HD2_CLOCK_H 95efaf090SZhangfei Gao 105efaf090SZhangfei Gao /* fixed rate */ 115efaf090SZhangfei Gao #define HIX5HD2_FIXED_1200M 1 125efaf090SZhangfei Gao #define HIX5HD2_FIXED_400M 2 135efaf090SZhangfei Gao #define HIX5HD2_FIXED_48M 3 145efaf090SZhangfei Gao #define HIX5HD2_FIXED_24M 4 155efaf090SZhangfei Gao #define HIX5HD2_FIXED_600M 5 165efaf090SZhangfei Gao #define HIX5HD2_FIXED_300M 6 175efaf090SZhangfei Gao #define HIX5HD2_FIXED_75M 7 185efaf090SZhangfei Gao #define HIX5HD2_FIXED_200M 8 195efaf090SZhangfei Gao #define HIX5HD2_FIXED_100M 9 205efaf090SZhangfei Gao #define HIX5HD2_FIXED_40M 10 215efaf090SZhangfei Gao #define HIX5HD2_FIXED_150M 11 225efaf090SZhangfei Gao #define HIX5HD2_FIXED_1728M 12 235efaf090SZhangfei Gao #define HIX5HD2_FIXED_28P8M 13 245efaf090SZhangfei Gao #define HIX5HD2_FIXED_432M 14 255efaf090SZhangfei Gao #define HIX5HD2_FIXED_345P6M 15 265efaf090SZhangfei Gao #define HIX5HD2_FIXED_288M 16 275efaf090SZhangfei Gao #define HIX5HD2_FIXED_60M 17 285efaf090SZhangfei Gao #define HIX5HD2_FIXED_750M 18 295efaf090SZhangfei Gao #define HIX5HD2_FIXED_500M 19 305efaf090SZhangfei Gao #define HIX5HD2_FIXED_54M 20 315efaf090SZhangfei Gao #define HIX5HD2_FIXED_27M 21 325efaf090SZhangfei Gao #define HIX5HD2_FIXED_1500M 22 335efaf090SZhangfei Gao #define HIX5HD2_FIXED_375M 23 345efaf090SZhangfei Gao #define HIX5HD2_FIXED_187M 24 355efaf090SZhangfei Gao #define HIX5HD2_FIXED_250M 25 365efaf090SZhangfei Gao #define HIX5HD2_FIXED_125M 26 375efaf090SZhangfei Gao #define HIX5HD2_FIXED_2P02M 27 385efaf090SZhangfei Gao #define HIX5HD2_FIXED_50M 28 395efaf090SZhangfei Gao #define HIX5HD2_FIXED_25M 29 405efaf090SZhangfei Gao #define HIX5HD2_FIXED_83M 30 415efaf090SZhangfei Gao 425efaf090SZhangfei Gao /* mux clocks */ 435efaf090SZhangfei Gao #define HIX5HD2_SFC_MUX 64 445efaf090SZhangfei Gao #define HIX5HD2_MMC_MUX 65 455efaf090SZhangfei Gao #define HIX5HD2_FEPHY_MUX 66 46cc855dd9SJiancheng Xue #define HIX5HD2_SD_MUX 67 475efaf090SZhangfei Gao 485efaf090SZhangfei Gao /* gate clocks */ 495efaf090SZhangfei Gao #define HIX5HD2_SFC_RST 128 505efaf090SZhangfei Gao #define HIX5HD2_SFC_CLK 129 515efaf090SZhangfei Gao #define HIX5HD2_MMC_CIU_CLK 130 525efaf090SZhangfei Gao #define HIX5HD2_MMC_BIU_CLK 131 535efaf090SZhangfei Gao #define HIX5HD2_MMC_CIU_RST 132 5420e07558SZhangfei Gao #define HIX5HD2_FWD_BUS_CLK 133 5520e07558SZhangfei Gao #define HIX5HD2_FWD_SYS_CLK 134 5620e07558SZhangfei Gao #define HIX5HD2_MAC0_PHY_CLK 135 57cc855dd9SJiancheng Xue #define HIX5HD2_SD_CIU_CLK 136 58cc855dd9SJiancheng Xue #define HIX5HD2_SD_BIU_CLK 137 59cc855dd9SJiancheng Xue #define HIX5HD2_SD_CIU_RST 138 601463fba3SGuoxiong Yan #define HIX5HD2_WDG0_CLK 139 611463fba3SGuoxiong Yan #define HIX5HD2_WDG0_RST 140 6245bcf9c6SWei Yan #define HIX5HD2_I2C0_CLK 141 6345bcf9c6SWei Yan #define HIX5HD2_I2C0_RST 142 6445bcf9c6SWei Yan #define HIX5HD2_I2C1_CLK 143 6545bcf9c6SWei Yan #define HIX5HD2_I2C1_RST 144 6645bcf9c6SWei Yan #define HIX5HD2_I2C2_CLK 145 6745bcf9c6SWei Yan #define HIX5HD2_I2C2_RST 146 6845bcf9c6SWei Yan #define HIX5HD2_I2C3_CLK 147 6945bcf9c6SWei Yan #define HIX5HD2_I2C3_RST 148 7045bcf9c6SWei Yan #define HIX5HD2_I2C4_CLK 149 7145bcf9c6SWei Yan #define HIX5HD2_I2C4_RST 150 7245bcf9c6SWei Yan #define HIX5HD2_I2C5_CLK 151 7345bcf9c6SWei Yan #define HIX5HD2_I2C5_RST 152 7420e07558SZhangfei Gao 7520e07558SZhangfei Gao /* complex */ 7620e07558SZhangfei Gao #define HIX5HD2_MAC0_CLK 192 7720e07558SZhangfei Gao #define HIX5HD2_MAC1_CLK 193 7820e07558SZhangfei Gao #define HIX5HD2_SATA_CLK 194 7920e07558SZhangfei Gao #define HIX5HD2_USB_CLK 195 805efaf090SZhangfei Gao 815efaf090SZhangfei Gao #define HIX5HD2_NR_CLKS 256 825efaf090SZhangfei Gao #endif /* __DTS_HIX5HD2_CLOCK_H */ 83