prcm43xx.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /*
  2. * AM43x PRCM defines
  3. *
  4. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. #ifndef __ARCH_ARM_MACH_OMAP2_PRCM_43XX_H
  11. #define __ARCH_ARM_MACH_OMAP2_PRCM_43XX_H
  12. #define AM43XX_PRM_PARTITION 1
  13. #define AM43XX_CM_PARTITION 1
  14. /* PRM instances */
  15. #define AM43XX_PRM_OCP_SOCKET_INST 0x0000
  16. #define AM43XX_PRM_MPU_INST 0x0300
  17. #define AM43XX_PRM_GFX_INST 0x0400
  18. #define AM43XX_PRM_RTC_INST 0x0500
  19. #define AM43XX_PRM_TAMPER_INST 0x0600
  20. #define AM43XX_PRM_CEFUSE_INST 0x0700
  21. #define AM43XX_PRM_PER_INST 0x0800
  22. #define AM43XX_PRM_WKUP_INST 0x2000
  23. #define AM43XX_PRM_DEVICE_INST 0x4000
  24. /* PRM_IRQ offsets */
  25. #define AM43XX_PRM_IRQSTATUS_MPU_OFFSET 0x0004
  26. #define AM43XX_PRM_IRQENABLE_MPU_OFFSET 0x0008
  27. /* Other PRM offsets */
  28. #define AM43XX_PRM_IO_PMCTRL_OFFSET 0x0024
  29. /* RM RSTCTRL offsets */
  30. #define AM43XX_RM_PER_RSTCTRL_OFFSET 0x0010
  31. #define AM43XX_RM_GFX_RSTCTRL_OFFSET 0x0010
  32. #define AM43XX_RM_WKUP_RSTCTRL_OFFSET 0x0010
  33. /* RM RSTST offsets */
  34. #define AM43XX_RM_GFX_RSTST_OFFSET 0x0014
  35. #define AM43XX_RM_PER_RSTST_OFFSET 0x0014
  36. #define AM43XX_RM_WKUP_RSTST_OFFSET 0x0014
  37. /* CM instances */
  38. #define AM43XX_CM_WKUP_INST 0x2800
  39. #define AM43XX_CM_DEVICE_INST 0x4100
  40. #define AM43XX_CM_DPLL_INST 0x4200
  41. #define AM43XX_CM_MPU_INST 0x8300
  42. #define AM43XX_CM_GFX_INST 0x8400
  43. #define AM43XX_CM_RTC_INST 0x8500
  44. #define AM43XX_CM_TAMPER_INST 0x8600
  45. #define AM43XX_CM_CEFUSE_INST 0x8700
  46. #define AM43XX_CM_PER_INST 0x8800
  47. /* CD offsets */
  48. #define AM43XX_CM_WKUP_L3_AON_CDOFFS 0x0000
  49. #define AM43XX_CM_WKUP_L3S_TSC_CDOFFS 0x0100
  50. #define AM43XX_CM_WKUP_L4_WKUP_AON_CDOFFS 0x0200
  51. #define AM43XX_CM_WKUP_WKUP_CDOFFS 0x0300
  52. #define AM43XX_CM_MPU_MPU_CDOFFS 0x0000
  53. #define AM43XX_CM_GFX_GFX_L3_CDOFFS 0x0000
  54. #define AM43XX_CM_RTC_RTC_CDOFFS 0x0000
  55. #define AM43XX_CM_TAMPER_TAMPER_CDOFFS 0x0000
  56. #define AM43XX_CM_CEFUSE_CEFUSE_CDOFFS 0x0000
  57. #define AM43XX_CM_PER_L3_CDOFFS 0x0000
  58. #define AM43XX_CM_PER_L3S_CDOFFS 0x0200
  59. #define AM43XX_CM_PER_ICSS_CDOFFS 0x0300
  60. #define AM43XX_CM_PER_L4LS_CDOFFS 0x0400
  61. #define AM43XX_CM_PER_EMIF_CDOFFS 0x0700
  62. #define AM43XX_CM_PER_DSS_CDOFFS 0x0a00
  63. #define AM43XX_CM_PER_CPSW_CDOFFS 0x0b00
  64. #define AM43XX_CM_PER_OCPWP_L3_CDOFFS 0x0c00
  65. /* CLK CTRL offsets */
  66. #define AM43XX_CM_PER_UART1_CLKCTRL_OFFSET 0x0580
  67. #define AM43XX_CM_PER_UART2_CLKCTRL_OFFSET 0x0588
  68. #define AM43XX_CM_PER_UART3_CLKCTRL_OFFSET 0x0590
  69. #define AM43XX_CM_PER_UART4_CLKCTRL_OFFSET 0x0598
  70. #define AM43XX_CM_PER_UART5_CLKCTRL_OFFSET 0x05a0
  71. #define AM43XX_CM_PER_DCAN0_CLKCTRL_OFFSET 0x0428
  72. #define AM43XX_CM_PER_DCAN1_CLKCTRL_OFFSET 0x0430
  73. #define AM43XX_CM_PER_ELM_CLKCTRL_OFFSET 0x0468
  74. #define AM43XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET 0x0438
  75. #define AM43XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET 0x0440
  76. #define AM43XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET 0x0448
  77. #define AM43XX_CM_PER_GPIO1_CLKCTRL_OFFSET 0x0478
  78. #define AM43XX_CM_PER_GPIO2_CLKCTRL_OFFSET 0x0480
  79. #define AM43XX_CM_PER_GPIO3_CLKCTRL_OFFSET 0x0488
  80. #define AM43XX_CM_PER_I2C1_CLKCTRL_OFFSET 0x04a8
  81. #define AM43XX_CM_PER_I2C2_CLKCTRL_OFFSET 0x04b0
  82. #define AM43XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET 0x04b8
  83. #define AM43XX_CM_PER_MMC0_CLKCTRL_OFFSET 0x04c0
  84. #define AM43XX_CM_PER_MMC1_CLKCTRL_OFFSET 0x04c8
  85. #define AM43XX_CM_PER_SPI0_CLKCTRL_OFFSET 0x0500
  86. #define AM43XX_CM_PER_SPI1_CLKCTRL_OFFSET 0x0508
  87. #define AM43XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET 0x0528
  88. #define AM43XX_CM_PER_TIMER2_CLKCTRL_OFFSET 0x0530
  89. #define AM43XX_CM_PER_TIMER3_CLKCTRL_OFFSET 0x0538
  90. #define AM43XX_CM_PER_TIMER4_CLKCTRL_OFFSET 0x0540
  91. #define AM43XX_CM_PER_TIMER5_CLKCTRL_OFFSET 0x0548
  92. #define AM43XX_CM_PER_TIMER6_CLKCTRL_OFFSET 0x0550
  93. #define AM43XX_CM_PER_TIMER7_CLKCTRL_OFFSET 0x0558
  94. #define AM43XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET 0x0228
  95. #define AM43XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET 0x0360
  96. #define AM43XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET 0x0350
  97. #define AM43XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET 0x0358
  98. #define AM43XX_CM_WKUP_UART0_CLKCTRL_OFFSET 0x0348
  99. #define AM43XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET 0x0328
  100. #define AM43XX_CM_WKUP_I2C0_CLKCTRL_OFFSET 0x0340
  101. #define AM43XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET 0x0368
  102. #define AM43XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET 0x0120
  103. #define AM43XX_CM_WKUP_WDT1_CLKCTRL_OFFSET 0x0338
  104. #define AM43XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET 0x0220
  105. #define AM43XX_CM_RTC_RTC_CLKCTRL_OFFSET 0x0020
  106. #define AM43XX_CM_PER_MMC2_CLKCTRL_OFFSET 0x0248
  107. #define AM43XX_CM_PER_QSPI_CLKCTRL_OFFSET 0x0258
  108. #define AM43XX_CM_PER_GPMC_CLKCTRL_OFFSET 0x0220
  109. #define AM43XX_CM_PER_MCASP0_CLKCTRL_OFFSET 0x0238
  110. #define AM43XX_CM_PER_MCASP1_CLKCTRL_OFFSET 0x0240
  111. #define AM43XX_CM_PER_L4LS_CLKCTRL_OFFSET 0x0420
  112. #define AM43XX_CM_PER_L3_CLKCTRL_OFFSET 0x0020
  113. #define AM43XX_CM_PER_TPCC_CLKCTRL_OFFSET 0x0078
  114. #define AM43XX_CM_PER_TPTC0_CLKCTRL_OFFSET 0x0080
  115. #define AM43XX_CM_PER_TPTC1_CLKCTRL_OFFSET 0x0088
  116. #define AM43XX_CM_PER_TPTC2_CLKCTRL_OFFSET 0x0090
  117. #define AM43XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET 0x0b20
  118. #define AM43XX_CM_PER_PRUSS_CLKCTRL_OFFSET 0x0320
  119. #define AM43XX_CM_GFX_GFX_CLKCTRL_OFFSET 0x0020
  120. #define AM43XX_CM_PER_L4HS_CLKCTRL_OFFSET 0x00a0
  121. #define AM43XX_CM_MPU_MPU_CLKCTRL_OFFSET 0x0020
  122. #define AM43XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET 0x0040
  123. #define AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET 0x0050
  124. #define AM43XX_CM_PER_SHA0_CLKCTRL_OFFSET 0x0058
  125. #define AM43XX_CM_PER_AES0_CLKCTRL_OFFSET 0x0028
  126. #define AM43XX_CM_PER_TIMER8_CLKCTRL_OFFSET 0x0560
  127. #define AM43XX_CM_PER_TIMER9_CLKCTRL_OFFSET 0x0568
  128. #define AM43XX_CM_PER_TIMER10_CLKCTRL_OFFSET 0x0570
  129. #define AM43XX_CM_PER_TIMER11_CLKCTRL_OFFSET 0x0578
  130. #define AM43XX_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET 0x0230
  131. #define AM43XX_CM_PER_EPWMSS3_CLKCTRL_OFFSET 0x0450
  132. #define AM43XX_CM_PER_EPWMSS4_CLKCTRL_OFFSET 0x0458
  133. #define AM43XX_CM_PER_EPWMSS5_CLKCTRL_OFFSET 0x0460
  134. #define AM43XX_CM_PER_SPI2_CLKCTRL_OFFSET 0x0510
  135. #define AM43XX_CM_PER_SPI3_CLKCTRL_OFFSET 0x0518
  136. #define AM43XX_CM_PER_SPI4_CLKCTRL_OFFSET 0x0520
  137. #define AM43XX_CM_PER_GPIO4_CLKCTRL_OFFSET 0x0490
  138. #define AM43XX_CM_PER_GPIO5_CLKCTRL_OFFSET 0x0498
  139. #define AM43XX_CM_PER_USB_OTG_SS0_CLKCTRL_OFFSET 0x0260
  140. #define AM43XX_CM_PER_USBPHYOCP2SCP0_CLKCTRL_OFFSET 0x05B8
  141. #define AM43XX_CM_PER_USB_OTG_SS1_CLKCTRL_OFFSET 0x0268
  142. #define AM43XX_CM_PER_USBPHYOCP2SCP1_CLKCTRL_OFFSET 0x05C0
  143. #define AM43XX_CM_PER_DSS_CLKCTRL_OFFSET 0x0a20
  144. #define AM43XX_CM_PER_HDQ1W_CLKCTRL_OFFSET 0x04a0
  145. #define AM43XX_CM_PER_VPFE0_CLKCTRL_OFFSET 0x0068
  146. #define AM43XX_CM_PER_VPFE1_CLKCTRL_OFFSET 0x0070
  147. #define AM43XX_CM_PER_EMIF_CLKCTRL_OFFSET 0x0720
  148. #endif