omap4.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Copyright 2017 Texas Instruments, Inc.
  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_OMAP4_H
  14. #define __DT_BINDINGS_CLK_OMAP4_H
  15. #define OMAP4_CLKCTRL_OFFSET 0x20
  16. #define OMAP4_CLKCTRL_INDEX(offset) ((offset) - OMAP4_CLKCTRL_OFFSET)
  17. /* mpuss clocks */
  18. #define OMAP4_MPU_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  19. /* tesla clocks */
  20. #define OMAP4_DSP_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  21. /* abe clocks */
  22. #define OMAP4_L4_ABE_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  23. #define OMAP4_AESS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  24. #define OMAP4_MCPDM_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  25. #define OMAP4_DMIC_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  26. #define OMAP4_MCASP_CLKCTRL OMAP4_CLKCTRL_INDEX(0x40)
  27. #define OMAP4_MCBSP1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x48)
  28. #define OMAP4_MCBSP2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x50)
  29. #define OMAP4_MCBSP3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x58)
  30. #define OMAP4_SLIMBUS1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x60)
  31. #define OMAP4_TIMER5_CLKCTRL OMAP4_CLKCTRL_INDEX(0x68)
  32. #define OMAP4_TIMER6_CLKCTRL OMAP4_CLKCTRL_INDEX(0x70)
  33. #define OMAP4_TIMER7_CLKCTRL OMAP4_CLKCTRL_INDEX(0x78)
  34. #define OMAP4_TIMER8_CLKCTRL OMAP4_CLKCTRL_INDEX(0x80)
  35. #define OMAP4_WD_TIMER3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x88)
  36. /* l4_ao clocks */
  37. #define OMAP4_SMARTREFLEX_MPU_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  38. #define OMAP4_SMARTREFLEX_IVA_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  39. #define OMAP4_SMARTREFLEX_CORE_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  40. /* l3_1 clocks */
  41. #define OMAP4_L3_MAIN_1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  42. /* l3_2 clocks */
  43. #define OMAP4_L3_MAIN_2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  44. #define OMAP4_GPMC_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  45. #define OMAP4_OCMC_RAM_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  46. /* ducati clocks */
  47. #define OMAP4_IPU_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  48. /* l3_dma clocks */
  49. #define OMAP4_DMA_SYSTEM_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  50. /* l3_emif clocks */
  51. #define OMAP4_DMM_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  52. #define OMAP4_EMIF1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  53. #define OMAP4_EMIF2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  54. /* d2d clocks */
  55. #define OMAP4_C2C_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  56. /* l4_cfg clocks */
  57. #define OMAP4_L4_CFG_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  58. #define OMAP4_SPINLOCK_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  59. #define OMAP4_MAILBOX_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  60. /* l3_instr clocks */
  61. #define OMAP4_L3_MAIN_3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  62. #define OMAP4_L3_INSTR_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  63. #define OMAP4_OCP_WP_NOC_CLKCTRL OMAP4_CLKCTRL_INDEX(0x40)
  64. /* ivahd clocks */
  65. #define OMAP4_IVA_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  66. #define OMAP4_SL2IF_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  67. /* iss clocks */
  68. #define OMAP4_ISS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  69. #define OMAP4_FDIF_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  70. /* l3_dss clocks */
  71. #define OMAP4_DSS_CORE_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  72. /* l3_gfx clocks */
  73. #define OMAP4_GPU_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  74. /* l3_init clocks */
  75. #define OMAP4_MMC1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  76. #define OMAP4_MMC2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  77. #define OMAP4_HSI_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  78. #define OMAP4_USB_HOST_HS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x58)
  79. #define OMAP4_USB_OTG_HS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x60)
  80. #define OMAP4_USB_TLL_HS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x68)
  81. #define OMAP4_USB_HOST_FS_CLKCTRL OMAP4_CLKCTRL_INDEX(0xd0)
  82. #define OMAP4_OCP2SCP_USB_PHY_CLKCTRL OMAP4_CLKCTRL_INDEX(0xe0)
  83. /* l4_per clocks */
  84. #define OMAP4_TIMER10_CLKCTRL OMAP4_CLKCTRL_INDEX(0x28)
  85. #define OMAP4_TIMER11_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  86. #define OMAP4_TIMER2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  87. #define OMAP4_TIMER3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x40)
  88. #define OMAP4_TIMER4_CLKCTRL OMAP4_CLKCTRL_INDEX(0x48)
  89. #define OMAP4_TIMER9_CLKCTRL OMAP4_CLKCTRL_INDEX(0x50)
  90. #define OMAP4_ELM_CLKCTRL OMAP4_CLKCTRL_INDEX(0x58)
  91. #define OMAP4_GPIO2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x60)
  92. #define OMAP4_GPIO3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x68)
  93. #define OMAP4_GPIO4_CLKCTRL OMAP4_CLKCTRL_INDEX(0x70)
  94. #define OMAP4_GPIO5_CLKCTRL OMAP4_CLKCTRL_INDEX(0x78)
  95. #define OMAP4_GPIO6_CLKCTRL OMAP4_CLKCTRL_INDEX(0x80)
  96. #define OMAP4_HDQ1W_CLKCTRL OMAP4_CLKCTRL_INDEX(0x88)
  97. #define OMAP4_I2C1_CLKCTRL OMAP4_CLKCTRL_INDEX(0xa0)
  98. #define OMAP4_I2C2_CLKCTRL OMAP4_CLKCTRL_INDEX(0xa8)
  99. #define OMAP4_I2C3_CLKCTRL OMAP4_CLKCTRL_INDEX(0xb0)
  100. #define OMAP4_I2C4_CLKCTRL OMAP4_CLKCTRL_INDEX(0xb8)
  101. #define OMAP4_L4_PER_CLKCTRL OMAP4_CLKCTRL_INDEX(0xc0)
  102. #define OMAP4_MCBSP4_CLKCTRL OMAP4_CLKCTRL_INDEX(0xe0)
  103. #define OMAP4_MCSPI1_CLKCTRL OMAP4_CLKCTRL_INDEX(0xf0)
  104. #define OMAP4_MCSPI2_CLKCTRL OMAP4_CLKCTRL_INDEX(0xf8)
  105. #define OMAP4_MCSPI3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x100)
  106. #define OMAP4_MCSPI4_CLKCTRL OMAP4_CLKCTRL_INDEX(0x108)
  107. #define OMAP4_MMC3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x120)
  108. #define OMAP4_MMC4_CLKCTRL OMAP4_CLKCTRL_INDEX(0x128)
  109. #define OMAP4_SLIMBUS2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x138)
  110. #define OMAP4_UART1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x140)
  111. #define OMAP4_UART2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x148)
  112. #define OMAP4_UART3_CLKCTRL OMAP4_CLKCTRL_INDEX(0x150)
  113. #define OMAP4_UART4_CLKCTRL OMAP4_CLKCTRL_INDEX(0x158)
  114. #define OMAP4_MMC5_CLKCTRL OMAP4_CLKCTRL_INDEX(0x160)
  115. /* l4_wkup clocks */
  116. #define OMAP4_L4_WKUP_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  117. #define OMAP4_WD_TIMER2_CLKCTRL OMAP4_CLKCTRL_INDEX(0x30)
  118. #define OMAP4_GPIO1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x38)
  119. #define OMAP4_TIMER1_CLKCTRL OMAP4_CLKCTRL_INDEX(0x40)
  120. #define OMAP4_COUNTER_32K_CLKCTRL OMAP4_CLKCTRL_INDEX(0x50)
  121. #define OMAP4_KBD_CLKCTRL OMAP4_CLKCTRL_INDEX(0x78)
  122. /* emu_sys clocks */
  123. #define OMAP4_DEBUGSS_CLKCTRL OMAP4_CLKCTRL_INDEX(0x20)
  124. #endif