hw_cctest.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /******************************************************************************
  2. * Filename: hw_cctest.h
  3. * Revised: $Date: 2013-04-30 17:13:44 +0200 (Tue, 30 Apr 2013) $
  4. * Revision: $Revision: 9943 $
  5. *
  6. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
  7. *
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the distribution.
  19. *
  20. * Neither the name of Texas Instruments Incorporated nor the names of
  21. * its contributors may be used to endorse or promote products derived
  22. * from this software without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. *
  36. ******************************************************************************/
  37. #ifndef __HW_CCTEST_H__
  38. #define __HW_CCTEST_H__
  39. //*****************************************************************************
  40. //
  41. // The following are defines for the CCTEST register offsets.
  42. //
  43. //*****************************************************************************
  44. #define CCTEST_IO 0x44010000 // Output strength control
  45. #define CCTEST_OBSSEL0 0x44010014 // Select output signal on
  46. // observation output 0
  47. #define CCTEST_OBSSEL1 0x44010018 // Select output signal on
  48. // observation output 1
  49. #define CCTEST_OBSSEL2 0x4401001C // Select output signal on
  50. // observation output 2
  51. #define CCTEST_OBSSEL3 0x44010020 // Select output signal on
  52. // observation output 3
  53. #define CCTEST_OBSSEL4 0x44010024 // Select output signal on
  54. // observation output 4
  55. #define CCTEST_OBSSEL5 0x44010028 // Select output signal on
  56. // observation output 5
  57. #define CCTEST_OBSSEL6 0x4401002C // Select output signal on
  58. // observation output 6
  59. #define CCTEST_OBSSEL7 0x44010030 // Select output signal on
  60. // observation output 7
  61. #define CCTEST_TR0 0x44010034 // Test register 0
  62. #define CCTEST_USBCTRL 0x44010050 // USB PHY stand-by control
  63. //*****************************************************************************
  64. //
  65. // The following are defines for the bit fields in the CCTEST_IO register.
  66. //
  67. //*****************************************************************************
  68. #define CCTEST_IO_SC 0x00000001 // I/O strength control bit Common
  69. // to all digital output pads
  70. // Should be set when unregulated
  71. // voltage is below approximately
  72. // 2.6 V.
  73. #define CCTEST_IO_SC_M 0x00000001
  74. #define CCTEST_IO_SC_S 0
  75. //*****************************************************************************
  76. //
  77. // The following are defines for the bit fields in the
  78. // CCTEST_OBSSEL0 register.
  79. //
  80. //*****************************************************************************
  81. #define CCTEST_OBSSEL0_EN 0x00000080 // Observation output 0 enable
  82. // control for PC0 0: Observation
  83. // output disabled 1: Observation
  84. // output enabled Note: If enabled,
  85. // this overwrites the standard
  86. // GPIO behavior of PC0.
  87. #define CCTEST_OBSSEL0_EN_M 0x00000080
  88. #define CCTEST_OBSSEL0_EN_S 7
  89. #define CCTEST_OBSSEL0_SEL_M 0x0000007F // n - obs_sigs[n] output on
  90. // output 0: 0: rfc_obs_sig0 1:
  91. // rfc_obs_sig1 2: rfc_obs_sig2
  92. // Others: Reserved
  93. #define CCTEST_OBSSEL0_SEL_S 0
  94. //*****************************************************************************
  95. //
  96. // The following are defines for the bit fields in the
  97. // CCTEST_OBSSEL1 register.
  98. //
  99. //*****************************************************************************
  100. #define CCTEST_OBSSEL1_EN 0x00000080 // Observation output 1 enable
  101. // control for PC1 0: Observation
  102. // output disabled 1: Observation
  103. // output enabled Note: If enabled,
  104. // this overwrites the standard
  105. // GPIO behavior of PC1.
  106. #define CCTEST_OBSSEL1_EN_M 0x00000080
  107. #define CCTEST_OBSSEL1_EN_S 7
  108. #define CCTEST_OBSSEL1_SEL_M 0x0000007F // n - obs_sigs[n] output on
  109. // output 1: 0: rfc_obs_sig0 1:
  110. // rfc_obs_sig1 2: rfc_obs_sig2
  111. // Others: Reserved
  112. #define CCTEST_OBSSEL1_SEL_S 0
  113. //*****************************************************************************
  114. //
  115. // The following are defines for the bit fields in the
  116. // CCTEST_OBSSEL2 register.
  117. //
  118. //*****************************************************************************
  119. #define CCTEST_OBSSEL2_EN 0x00000080 // Observation output 2 enable
  120. // control for PC2 0: Observation
  121. // output disabled 1: Observation
  122. // output enabled Note: If enabled,
  123. // this overwrites the standard
  124. // GPIO behavior of PC2.
  125. #define CCTEST_OBSSEL2_EN_M 0x00000080
  126. #define CCTEST_OBSSEL2_EN_S 7
  127. #define CCTEST_OBSSEL2_SEL_M 0x0000007F // n - obs_sigs[n] output on
  128. // output 2: 0: rfc_obs_sig0 1:
  129. // rfc_obs_sig1 2: rfc_obs_sig2
  130. // Others: Reserved
  131. #define CCTEST_OBSSEL2_SEL_S 0
  132. //*****************************************************************************
  133. //
  134. // The following are defines for the bit fields in the
  135. // CCTEST_OBSSEL3 register.
  136. //
  137. //*****************************************************************************
  138. #define CCTEST_OBSSEL3_EN 0x00000080 // Observation output 3 enable
  139. // control for PC3 0: Observation
  140. // output disabled 1: Observation
  141. // output enabled Note: If enabled,
  142. // this overwrites the standard
  143. // GPIO behavior of PC3.
  144. #define CCTEST_OBSSEL3_EN_M 0x00000080
  145. #define CCTEST_OBSSEL3_EN_S 7
  146. #define CCTEST_OBSSEL3_SEL_M 0x0000007F // n - obs_sigs[n] output on
  147. // output 3: 0: rfc_obs_sig0 1:
  148. // rfc_obs_sig1 2: rfc_obs_sig2
  149. // Others: Reserved
  150. #define CCTEST_OBSSEL3_SEL_S 0
  151. //*****************************************************************************
  152. //
  153. // The following are defines for the bit fields in the
  154. // CCTEST_OBSSEL4 register.
  155. //
  156. //*****************************************************************************
  157. #define CCTEST_OBSSEL4_EN 0x00000080 // Observation output 4 enable
  158. // control for PC4 0: Observation
  159. // output disabled 1: Observation
  160. // output enabled Note: If enabled,
  161. // this overwrites the standard
  162. // GPIO behavior of PC4.
  163. #define CCTEST_OBSSEL4_EN_M 0x00000080
  164. #define CCTEST_OBSSEL4_EN_S 7
  165. #define CCTEST_OBSSEL4_SEL_M 0x0000007F // n - obs_sigs[n] output on
  166. // output 4: 0: rfc_obs_sig0 1:
  167. // rfc_obs_sig1 2: rfc_obs_sig2
  168. // Others: Reserved
  169. #define CCTEST_OBSSEL4_SEL_S 0
  170. //*****************************************************************************
  171. //
  172. // The following are defines for the bit fields in the
  173. // CCTEST_OBSSEL5 register.
  174. //
  175. //*****************************************************************************
  176. #define CCTEST_OBSSEL5_EN 0x00000080 // Observation output 5 enable
  177. // control for PC5 0: Observation
  178. // output disabled 1: Observation
  179. // output enabled Note: If enabled,
  180. // this overwrites the standard
  181. // GPIO behavior of PC5.
  182. #define CCTEST_OBSSEL5_EN_M 0x00000080
  183. #define CCTEST_OBSSEL5_EN_S 7
  184. #define CCTEST_OBSSEL5_SEL_M 0x0000007F // n - obs_sigs[n] output on
  185. // output 5: 0: rfc_obs_sig0 1:
  186. // rfc_obs_sig1 2: rfc_obs_sig2
  187. // Others: Reserved
  188. #define CCTEST_OBSSEL5_SEL_S 0
  189. //*****************************************************************************
  190. //
  191. // The following are defines for the bit fields in the
  192. // CCTEST_OBSSEL6 register.
  193. //
  194. //*****************************************************************************
  195. #define CCTEST_OBSSEL6_EN 0x00000080 // Observation output 6 enable
  196. // control for PC6 0: Observation
  197. // output disabled 1: Observation
  198. // output enabled Note: If enabled,
  199. // this overwrites the standard
  200. // GPIO behavior of PC6.
  201. #define CCTEST_OBSSEL6_EN_M 0x00000080
  202. #define CCTEST_OBSSEL6_EN_S 7
  203. #define CCTEST_OBSSEL6_SEL_M 0x0000007F // n - obs_sigs[n] output on
  204. // output 6: 0: rfc_obs_sig0 1:
  205. // rfc_obs_sig1 2: rfc_obs_sig2
  206. // Others: Reserved
  207. #define CCTEST_OBSSEL6_SEL_S 0
  208. //*****************************************************************************
  209. //
  210. // The following are defines for the bit fields in the
  211. // CCTEST_OBSSEL7 register.
  212. //
  213. //*****************************************************************************
  214. #define CCTEST_OBSSEL7_EN 0x00000080 // Observation output 7 enable
  215. // control for PC7 0: Observation
  216. // output disabled 1: Observation
  217. // output enabled Note: If enabled,
  218. // this overwrites the standard
  219. // GPIO behavior of PC7.
  220. #define CCTEST_OBSSEL7_EN_M 0x00000080
  221. #define CCTEST_OBSSEL7_EN_S 7
  222. #define CCTEST_OBSSEL7_SEL_M 0x0000007F // n - obs_sigs[n] output on
  223. // output 7: 0: rfc_obs_sig0 1:
  224. // rfc_obs_sig1 2: rfc_obs_sig2
  225. // Others: Reserved
  226. #define CCTEST_OBSSEL7_SEL_S 0
  227. //*****************************************************************************
  228. //
  229. // The following are defines for the bit fields in the CCTEST_TR0 register.
  230. //
  231. //*****************************************************************************
  232. #define CCTEST_TR0_ADCTM 0x00000002 // Set to 1 to connect the
  233. // temperature sensor to the
  234. // SOC_ADC. See also
  235. // RFCORE_XREG_ATEST register
  236. // description to enable the
  237. // temperature sensor.
  238. #define CCTEST_TR0_ADCTM_M 0x00000002
  239. #define CCTEST_TR0_ADCTM_S 1
  240. //*****************************************************************************
  241. //
  242. // The following are defines for the bit fields in the
  243. // CCTEST_USBCTRL register.
  244. //
  245. //*****************************************************************************
  246. #define CCTEST_USBCTRL_USB_STB 0x00000001 // USB PHY stand-by override bit
  247. // When this bit is cleared to 0
  248. // (default state) the USB module
  249. // cannot change the stand-by mode
  250. // of the PHY (USB pads) and the
  251. // PHY is forced out of stand-by
  252. // mode. This bit must be 1 as well
  253. // as the stand-by control from the
  254. // USB controller, before the mode
  255. // of the PHY is stand-by.
  256. #define CCTEST_USBCTRL_USB_STB_M \
  257. 0x00000001
  258. #define CCTEST_USBCTRL_USB_STB_S 0
  259. #endif // __HW_CCTEST_H__