cslr_icont.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /********************************************************************
  2. * Copyright (C) 2013-2014 Texas Instruments Incorporated.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the
  14. * distribution.
  15. *
  16. * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. */
  33. #ifndef CSLR_ICONT_H_
  34. #define CSLR_ICONT_H_
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. #include <ti/csl/cslr.h>
  40. #include <ti/csl/tistdtypes.h>
  41. /**************************************************************************
  42. * Register Overlay Structure for __ALL__
  43. **************************************************************************/
  44. typedef struct {
  45. volatile Uint32 ICONT_REVISION;
  46. volatile Uint32 ICONT_HWINFO;
  47. volatile Uint8 RSVD0[8];
  48. volatile Uint32 ICONT_SYSCONFIG;
  49. } CSL_IcontRegs;
  50. /**************************************************************************
  51. * Register Macros
  52. **************************************************************************/
  53. /* ICONT Revision Identifier (X.Y.R) Used by software to track features, bugs,
  54. * and compatibility */
  55. #define CSL_ICONT_ICONT_REVISION (0x0U)
  56. /* Information about the IP module's hardware configuration. */
  57. #define CSL_ICONT_ICONT_HWINFO (0x4U)
  58. /* Clock management configuration */
  59. #define CSL_ICONT_ICONT_SYSCONFIG (0x10U)
  60. /**************************************************************************
  61. * Field Definition Macros
  62. **************************************************************************/
  63. /* ICONT_REVISION */
  64. #define CSL_ICONT_ICONT_REVISION_Y_MINOR_MASK (0x0000003FU)
  65. #define CSL_ICONT_ICONT_REVISION_Y_MINOR_SHIFT (0U)
  66. #define CSL_ICONT_ICONT_REVISION_Y_MINOR_RESETVAL (0x00000000U)
  67. #define CSL_ICONT_ICONT_REVISION_Y_MINOR_MAX (0x0000003fU)
  68. #define CSL_ICONT_ICONT_REVISION_CUSTOM_MASK (0x000000C0U)
  69. #define CSL_ICONT_ICONT_REVISION_CUSTOM_SHIFT (6U)
  70. #define CSL_ICONT_ICONT_REVISION_CUSTOM_RESETVAL (0x00000000U)
  71. #define CSL_ICONT_ICONT_REVISION_CUSTOM_STANDARD (0x00000000U)
  72. #define CSL_ICONT_ICONT_REVISION_X_MAJOR_MASK (0x00000700U)
  73. #define CSL_ICONT_ICONT_REVISION_X_MAJOR_SHIFT (8U)
  74. #define CSL_ICONT_ICONT_REVISION_X_MAJOR_RESETVAL (0x00000000U)
  75. #define CSL_ICONT_ICONT_REVISION_X_MAJOR_MAX (0x00000007U)
  76. #define CSL_ICONT_ICONT_REVISION_R_RTL_MASK (0x0000F800U)
  77. #define CSL_ICONT_ICONT_REVISION_R_RTL_SHIFT (11U)
  78. #define CSL_ICONT_ICONT_REVISION_R_RTL_RESETVAL (0x00000000U)
  79. #define CSL_ICONT_ICONT_REVISION_R_RTL_MAX (0x0000001fU)
  80. #define CSL_ICONT_ICONT_REVISION_FUNC_MASK (0x0FFF0000U)
  81. #define CSL_ICONT_ICONT_REVISION_FUNC_SHIFT (16U)
  82. #define CSL_ICONT_ICONT_REVISION_FUNC_RESETVAL (0x00000000U)
  83. #define CSL_ICONT_ICONT_REVISION_FUNC_MAX (0x00000fffU)
  84. #define CSL_ICONT_ICONT_REVISION_SCHEME_MASK (0xC0000000U)
  85. #define CSL_ICONT_ICONT_REVISION_SCHEME_SHIFT (30U)
  86. #define CSL_ICONT_ICONT_REVISION_SCHEME_RESETVAL (0x00000001U)
  87. #define CSL_ICONT_ICONT_REVISION_SCHEME_H08 (0x00000001U)
  88. #define CSL_ICONT_ICONT_REVISION_SCHEME_LEGACY (0x00000000U)
  89. #define CSL_ICONT_ICONT_REVISION_RESETVAL (0x50000000U)
  90. /* ICONT_HWINFO */
  91. #define CSL_ICONT_ICONT_HWINFO_ICTM_SIZE_MASK (0x000000FFU)
  92. #define CSL_ICONT_ICONT_HWINFO_ICTM_SIZE_SHIFT (0U)
  93. #define CSL_ICONT_ICONT_HWINFO_ICTM_SIZE_RESETVAL (0x00000020U)
  94. #define CSL_ICONT_ICONT_HWINFO_ICTM_SIZE_MAX (0x000000ffU)
  95. #define CSL_ICONT_ICONT_HWINFO_DTCM_SIZE_MASK (0x0000FF00U)
  96. #define CSL_ICONT_ICONT_HWINFO_DTCM_SIZE_SHIFT (8U)
  97. #define CSL_ICONT_ICONT_HWINFO_DTCM_SIZE_RESETVAL (0x00000010U)
  98. #define CSL_ICONT_ICONT_HWINFO_DTCM_SIZE_MAX (0x000000ffU)
  99. #define CSL_ICONT_ICONT_HWINFO_NB_TASK_MASK (0x000F0000U)
  100. #define CSL_ICONT_ICONT_HWINFO_NB_TASK_SHIFT (16U)
  101. #define CSL_ICONT_ICONT_HWINFO_NB_TASK_RESETVAL (0x00000006U)
  102. #define CSL_ICONT_ICONT_HWINFO_NB_TASK_MAX (0x0000000fU)
  103. #define CSL_ICONT_ICONT_HWINFO_NB_LCH_MASK (0x00F00000U)
  104. #define CSL_ICONT_ICONT_HWINFO_NB_LCH_SHIFT (20U)
  105. #define CSL_ICONT_ICONT_HWINFO_NB_LCH_RESETVAL (0x00000004U)
  106. #define CSL_ICONT_ICONT_HWINFO_NB_LCH_MAX (0x0000000fU)
  107. #define CSL_ICONT_ICONT_HWINFO_RESETVAL (0x00461020U)
  108. /* ICONT_SYSCONFIG */
  109. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_MASK (0x0000000CU)
  110. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_SHIFT (2U)
  111. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_RESETVAL (0x00000002U)
  112. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_FORCE (0x00000000U)
  113. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_NO (0x00000001U)
  114. #define CSL_ICONT_ICONT_SYSCONFIG_IDLEMODE_SMART (0x00000002U)
  115. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_MASK (0x00000030U)
  116. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_SHIFT (4U)
  117. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_RESETVAL (0x00000002U)
  118. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_FORCE (0x00000000U)
  119. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_NO (0x00000001U)
  120. #define CSL_ICONT_ICONT_SYSCONFIG_STANDBYMODE_SMART (0x00000002U)
  121. #define CSL_ICONT_ICONT_SYSCONFIG_RESETVAL (0x00000028U)
  122. #ifdef __cplusplus
  123. }
  124. #endif
  125. #endif