histb-clock.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (c) 2016 HiSilicon Technologies Co., Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef __DTS_HISTB_CLOCK_H
  18. #define __DTS_HISTB_CLOCK_H
  19. /* clocks provided by core CRG */
  20. #define HISTB_OSC_CLK 0
  21. #define HISTB_APB_CLK 1
  22. #define HISTB_AHB_CLK 2
  23. #define HISTB_UART1_CLK 3
  24. #define HISTB_UART2_CLK 4
  25. #define HISTB_UART3_CLK 5
  26. #define HISTB_I2C0_CLK 6
  27. #define HISTB_I2C1_CLK 7
  28. #define HISTB_I2C2_CLK 8
  29. #define HISTB_I2C3_CLK 9
  30. #define HISTB_I2C4_CLK 10
  31. #define HISTB_I2C5_CLK 11
  32. #define HISTB_SPI0_CLK 12
  33. #define HISTB_SPI1_CLK 13
  34. #define HISTB_SPI2_CLK 14
  35. #define HISTB_SCI_CLK 15
  36. #define HISTB_FMC_CLK 16
  37. #define HISTB_MMC_BIU_CLK 17
  38. #define HISTB_MMC_CIU_CLK 18
  39. #define HISTB_MMC_DRV_CLK 19
  40. #define HISTB_MMC_SAMPLE_CLK 20
  41. #define HISTB_SDIO0_BIU_CLK 21
  42. #define HISTB_SDIO0_CIU_CLK 22
  43. #define HISTB_SDIO0_DRV_CLK 23
  44. #define HISTB_SDIO0_SAMPLE_CLK 24
  45. #define HISTB_PCIE_AUX_CLK 25
  46. #define HISTB_PCIE_PIPE_CLK 26
  47. #define HISTB_PCIE_SYS_CLK 27
  48. #define HISTB_PCIE_BUS_CLK 28
  49. #define HISTB_ETH0_MAC_CLK 29
  50. #define HISTB_ETH0_MACIF_CLK 30
  51. #define HISTB_ETH1_MAC_CLK 31
  52. #define HISTB_ETH1_MACIF_CLK 32
  53. #define HISTB_COMBPHY1_CLK 33
  54. /* clocks provided by mcu CRG */
  55. #define HISTB_MCE_CLK 1
  56. #define HISTB_IR_CLK 2
  57. #define HISTB_TIMER01_CLK 3
  58. #define HISTB_LEDC_CLK 4
  59. #define HISTB_UART0_CLK 5
  60. #define HISTB_LSADC_CLK 6
  61. #endif /* __DTS_HISTB_CLOCK_H */