alphascale,asm9260.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * Copyright 2014 Oleksij Rempel <linux@rempel-privat.de>
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef _DT_BINDINGS_CLK_ASM9260_H
  14. #define _DT_BINDINGS_CLK_ASM9260_H
  15. /* ahb gate */
  16. #define CLKID_AHB_ROM 0
  17. #define CLKID_AHB_RAM 1
  18. #define CLKID_AHB_GPIO 2
  19. #define CLKID_AHB_MAC 3
  20. #define CLKID_AHB_EMI 4
  21. #define CLKID_AHB_USB0 5
  22. #define CLKID_AHB_USB1 6
  23. #define CLKID_AHB_DMA0 7
  24. #define CLKID_AHB_DMA1 8
  25. #define CLKID_AHB_UART0 9
  26. #define CLKID_AHB_UART1 10
  27. #define CLKID_AHB_UART2 11
  28. #define CLKID_AHB_UART3 12
  29. #define CLKID_AHB_UART4 13
  30. #define CLKID_AHB_UART5 14
  31. #define CLKID_AHB_UART6 15
  32. #define CLKID_AHB_UART7 16
  33. #define CLKID_AHB_UART8 17
  34. #define CLKID_AHB_UART9 18
  35. #define CLKID_AHB_I2S0 19
  36. #define CLKID_AHB_I2C0 20
  37. #define CLKID_AHB_I2C1 21
  38. #define CLKID_AHB_SSP0 22
  39. #define CLKID_AHB_IOCONFIG 23
  40. #define CLKID_AHB_WDT 24
  41. #define CLKID_AHB_CAN0 25
  42. #define CLKID_AHB_CAN1 26
  43. #define CLKID_AHB_MPWM 27
  44. #define CLKID_AHB_SPI0 28
  45. #define CLKID_AHB_SPI1 29
  46. #define CLKID_AHB_QEI 30
  47. #define CLKID_AHB_QUADSPI0 31
  48. #define CLKID_AHB_CAMIF 32
  49. #define CLKID_AHB_LCDIF 33
  50. #define CLKID_AHB_TIMER0 34
  51. #define CLKID_AHB_TIMER1 35
  52. #define CLKID_AHB_TIMER2 36
  53. #define CLKID_AHB_TIMER3 37
  54. #define CLKID_AHB_IRQ 38
  55. #define CLKID_AHB_RTC 39
  56. #define CLKID_AHB_NAND 40
  57. #define CLKID_AHB_ADC0 41
  58. #define CLKID_AHB_LED 42
  59. #define CLKID_AHB_DAC0 43
  60. #define CLKID_AHB_LCD 44
  61. #define CLKID_AHB_I2S1 45
  62. #define CLKID_AHB_MAC1 46
  63. /* devider */
  64. #define CLKID_SYS_CPU 47
  65. #define CLKID_SYS_AHB 48
  66. #define CLKID_SYS_I2S0M 49
  67. #define CLKID_SYS_I2S0S 50
  68. #define CLKID_SYS_I2S1M 51
  69. #define CLKID_SYS_I2S1S 52
  70. #define CLKID_SYS_UART0 53
  71. #define CLKID_SYS_UART1 54
  72. #define CLKID_SYS_UART2 55
  73. #define CLKID_SYS_UART3 56
  74. #define CLKID_SYS_UART4 56
  75. #define CLKID_SYS_UART5 57
  76. #define CLKID_SYS_UART6 58
  77. #define CLKID_SYS_UART7 59
  78. #define CLKID_SYS_UART8 60
  79. #define CLKID_SYS_UART9 61
  80. #define CLKID_SYS_SPI0 62
  81. #define CLKID_SYS_SPI1 63
  82. #define CLKID_SYS_QUADSPI 64
  83. #define CLKID_SYS_SSP0 65
  84. #define CLKID_SYS_NAND 66
  85. #define CLKID_SYS_TRACE 67
  86. #define CLKID_SYS_CAMM 68
  87. #define CLKID_SYS_WDT 69
  88. #define CLKID_SYS_CLKOUT 70
  89. #define CLKID_SYS_MAC 71
  90. #define CLKID_SYS_LCD 72
  91. #define CLKID_SYS_ADCANA 73
  92. #define MAX_CLKS 74
  93. #endif