cm-regbits-24xx.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
  2. #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_24XX_H
  3. /*
  4. * OMAP24XX Clock Management register bits
  5. *
  6. * Copyright (C) 2007 Texas Instruments, Inc.
  7. * Copyright (C) 2007 Nokia Corporation
  8. *
  9. * Written by Paul Walmsley
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #define OMAP24XX_EN_CAM_SHIFT 31
  16. #define OMAP24XX_EN_WDT4_SHIFT 29
  17. #define OMAP2420_EN_WDT3_SHIFT 28
  18. #define OMAP24XX_EN_MSPRO_SHIFT 27
  19. #define OMAP24XX_EN_FAC_SHIFT 25
  20. #define OMAP2420_EN_EAC_SHIFT 24
  21. #define OMAP24XX_EN_HDQ_SHIFT 23
  22. #define OMAP2420_EN_I2C2_SHIFT 20
  23. #define OMAP2420_EN_I2C1_SHIFT 19
  24. #define OMAP2430_EN_MCBSP5_SHIFT 5
  25. #define OMAP2430_EN_MCBSP4_SHIFT 4
  26. #define OMAP2430_EN_MCBSP3_SHIFT 3
  27. #define OMAP24XX_EN_SSI_SHIFT 1
  28. #define OMAP24XX_EN_MPU_WDT_SHIFT 3
  29. #define OMAP24XX_CLKSEL_MPU_SHIFT 0
  30. #define OMAP24XX_CLKSEL_MPU_WIDTH 5
  31. #define OMAP24XX_AUTOSTATE_MPU_MASK (1 << 0)
  32. #define OMAP24XX_EN_TV_SHIFT 2
  33. #define OMAP24XX_EN_DSS2_SHIFT 1
  34. #define OMAP24XX_EN_DSS1_SHIFT 0
  35. #define OMAP24XX_EN_DSS1_MASK (1 << 0)
  36. #define OMAP2430_EN_I2CHS2_SHIFT 20
  37. #define OMAP2430_EN_I2CHS1_SHIFT 19
  38. #define OMAP2430_EN_MMCHSDB2_SHIFT 17
  39. #define OMAP2430_EN_MMCHSDB1_SHIFT 16
  40. #define OMAP24XX_EN_MAILBOXES_SHIFT 30
  41. #define OMAP2430_EN_SDRC_SHIFT 2
  42. #define OMAP24XX_EN_PKA_SHIFT 4
  43. #define OMAP24XX_EN_AES_SHIFT 3
  44. #define OMAP24XX_EN_RNG_SHIFT 2
  45. #define OMAP24XX_EN_SHA_SHIFT 1
  46. #define OMAP24XX_EN_DES_SHIFT 0
  47. #define OMAP24XX_ST_MAILBOXES_SHIFT 30
  48. #define OMAP24XX_ST_HDQ_SHIFT 23
  49. #define OMAP2420_ST_I2C2_SHIFT 20
  50. #define OMAP2430_ST_I2CHS1_SHIFT 19
  51. #define OMAP2420_ST_I2C1_SHIFT 19
  52. #define OMAP2430_ST_I2CHS2_SHIFT 20
  53. #define OMAP24XX_ST_MCBSP2_SHIFT 16
  54. #define OMAP24XX_ST_MCBSP1_SHIFT 15
  55. #define OMAP24XX_ST_DSS_SHIFT 0
  56. #define OMAP2430_ST_MCBSP5_SHIFT 5
  57. #define OMAP2430_ST_MCBSP4_SHIFT 4
  58. #define OMAP2430_ST_MCBSP3_SHIFT 3
  59. #define OMAP24XX_ST_AES_SHIFT 3
  60. #define OMAP24XX_ST_RNG_SHIFT 2
  61. #define OMAP24XX_ST_SHA_SHIFT 1
  62. #define OMAP24XX_AUTO_SDRC_SHIFT 2
  63. #define OMAP24XX_AUTO_GPMC_SHIFT 1
  64. #define OMAP24XX_AUTO_SDMA_SHIFT 0
  65. #define OMAP24XX_CLKSEL_USB_MASK (0x7 << 25)
  66. #define OMAP24XX_CLKSEL_SSI_MASK (0x1f << 20)
  67. #define OMAP2420_CLKSEL_VLYNQ_MASK (0x1f << 15)
  68. #define OMAP24XX_CLKSEL_DSS2_MASK (0x1 << 13)
  69. #define OMAP24XX_CLKSEL_DSS1_MASK (0x1f << 8)
  70. #define OMAP24XX_CLKSEL_L4_SHIFT 5
  71. #define OMAP24XX_CLKSEL_L4_WIDTH 2
  72. #define OMAP24XX_CLKSEL_L3_SHIFT 0
  73. #define OMAP24XX_CLKSEL_L3_WIDTH 5
  74. #define OMAP24XX_CLKSEL_GPT12_MASK (0x3 << 22)
  75. #define OMAP24XX_CLKSEL_GPT11_MASK (0x3 << 20)
  76. #define OMAP24XX_CLKSEL_GPT10_MASK (0x3 << 18)
  77. #define OMAP24XX_CLKSEL_GPT9_MASK (0x3 << 16)
  78. #define OMAP24XX_CLKSEL_GPT8_MASK (0x3 << 14)
  79. #define OMAP24XX_CLKSEL_GPT7_MASK (0x3 << 12)
  80. #define OMAP24XX_CLKSEL_GPT6_MASK (0x3 << 10)
  81. #define OMAP24XX_CLKSEL_GPT5_MASK (0x3 << 8)
  82. #define OMAP24XX_CLKSEL_GPT4_MASK (0x3 << 6)
  83. #define OMAP24XX_CLKSEL_GPT3_MASK (0x3 << 4)
  84. #define OMAP24XX_CLKSEL_GPT2_MASK (0x3 << 2)
  85. #define OMAP24XX_AUTOSTATE_DSS_MASK (1 << 2)
  86. #define OMAP24XX_AUTOSTATE_L4_MASK (1 << 1)
  87. #define OMAP24XX_AUTOSTATE_L3_MASK (1 << 0)
  88. #define OMAP24XX_EN_3D_SHIFT 2
  89. #define OMAP24XX_EN_2D_SHIFT 1
  90. #define OMAP24XX_AUTOSTATE_GFX_MASK (1 << 0)
  91. #define OMAP2430_EN_ICR_SHIFT 6
  92. #define OMAP24XX_EN_OMAPCTRL_SHIFT 5
  93. #define OMAP24XX_EN_WDT1_SHIFT 4
  94. #define OMAP24XX_EN_32KSYNC_SHIFT 1
  95. #define OMAP24XX_ST_MPU_WDT_SHIFT 3
  96. #define OMAP24XX_ST_32KSYNC_SHIFT 1
  97. #define OMAP24XX_CLKSEL_GPT1_MASK (0x3 << 0)
  98. #define OMAP24XX_EN_54M_PLL_SHIFT 6
  99. #define OMAP24XX_EN_96M_PLL_SHIFT 2
  100. #define OMAP24XX_EN_DPLL_MASK (0x3 << 0)
  101. #define OMAP24XX_ST_54M_APLL_SHIFT 9
  102. #define OMAP24XX_ST_96M_APLL_SHIFT 8
  103. #define OMAP24XX_AUTO_54M_MASK (0x3 << 6)
  104. #define OMAP24XX_AUTO_96M_MASK (0x3 << 2)
  105. #define OMAP24XX_AUTO_DPLL_SHIFT 0
  106. #define OMAP24XX_AUTO_DPLL_MASK (0x3 << 0)
  107. #define OMAP24XX_APLLS_CLKIN_SHIFT 23
  108. #define OMAP24XX_APLLS_CLKIN_WIDTH 3
  109. #define OMAP24XX_APLLS_CLKIN_MASK (0x7 << 23)
  110. #define OMAP24XX_DPLL_MULT_MASK (0x3ff << 12)
  111. #define OMAP24XX_DPLL_DIV_MASK (0xf << 8)
  112. #define OMAP24XX_54M_SOURCE_SHIFT 5
  113. #define OMAP24XX_54M_SOURCE_WIDTH 1
  114. #define OMAP2430_96M_SOURCE_SHIFT 4
  115. #define OMAP2430_96M_SOURCE_WIDTH 1
  116. #define OMAP24XX_48M_SOURCE_MASK (1 << 3)
  117. #define OMAP24XX_CORE_CLK_SRC_MASK (0x3 << 0)
  118. #define OMAP2420_EN_IVA_COP_SHIFT 10
  119. #define OMAP2420_EN_IVA_MPU_SHIFT 8
  120. #define OMAP24XX_CM_FCLKEN_DSP_EN_DSP_SHIFT 0
  121. #define OMAP2420_EN_DSP_IPI_SHIFT 1
  122. #define OMAP2420_CLKSEL_IVA_MASK (0x1f << 8)
  123. #define OMAP24XX_CLKSEL_DSP_IF_MASK (0x3 << 5)
  124. #define OMAP24XX_CLKSEL_DSP_MASK (0x1f << 0)
  125. #define OMAP2420_AUTOSTATE_IVA_MASK (1 << 8)
  126. #define OMAP24XX_AUTOSTATE_DSP_MASK (1 << 0)
  127. #define OMAP2430_EN_OSC_SHIFT 1
  128. #define OMAP2430_CM_ICLKEN_MDM_EN_MDM_SHIFT 0
  129. #define OMAP2430_CLKSEL_MDM_MASK (0xf << 0)
  130. #define OMAP2430_AUTOSTATE_MDM_MASK (1 << 0)
  131. #define OMAP24XX_CLKSTCTRL_DISABLE_AUTO 0x0
  132. #define OMAP24XX_CLKSTCTRL_ENABLE_AUTO 0x1
  133. #endif