15efaf090SZhangfei Gao /* 25efaf090SZhangfei Gao * Copyright (c) 2014 Linaro Ltd. 35efaf090SZhangfei Gao * Copyright (c) 2014 Hisilicon Limited. 45efaf090SZhangfei Gao * 55efaf090SZhangfei Gao * This program is free software; you can redistribute it and/or modify it 65efaf090SZhangfei Gao * under the terms and conditions of the GNU General Public License, 75efaf090SZhangfei Gao * version 2, as published by the Free Software Foundation. 85efaf090SZhangfei Gao */ 95efaf090SZhangfei Gao 105efaf090SZhangfei Gao #ifndef __DTS_HIX5HD2_CLOCK_H 115efaf090SZhangfei Gao #define __DTS_HIX5HD2_CLOCK_H 125efaf090SZhangfei Gao 135efaf090SZhangfei Gao /* fixed rate */ 145efaf090SZhangfei Gao #define HIX5HD2_FIXED_1200M 1 155efaf090SZhangfei Gao #define HIX5HD2_FIXED_400M 2 165efaf090SZhangfei Gao #define HIX5HD2_FIXED_48M 3 175efaf090SZhangfei Gao #define HIX5HD2_FIXED_24M 4 185efaf090SZhangfei Gao #define HIX5HD2_FIXED_600M 5 195efaf090SZhangfei Gao #define HIX5HD2_FIXED_300M 6 205efaf090SZhangfei Gao #define HIX5HD2_FIXED_75M 7 215efaf090SZhangfei Gao #define HIX5HD2_FIXED_200M 8 225efaf090SZhangfei Gao #define HIX5HD2_FIXED_100M 9 235efaf090SZhangfei Gao #define HIX5HD2_FIXED_40M 10 245efaf090SZhangfei Gao #define HIX5HD2_FIXED_150M 11 255efaf090SZhangfei Gao #define HIX5HD2_FIXED_1728M 12 265efaf090SZhangfei Gao #define HIX5HD2_FIXED_28P8M 13 275efaf090SZhangfei Gao #define HIX5HD2_FIXED_432M 14 285efaf090SZhangfei Gao #define HIX5HD2_FIXED_345P6M 15 295efaf090SZhangfei Gao #define HIX5HD2_FIXED_288M 16 305efaf090SZhangfei Gao #define HIX5HD2_FIXED_60M 17 315efaf090SZhangfei Gao #define HIX5HD2_FIXED_750M 18 325efaf090SZhangfei Gao #define HIX5HD2_FIXED_500M 19 335efaf090SZhangfei Gao #define HIX5HD2_FIXED_54M 20 345efaf090SZhangfei Gao #define HIX5HD2_FIXED_27M 21 355efaf090SZhangfei Gao #define HIX5HD2_FIXED_1500M 22 365efaf090SZhangfei Gao #define HIX5HD2_FIXED_375M 23 375efaf090SZhangfei Gao #define HIX5HD2_FIXED_187M 24 385efaf090SZhangfei Gao #define HIX5HD2_FIXED_250M 25 395efaf090SZhangfei Gao #define HIX5HD2_FIXED_125M 26 405efaf090SZhangfei Gao #define HIX5HD2_FIXED_2P02M 27 415efaf090SZhangfei Gao #define HIX5HD2_FIXED_50M 28 425efaf090SZhangfei Gao #define HIX5HD2_FIXED_25M 29 435efaf090SZhangfei Gao #define HIX5HD2_FIXED_83M 30 445efaf090SZhangfei Gao 455efaf090SZhangfei Gao /* mux clocks */ 465efaf090SZhangfei Gao #define HIX5HD2_SFC_MUX 64 475efaf090SZhangfei Gao #define HIX5HD2_MMC_MUX 65 485efaf090SZhangfei Gao #define HIX5HD2_FEPHY_MUX 66 49cc855dd9SJiancheng Xue #define HIX5HD2_SD_MUX 67 505efaf090SZhangfei Gao 515efaf090SZhangfei Gao /* gate clocks */ 525efaf090SZhangfei Gao #define HIX5HD2_SFC_RST 128 535efaf090SZhangfei Gao #define HIX5HD2_SFC_CLK 129 545efaf090SZhangfei Gao #define HIX5HD2_MMC_CIU_CLK 130 555efaf090SZhangfei Gao #define HIX5HD2_MMC_BIU_CLK 131 565efaf090SZhangfei Gao #define HIX5HD2_MMC_CIU_RST 132 5720e07558SZhangfei Gao #define HIX5HD2_FWD_BUS_CLK 133 5820e07558SZhangfei Gao #define HIX5HD2_FWD_SYS_CLK 134 5920e07558SZhangfei Gao #define HIX5HD2_MAC0_PHY_CLK 135 60cc855dd9SJiancheng Xue #define HIX5HD2_SD_CIU_CLK 136 61cc855dd9SJiancheng Xue #define HIX5HD2_SD_BIU_CLK 137 62cc855dd9SJiancheng Xue #define HIX5HD2_SD_CIU_RST 138 631463fba3SGuoxiong Yan #define HIX5HD2_WDG0_CLK 139 641463fba3SGuoxiong Yan #define HIX5HD2_WDG0_RST 140 65*45bcf9c6SWei Yan #define HIX5HD2_I2C0_CLK 141 66*45bcf9c6SWei Yan #define HIX5HD2_I2C0_RST 142 67*45bcf9c6SWei Yan #define HIX5HD2_I2C1_CLK 143 68*45bcf9c6SWei Yan #define HIX5HD2_I2C1_RST 144 69*45bcf9c6SWei Yan #define HIX5HD2_I2C2_CLK 145 70*45bcf9c6SWei Yan #define HIX5HD2_I2C2_RST 146 71*45bcf9c6SWei Yan #define HIX5HD2_I2C3_CLK 147 72*45bcf9c6SWei Yan #define HIX5HD2_I2C3_RST 148 73*45bcf9c6SWei Yan #define HIX5HD2_I2C4_CLK 149 74*45bcf9c6SWei Yan #define HIX5HD2_I2C4_RST 150 75*45bcf9c6SWei Yan #define HIX5HD2_I2C5_CLK 151 76*45bcf9c6SWei Yan #define HIX5HD2_I2C5_RST 152 7720e07558SZhangfei Gao 7820e07558SZhangfei Gao /* complex */ 7920e07558SZhangfei Gao #define HIX5HD2_MAC0_CLK 192 8020e07558SZhangfei Gao #define HIX5HD2_MAC1_CLK 193 8120e07558SZhangfei Gao #define HIX5HD2_SATA_CLK 194 8220e07558SZhangfei Gao #define HIX5HD2_USB_CLK 195 835efaf090SZhangfei Gao 845efaf090SZhangfei Gao #define HIX5HD2_NR_CLKS 256 855efaf090SZhangfei Gao #endif /* __DTS_HIX5HD2_CLOCK_H */ 86