cm-regbits-44xx.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * OMAP44xx Clock Management register bits
  3. *
  4. * Copyright (C) 2009-2012 Texas Instruments, Inc.
  5. * Copyright (C) 2009-2010 Nokia Corporation
  6. *
  7. * Paul Walmsley (paul@pwsan.com)
  8. * Rajendra Nayak (rnayak@ti.com)
  9. * Benoit Cousson (b-cousson@ti.com)
  10. *
  11. * This file is automatically generated from the OMAP hardware databases.
  12. * We respectfully ask that any modifications to this file be coordinated
  13. * with the public linux-omap@vger.kernel.org mailing list and the
  14. * authors above to ensure that the autogeneration scripts are kept
  15. * up-to-date with the file contents.
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU General Public License version 2 as
  19. * published by the Free Software Foundation.
  20. */
  21. #ifndef __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
  22. #define __ARCH_ARM_MACH_OMAP2_CM_REGBITS_44XX_H
  23. #define OMAP4430_ABE_STATDEP_SHIFT 3
  24. #define OMAP4430_AUTO_DPLL_MODE_MASK (0x7 << 0)
  25. #define OMAP4430_CLKSEL_SHIFT 24
  26. #define OMAP4430_CLKSEL_WIDTH 0x1
  27. #define OMAP4430_CLKSEL_MASK (1 << 24)
  28. #define OMAP4430_CLKSEL_0_0_SHIFT 0
  29. #define OMAP4430_CLKSEL_0_0_WIDTH 0x1
  30. #define OMAP4430_CLKSEL_0_1_SHIFT 0
  31. #define OMAP4430_CLKSEL_0_1_WIDTH 0x2
  32. #define OMAP4430_CLKSEL_24_25_SHIFT 24
  33. #define OMAP4430_CLKSEL_24_25_WIDTH 0x2
  34. #define OMAP4430_CLKSEL_60M_SHIFT 24
  35. #define OMAP4430_CLKSEL_60M_WIDTH 0x1
  36. #define OMAP4430_CLKSEL_AESS_FCLK_SHIFT 24
  37. #define OMAP4430_CLKSEL_AESS_FCLK_WIDTH 0x1
  38. #define OMAP4430_CLKSEL_CORE_SHIFT 0
  39. #define OMAP4430_CLKSEL_CORE_WIDTH 0x1
  40. #define OMAP4430_CLKSEL_DIV_SHIFT 24
  41. #define OMAP4430_CLKSEL_DIV_WIDTH 0x1
  42. #define OMAP4430_CLKSEL_FCLK_SHIFT 24
  43. #define OMAP4430_CLKSEL_FCLK_WIDTH 0x2
  44. #define OMAP4430_CLKSEL_INTERNAL_SOURCE_SHIFT 25
  45. #define OMAP4430_CLKSEL_INTERNAL_SOURCE_WIDTH 0x1
  46. #define OMAP4430_CLKSEL_L3_SHIFT 4
  47. #define OMAP4430_CLKSEL_L3_WIDTH 0x1
  48. #define OMAP4430_CLKSEL_L4_SHIFT 8
  49. #define OMAP4430_CLKSEL_L4_WIDTH 0x1
  50. #define OMAP4430_CLKSEL_OPP_SHIFT 0
  51. #define OMAP4430_CLKSEL_OPP_WIDTH 0x2
  52. #define OMAP4430_CLKSEL_PMD_STM_CLK_SHIFT 27
  53. #define OMAP4430_CLKSEL_PMD_STM_CLK_WIDTH 0x3
  54. #define OMAP4430_CLKSEL_PMD_TRACE_CLK_MASK (0x7 << 24)
  55. #define OMAP4430_CLKSEL_SGX_FCLK_MASK (1 << 24)
  56. #define OMAP4430_CLKSEL_SOURCE_MASK (0x3 << 24)
  57. #define OMAP4430_CLKSEL_SOURCE_24_24_MASK (1 << 24)
  58. #define OMAP4430_CLKSEL_UTMI_P1_SHIFT 24
  59. #define OMAP4430_CLKSEL_UTMI_P1_WIDTH 0x1
  60. #define OMAP4430_CLKSEL_UTMI_P2_SHIFT 25
  61. #define OMAP4430_CLKSEL_UTMI_P2_WIDTH 0x1
  62. #define OMAP4430_CLKTRCTRL_SHIFT 0
  63. #define OMAP4430_CLKTRCTRL_MASK (0x3 << 0)
  64. #define OMAP4430_DPLL_BYP_CLKSEL_SHIFT 23
  65. #define OMAP4430_DPLL_BYP_CLKSEL_WIDTH 0x1
  66. #define OMAP4430_DPLL_CLKOUTHIF_DIV_MASK (0x1f << 0)
  67. #define OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT 8
  68. #define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
  69. #define OMAP4430_DPLL_CLKOUT_DIV_SHIFT 0
  70. #define OMAP4430_DPLL_CLKOUT_DIV_WIDTH 0x5
  71. #define OMAP4430_DPLL_CLKOUT_DIV_MASK (0x1f << 0)
  72. #define OMAP4430_DPLL_CLKOUT_DIV_0_6_MASK (0x7f << 0)
  73. #define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
  74. #define OMAP4430_DPLL_DIV_MASK (0x7f << 0)
  75. #define OMAP4430_DPLL_DIV_0_7_MASK (0xff << 0)
  76. #define OMAP4430_DPLL_EN_MASK (0x7 << 0)
  77. #define OMAP4430_DPLL_LPMODE_EN_MASK (1 << 10)
  78. #define OMAP4430_DPLL_MULT_MASK (0x7ff << 8)
  79. #define OMAP4430_DPLL_MULT_USB_MASK (0xfff << 8)
  80. #define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
  81. #define OMAP4430_DPLL_SD_DIV_MASK (0xff << 24)
  82. #define OMAP4430_DSS_STATDEP_SHIFT 8
  83. #define OMAP4430_DUCATI_STATDEP_SHIFT 0
  84. #define OMAP4430_GFX_STATDEP_SHIFT 10
  85. #define OMAP4430_HSDIVIDER_CLKOUT1_DIV_MASK (0x1f << 0)
  86. #define OMAP4430_HSDIVIDER_CLKOUT2_DIV_MASK (0x1f << 0)
  87. #define OMAP4430_HSDIVIDER_CLKOUT3_DIV_MASK (0x1f << 0)
  88. #define OMAP4430_HSDIVIDER_CLKOUT4_DIV_MASK (0x1f << 0)
  89. #define OMAP4430_IDLEST_SHIFT 16
  90. #define OMAP4430_IDLEST_MASK (0x3 << 16)
  91. #define OMAP4430_IVAHD_STATDEP_SHIFT 2
  92. #define OMAP4430_L3INIT_STATDEP_SHIFT 7
  93. #define OMAP4430_L3_1_STATDEP_SHIFT 5
  94. #define OMAP4430_L3_2_STATDEP_SHIFT 6
  95. #define OMAP4430_L4CFG_STATDEP_SHIFT 12
  96. #define OMAP4430_L4PER_STATDEP_SHIFT 13
  97. #define OMAP4430_L4SEC_STATDEP_SHIFT 14
  98. #define OMAP4430_L4WKUP_STATDEP_SHIFT 15
  99. #define OMAP4430_MEMIF_STATDEP_SHIFT 4
  100. #define OMAP4430_MODULEMODE_SHIFT 0
  101. #define OMAP4430_MODULEMODE_MASK (0x3 << 0)
  102. #define OMAP4430_OPTFCLKEN_48MHZ_CLK_SHIFT 9
  103. #define OMAP4430_OPTFCLKEN_BGAP_32K_SHIFT 8
  104. #define OMAP4430_OPTFCLKEN_CLK32K_SHIFT 8
  105. #define OMAP4430_OPTFCLKEN_CTRLCLK_SHIFT 8
  106. #define OMAP4430_OPTFCLKEN_DBCLK_SHIFT 8
  107. #define OMAP4430_OPTFCLKEN_DSSCLK_SHIFT 8
  108. #define OMAP4430_OPTFCLKEN_FCLK_SHIFT 8
  109. #define OMAP4430_OPTFCLKEN_FCLK0_SHIFT 8
  110. #define OMAP4430_OPTFCLKEN_FCLK1_SHIFT 9
  111. #define OMAP4430_OPTFCLKEN_FCLK2_SHIFT 10
  112. #define OMAP4430_OPTFCLKEN_FUNC48MCLK_SHIFT 15
  113. #define OMAP4430_OPTFCLKEN_HSIC480M_P1_CLK_SHIFT 13
  114. #define OMAP4430_OPTFCLKEN_HSIC480M_P2_CLK_SHIFT 14
  115. #define OMAP4430_OPTFCLKEN_HSIC60M_P1_CLK_SHIFT 11
  116. #define OMAP4430_OPTFCLKEN_HSIC60M_P2_CLK_SHIFT 12
  117. #define OMAP4430_OPTFCLKEN_PER24MC_GFCLK_SHIFT 8
  118. #define OMAP4430_OPTFCLKEN_PERABE24M_GFCLK_SHIFT 9
  119. #define OMAP4430_OPTFCLKEN_PHY_48M_SHIFT 8
  120. #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_SHIFT 10
  121. #define OMAP4430_OPTFCLKEN_SLIMBUS_CLK_11_11_SHIFT 11
  122. #define OMAP4430_OPTFCLKEN_SYS_CLK_SHIFT 10
  123. #define OMAP4460_OPTFCLKEN_TS_FCLK_SHIFT 8
  124. #define OMAP4430_OPTFCLKEN_TV_CLK_SHIFT 11
  125. #define OMAP4430_OPTFCLKEN_USB_CH0_CLK_SHIFT 8
  126. #define OMAP4430_OPTFCLKEN_USB_CH1_CLK_SHIFT 9
  127. #define OMAP4430_OPTFCLKEN_USB_CH2_CLK_SHIFT 10
  128. #define OMAP4430_OPTFCLKEN_UTMI_P1_CLK_SHIFT 8
  129. #define OMAP4430_OPTFCLKEN_UTMI_P2_CLK_SHIFT 9
  130. #define OMAP4430_OPTFCLKEN_UTMI_P3_CLK_SHIFT 10
  131. #define OMAP4430_OPTFCLKEN_XCLK_SHIFT 8
  132. #define OMAP4430_PAD_CLKS_GATE_SHIFT 8
  133. #define OMAP4430_PMD_STM_MUX_CTRL_SHIFT 20
  134. #define OMAP4430_PMD_STM_MUX_CTRL_WIDTH 0x2
  135. #define OMAP4430_PMD_TRACE_MUX_CTRL_SHIFT 22
  136. #define OMAP4430_PMD_TRACE_MUX_CTRL_WIDTH 0x2
  137. #define OMAP4430_SCALE_FCLK_SHIFT 0
  138. #define OMAP4430_SCALE_FCLK_WIDTH 0x1
  139. #define OMAP4430_SLIMBUS_CLK_GATE_SHIFT 10
  140. #define OMAP4430_ST_DPLL_CLK_MASK (1 << 0)
  141. #define OMAP4430_SYS_CLKSEL_SHIFT 0
  142. #define OMAP4430_SYS_CLKSEL_WIDTH 0x3
  143. #define OMAP4430_TESLA_STATDEP_SHIFT 1
  144. #endif