cslr_pka.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  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_PKA_H_
  34. #define CSLR_PKA_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 STS;
  46. volatile Uint32 CTRL;
  47. volatile Uint8 RSVD0[24];
  48. volatile Uint32 NBASE;
  49. volatile Uint32 XBASE;
  50. volatile Uint32 YBASE;
  51. volatile Uint32 BBASE;
  52. volatile Uint32 NACC;
  53. volatile Uint32 NZERO;
  54. volatile Uint8 RSVD1[60];
  55. volatile Uint32 OPTIONS;
  56. volatile Uint8 RSVD2[4];
  57. volatile Uint32 REVSFT;
  58. volatile Uint8 RSVD3[7904];
  59. volatile Uint32 REVISION;
  60. volatile Uint8 RSVD4[12];
  61. volatile Uint32 SYSCONFIG;
  62. volatile Uint32 SYSSTS;
  63. volatile Uint32 IRQSTS;
  64. volatile Uint32 IRQEN;
  65. volatile Uint32 RAM[1024];
  66. } CSL_PkaRegs;
  67. /**************************************************************************
  68. * Register Macros
  69. **************************************************************************/
  70. /* Register PKA_STATUS */
  71. #define CSL_PKA_STS (0x80U)
  72. /* Register PKA_CONTROL. This register must be written to start one of the
  73. * operations. It can also be used to abort a running operation and flush the
  74. * data pipeline and LNME FIFO. */
  75. #define CSL_PKA_CTRL (0x84U)
  76. /* This register is double-buffered; it may be written with new values for the
  77. * next operation while an operation is being performed. The NBASE field
  78. * contains the base address of the N-Operand in the PKA RAM, given as 32-bit
  79. * word offset from the start of the PKA RAM area. The NYDIGITS field contains
  80. * number of 32-bit words minus 1 in the N/Y-Operands for MMM, MMMNEXT, MMM3A
  81. * and MMEXP operations. The length of N is given in 32-bit words, however the
  82. * words of N are read into the LNME unit in blocks of 64 bits. The address
  83. * should therefore be even (64 bits boundary). The NYDIGITS field contains
  84. * the number of 32-bit words minus 1 in the N/Y-Operands for MMM, MMMNEXT,
  85. * MMM3A and MMEXP operations. The length of N is given in 32-bit words;
  86. * however the words of N are read into the LNME unit in blocks of 64 bits.
  87. * The address should therefore be even (64-bit boundary). */
  88. #define CSL_PKA_NBASE (0xA0U)
  89. /* This register is double-buffered, it may be written with new values for the
  90. * next operation while an operation is being performed. The XBASE field
  91. * contains the base address of the X-Operand in the PKA RAM. The XDIGITS
  92. * field contains the number of 32-bit words minus 1 in the X-Operand for MMM,
  93. * MMMNEXT and MMM3A operations. The length of X is given in 32-bit digits;
  94. * however the digits of X are read into the LNME unit in blocks of 64 bits.
  95. * The address should therefore be at an even 64-bit boundary. */
  96. #define CSL_PKA_XBASE (0xA4U)
  97. /* This register is double-buffered, it may be written with new values for the
  98. * next operation while an operation is being performed. For MMM, MMMNEXT,
  99. * MMM3A and MMEXP operations the YBASE field contains the base address of the
  100. * Y-Operand in the PKA RAM. For MMM, MMMNEXT, MMM3A and MMEXP operations the
  101. * NPASSES field contains the number of passes minus 1 through the PE chain.
  102. * The length of Y is given in 32 bit words (in the ‘NYDIGITS’ field of the
  103. * LNME_NBASE register), however the words of Y are read into the LNME unit in
  104. * blocks of 64 bits. The address should therefore be even (64 bits boundary). */
  105. #define CSL_PKA_YBASE (0xA8U)
  106. /* This register is double-buffered, it may be written with new values for the
  107. * next operation while an operation is being performed. For MMEXP operations
  108. * the BBASE field contains the base address of the B-Operand in the PKA RAM .
  109. * The words of B are read into the LNME unit in blocks of 64 bits. The
  110. * address should therefore be even (BBASE should lie on a 64 bits boundary).
  111. * For MMEXP operations the BCNTR field contains the number of bits minus 2 in
  112. * the B-Operand (only BCNTR + 1 bits need to be stored in memory, the
  113. * remaining most significant bit is generated in hardware as a constant ‘1’).
  114. * For MMM3A operations, the BBASE field contains the base address of the
  115. * result in the PKA RAM. The result words are written into the RAM in blocks
  116. * of 64 bits. The address should therefore be even (BBASE should lie on a
  117. * 64-bit boundary). */
  118. #define CSL_PKA_BBASE (0xACU)
  119. /* This register is double-buffered; it may be written with new values for the
  120. * next operation while an operation is being performed. For MMM, MMMNEXT,
  121. * MMM3A and MMEXP operations the NACC field contains the 8 least significant
  122. * bits of N’ in equation R * R^–1 – N * N’ = 1 where LSB NACC is LSB N’.
  123. * Writing the NZERO field in the PKA_NZERO register automatically performs
  124. * this calculation in 8 clock cycles. For MMEXP operations the EXPARRAY field
  125. * contains the number of pre-calculated odd powers minus 1 in the PKA RAM.
  126. * NOTE: NACC and EXPARRAY share a single register location. If NACC is
  127. * calculated externally, it can be written together with EXPARRAY into the
  128. * LNME unit with a single write action. If NACC is to be calculated within
  129. * the LNME unit, first set EXPARRAY (writing a dummy value to NACC), then
  130. * write the LNME_NZERO register to start the internal NACC calculation */
  131. #define CSL_PKA_NACC (0xB0U)
  132. /* This register is double-buffered; it may be written with new values for the
  133. * next operation while an operation is being performed. Writing this
  134. * register’s NZERO field (with the lowest byte of the N vector) starts a
  135. * calculation of the correct NACC value, which takes 8 clock cycles (and is
  136. * indicated by the NACC_BUSY bit in PKA_NACC being set high). During this
  137. * time, no new operations can be started – writing a command (other than
  138. * ABORT) to the PKA_CONTROL register does not immediately set the MMMBusy bit
  139. * in the PKA_STATUS register. The MMMbusy bit will be set high (and the
  140. * operation started) in the clock cycle after the NACC_BUSY bit has been
  141. * reset and NACC has been setup. For correct operation, NACC must be odd –
  142. * this also means that the N vector and written NZERO value must be odd (bit
  143. * [0] must always be written with a ‘1’). */
  144. #define CSL_PKA_NZERO (0xB4U)
  145. /* This register provides the Host with a means to determine the hardware
  146. * configuration implemented in this pka4keip29t – focused on options that
  147. * have an effect on software interacting with the module. */
  148. #define CSL_PKA_OPTIONS (0xF4U)
  149. /* Revision (internal to PKA4KEIP29TP) */
  150. #define CSL_PKA_REVSFT (0xFCU)
  151. /* The PKA revision is a read only register. */
  152. #define CSL_PKA_REVISION (0x1FE0U)
  153. /* Sysconfig registers */
  154. #define CSL_PKA_SYSCONFIG (0x1FF0U)
  155. /* Reset status */
  156. #define CSL_PKA_SYSSTS (0x1FF4U)
  157. /* The PKA_IRQSTATUS is a read only register that returns the interrupt status
  158. * of the PKA pka4keip29t. */
  159. #define CSL_PKA_IRQSTS (0x1FF8U)
  160. /* The PKA_IRQENABLE is a read write register that enables the reset of the
  161. * PKA pka4keip29t */
  162. #define CSL_PKA_IRQEN (0x1FFCU)
  163. /* Register PKA_RAM */
  164. #define CSL_PKA_RAM(i) (0x2000U + ((i) * (0x4U)))
  165. /**************************************************************************
  166. * Field Definition Macros
  167. **************************************************************************/
  168. /* STS */
  169. #define CSL_PKA_STS_OVERFLOW_MASK (0x00000001U)
  170. #define CSL_PKA_STS_OVERFLOW_SHIFT (0U)
  171. #define CSL_PKA_STS_OVERFLOW_RESETVAL (0x00000000U)
  172. #define CSL_PKA_STS_OVERFLOW_MAX (0x00000001U)
  173. #define CSL_PKA_STS_MMMBUSY_MASK (0x00000002U)
  174. #define CSL_PKA_STS_MMMBUSY_SHIFT (1U)
  175. #define CSL_PKA_STS_MMMBUSY_RESETVAL (0x00000000U)
  176. #define CSL_PKA_STS_MMMBUSY_MAX (0x00000001U)
  177. #define CSL_PKA_STS_CMDERROR_MASK (0x00000004U)
  178. #define CSL_PKA_STS_CMDERROR_SHIFT (2U)
  179. #define CSL_PKA_STS_CMDERROR_RESETVAL (0x00000000U)
  180. #define CSL_PKA_STS_CMDERROR_MAX (0x00000001U)
  181. #define CSL_PKA_STS_RESETVAL (0x00000000U)
  182. /* CTRL */
  183. #define CSL_PKA_CTRL_MMMOP_MASK (0x00000003U)
  184. #define CSL_PKA_CTRL_MMMOP_SHIFT (0U)
  185. #define CSL_PKA_CTRL_MMMOP_RESETVAL (0x00000000U)
  186. #define CSL_PKA_CTRL_MMMOP_NOOP (0x00000000U)
  187. #define CSL_PKA_CTRL_MMMOP_MMM (0x00000001U)
  188. #define CSL_PKA_CTRL_MMMOP_MMMEXT (0x00000002U)
  189. #define CSL_PKA_CTRL_MMMOP_MMM3A (0x00000003U)
  190. #define CSL_PKA_CTRL_MMEXP_MASK (0x00000004U)
  191. #define CSL_PKA_CTRL_MMEXP_SHIFT (2U)
  192. #define CSL_PKA_CTRL_MMEXP_RESETVAL (0x00000000U)
  193. #define CSL_PKA_CTRL_MMEXP_NOOP (0x00000000U)
  194. #define CSL_PKA_CTRL_MMEXP_MMEXP (0x00000001U)
  195. #define CSL_PKA_CTRL_ABORT_MASK (0x00000020U)
  196. #define CSL_PKA_CTRL_ABORT_SHIFT (5U)
  197. #define CSL_PKA_CTRL_ABORT_RESETVAL (0x00000000U)
  198. #define CSL_PKA_CTRL_ABORT_NOOP (0x00000000U)
  199. #define CSL_PKA_CTRL_ABORT_ABORT (0x00000001U)
  200. #define CSL_PKA_CTRL_RESETVAL (0x00000000U)
  201. /* NBASE */
  202. #define CSL_PKA_NBASE_NBASE_MASK (0x000003FFU)
  203. #define CSL_PKA_NBASE_NBASE_SHIFT (0U)
  204. #define CSL_PKA_NBASE_NBASE_RESETVAL (0x00000000U)
  205. #define CSL_PKA_NBASE_NBASE_MAX (0x000003ffU)
  206. #define CSL_PKA_NBASE_NYDIGITS_MASK (0x00FF0000U)
  207. #define CSL_PKA_NBASE_NYDIGITS_SHIFT (16U)
  208. #define CSL_PKA_NBASE_NYDIGITS_RESETVAL (0x00000000U)
  209. #define CSL_PKA_NBASE_NYDIGITS_MAX (0x000000ffU)
  210. #define CSL_PKA_NBASE_RESETVAL (0x00000000U)
  211. /* XBASE */
  212. #define CSL_PKA_XBASE_XBASE_MASK (0x000003FFU)
  213. #define CSL_PKA_XBASE_XBASE_SHIFT (0U)
  214. #define CSL_PKA_XBASE_XBASE_RESETVAL (0x00000000U)
  215. #define CSL_PKA_XBASE_XBASE_MAX (0x000003ffU)
  216. #define CSL_PKA_XBASE_XDIGITS_MASK (0x00FF0000U)
  217. #define CSL_PKA_XBASE_XDIGITS_SHIFT (16U)
  218. #define CSL_PKA_XBASE_XDIGITS_RESETVAL (0x00000000U)
  219. #define CSL_PKA_XBASE_XDIGITS_MAX (0x000000ffU)
  220. #define CSL_PKA_XBASE_RESETVAL (0x00000000U)
  221. /* YBASE */
  222. #define CSL_PKA_YBASE_YBASE_MASK (0x000003FFU)
  223. #define CSL_PKA_YBASE_YBASE_SHIFT (0U)
  224. #define CSL_PKA_YBASE_YBASE_RESETVAL (0x00000000U)
  225. #define CSL_PKA_YBASE_YBASE_MAX (0x000003ffU)
  226. #define CSL_PKA_YBASE_NPASSES_MASK (0x00FF0000U)
  227. #define CSL_PKA_YBASE_NPASSES_SHIFT (16U)
  228. #define CSL_PKA_YBASE_NPASSES_RESETVAL (0x00000000U)
  229. #define CSL_PKA_YBASE_NPASSES_MAX (0x000000ffU)
  230. #define CSL_PKA_YBASE_RESETVAL (0x00000000U)
  231. /* BBASE */
  232. #define CSL_PKA_BBASE_BBASE_MASK (0x000007FFU)
  233. #define CSL_PKA_BBASE_BBASE_SHIFT (0U)
  234. #define CSL_PKA_BBASE_BBASE_RESETVAL (0x00000000U)
  235. #define CSL_PKA_BBASE_BBASE_MAX (0x000007ffU)
  236. #define CSL_PKA_BBASE_BCNTR_MASK (0x1FFF0000U)
  237. #define CSL_PKA_BBASE_BCNTR_SHIFT (16U)
  238. #define CSL_PKA_BBASE_BCNTR_RESETVAL (0x00000000U)
  239. #define CSL_PKA_BBASE_BCNTR_MAX (0x00001fffU)
  240. #define CSL_PKA_BBASE_RESETVAL (0x00000000U)
  241. /* NACC */
  242. #define CSL_PKA_NACC_NACC_MASK (0x000000FFU)
  243. #define CSL_PKA_NACC_NACC_SHIFT (0U)
  244. #define CSL_PKA_NACC_NACC_RESETVAL (0x00000000U)
  245. #define CSL_PKA_NACC_NACC_MAX (0x000000ffU)
  246. #define CSL_PKA_NACC_NACCBUSY_MASK (0x00000100U)
  247. #define CSL_PKA_NACC_NACCBUSY_SHIFT (8U)
  248. #define CSL_PKA_NACC_NACCBUSY_RESETVAL (0x00000000U)
  249. #define CSL_PKA_NACC_NACCBUSY_MAX (0x00000001U)
  250. #define CSL_PKA_NACC_EXPARRAY_MASK (0x001F0000U)
  251. #define CSL_PKA_NACC_EXPARRAY_SHIFT (16U)
  252. #define CSL_PKA_NACC_EXPARRAY_RESETVAL (0x00000000U)
  253. #define CSL_PKA_NACC_EXPARRAY_MAX (0x0000001fU)
  254. #define CSL_PKA_NACC_RESETVAL (0x00000000U)
  255. /* NZERO */
  256. #define CSL_PKA_NZERO_NZERO_MASK (0x000000FFU)
  257. #define CSL_PKA_NZERO_NZERO_SHIFT (0U)
  258. #define CSL_PKA_NZERO_NZERO_RESETVAL (0x00000000U)
  259. #define CSL_PKA_NZERO_NZERO_MAX (0x000000ffU)
  260. #define CSL_PKA_NZERO_RESETVAL (0x00000000U)
  261. /* OPTIONS */
  262. #define CSL_PKA_OPTIONS_CONF_MASK (0x0000001CU)
  263. #define CSL_PKA_OPTIONS_CONF_SHIFT (2U)
  264. #define CSL_PKA_OPTIONS_CONF_RESETVAL (0x00000001U)
  265. #define CSL_PKA_OPTIONS_CONF_MAX (0x00000007U)
  266. #define CSL_PKA_OPTIONS_MMM3A_MASK (0x00001000U)
  267. #define CSL_PKA_OPTIONS_MMM3A_SHIFT (12U)
  268. #define CSL_PKA_OPTIONS_MMM3A_RESETVAL (0x00000001U)
  269. #define CSL_PKA_OPTIONS_MMM3A_MAX (0x00000001U)
  270. #define CSL_PKA_OPTIONS_PENUM_MASK (0x003F0000U)
  271. #define CSL_PKA_OPTIONS_PENUM_SHIFT (16U)
  272. #define CSL_PKA_OPTIONS_PENUM_RESETVAL (0x00000006U)
  273. #define CSL_PKA_OPTIONS_PENUM_MAX (0x0000003fU)
  274. #define CSL_PKA_OPTIONS_FIFO_MASK (0xFF000000U)
  275. #define CSL_PKA_OPTIONS_FIFO_SHIFT (24U)
  276. #define CSL_PKA_OPTIONS_FIFO_RESETVAL (0x00000086U)
  277. #define CSL_PKA_OPTIONS_FIFO_MAX (0x000000ffU)
  278. #define CSL_PKA_OPTIONS_RESETVAL (0x86061004U)
  279. /* REVSFT */
  280. #define CSL_PKA_REVSFT_EIPNUM_MASK (0x000000FFU)
  281. #define CSL_PKA_REVSFT_EIPNUM_SHIFT (0U)
  282. #define CSL_PKA_REVSFT_EIPNUM_RESETVAL (0x0000001dU)
  283. #define CSL_PKA_REVSFT_EIPNUM_MAX (0x000000ffU)
  284. #define CSL_PKA_REVSFT_EIPNUM1_MASK (0x0000FF00U)
  285. #define CSL_PKA_REVSFT_EIPNUM1_SHIFT (8U)
  286. #define CSL_PKA_REVSFT_EIPNUM1_RESETVAL (0x000000e2U)
  287. #define CSL_PKA_REVSFT_EIPNUM1_MAX (0x000000ffU)
  288. #define CSL_PKA_REVSFT_PATCH_MASK (0x000F0000U)
  289. #define CSL_PKA_REVSFT_PATCH_SHIFT (16U)
  290. #define CSL_PKA_REVSFT_PATCH_RESETVAL (0x00000000U)
  291. #define CSL_PKA_REVSFT_PATCH_MAX (0x0000000fU)
  292. #define CSL_PKA_REVSFT_REVMIN_MASK (0x00F00000U)
  293. #define CSL_PKA_REVSFT_REVMIN_SHIFT (20U)
  294. #define CSL_PKA_REVSFT_REVMIN_RESETVAL (0x00000000U)
  295. #define CSL_PKA_REVSFT_REVMIN_MAX (0x0000000fU)
  296. #define CSL_PKA_REVSFT_REVMAX_MASK (0x0F000000U)
  297. #define CSL_PKA_REVSFT_REVMAX_SHIFT (24U)
  298. #define CSL_PKA_REVSFT_REVMAX_RESETVAL (0x00000002U)
  299. #define CSL_PKA_REVSFT_REVMAX_MAX (0x0000000fU)
  300. #define CSL_PKA_REVSFT_RESETVAL (0x0200e21dU)
  301. /* REVISION */
  302. #define CSL_PKA_REVISION_Y_MINOR_MASK (0x0000003FU)
  303. #define CSL_PKA_REVISION_Y_MINOR_SHIFT (0U)
  304. #define CSL_PKA_REVISION_Y_MINOR_RESETVAL (0x00000000U)
  305. #define CSL_PKA_REVISION_Y_MINOR_MAX (0x0000003fU)
  306. #define CSL_PKA_REVISION_CUSTOM_MASK (0x000000C0U)
  307. #define CSL_PKA_REVISION_CUSTOM_SHIFT (6U)
  308. #define CSL_PKA_REVISION_CUSTOM_RESETVAL (0x00000000U)
  309. #define CSL_PKA_REVISION_CUSTOM_STANDARD (0x00000000U)
  310. #define CSL_PKA_REVISION_X_MAJOR_MASK (0x00000700U)
  311. #define CSL_PKA_REVISION_X_MAJOR_SHIFT (8U)
  312. #define CSL_PKA_REVISION_X_MAJOR_RESETVAL (0x00000000U)
  313. #define CSL_PKA_REVISION_X_MAJOR_MAX (0x00000007U)
  314. #define CSL_PKA_REVISION_R_RTL_MASK (0x0000F800U)
  315. #define CSL_PKA_REVISION_R_RTL_SHIFT (11U)
  316. #define CSL_PKA_REVISION_R_RTL_RESETVAL (0x00000000U)
  317. #define CSL_PKA_REVISION_R_RTL_MAX (0x0000001fU)
  318. #define CSL_PKA_REVISION_FUNC_MASK (0x0FFF0000U)
  319. #define CSL_PKA_REVISION_FUNC_SHIFT (16U)
  320. #define CSL_PKA_REVISION_FUNC_RESETVAL (0x00000000U)
  321. #define CSL_PKA_REVISION_FUNC_MAX (0x00000fffU)
  322. #define CSL_PKA_REVISION_SCHEME_MASK (0xC0000000U)
  323. #define CSL_PKA_REVISION_SCHEME_SHIFT (30U)
  324. #define CSL_PKA_REVISION_SCHEME_RESETVAL (0x00000000U)
  325. #define CSL_PKA_REVISION_SCHEME_H08 (0x00000001U)
  326. #define CSL_PKA_REVISION_SCHEME_LEGACY (0x00000000U)
  327. #define CSL_PKA_REVISION_RESETVAL (0x00000000U)
  328. /* SYSCONFIG */
  329. #define CSL_PKA_SYSCONFIG_SOFTRESET_MASK (0x00000002U)
  330. #define CSL_PKA_SYSCONFIG_SOFTRESET_SHIFT (1U)
  331. #define CSL_PKA_SYSCONFIG_SOFTRESET_RESETVAL (0x00000000U)
  332. #define CSL_PKA_SYSCONFIG_SOFTRESET_NOOP (0x00000000U)
  333. #define CSL_PKA_SYSCONFIG_SOFTRESET_SOFRESET (0x00000001U)
  334. #define CSL_PKA_SYSCONFIG_AUTOIDLE_MASK (0x00000001U)
  335. #define CSL_PKA_SYSCONFIG_AUTOIDLE_SHIFT (0U)
  336. #define CSL_PKA_SYSCONFIG_AUTOIDLE_RESETVAL (0x00000001U)
  337. #define CSL_PKA_SYSCONFIG_AUTOIDLE_CLOCKS_ON (0x00000000U)
  338. #define CSL_PKA_SYSCONFIG_AUTOIDLE_CLOCKS_OFF (0x00000001U)
  339. #define CSL_PKA_SYSCONFIG_SIDLE_MASK (0x00000030U)
  340. #define CSL_PKA_SYSCONFIG_SIDLE_SHIFT (4U)
  341. #define CSL_PKA_SYSCONFIG_SIDLE_RESETVAL (0x00000000U)
  342. #define CSL_PKA_SYSCONFIG_SIDLE_FORCEIDLE (0x00000000U)
  343. #define CSL_PKA_SYSCONFIG_SIDLE_NOIDLE (0x00000001U)
  344. #define CSL_PKA_SYSCONFIG_SIDLE_RESERVED1 (0x00000002U)
  345. #define CSL_PKA_SYSCONFIG_SIDLE_RESERVED (0x00000003U)
  346. #define CSL_PKA_SYSCONFIG_RESETVAL (0x00000001U)
  347. /* SYSSTS */
  348. #define CSL_PKA_SYSSTS_RESETDONE_MASK (0x00000001U)
  349. #define CSL_PKA_SYSSTS_RESETDONE_SHIFT (0U)
  350. #define CSL_PKA_SYSSTS_RESETDONE_RESETVAL (0x00000001U)
  351. #define CSL_PKA_SYSSTS_RESETDONE_MAX (0x00000001U)
  352. #define CSL_PKA_SYSSTS_RESETVAL (0x00000001U)
  353. /* IRQSTS */
  354. #define CSL_PKA_IRQSTS_PKAIRQSTAT_MASK (0x00000001U)
  355. #define CSL_PKA_IRQSTS_PKAIRQSTAT_SHIFT (0U)
  356. #define CSL_PKA_IRQSTS_PKAIRQSTAT_RESETVAL (0x00000001U)
  357. #define CSL_PKA_IRQSTS_PKAIRQSTAT_MAX (0x00000001U)
  358. #define CSL_PKA_IRQSTS_RESETVAL (0x00000001U)
  359. /* IRQEN */
  360. #define CSL_PKA_IRQEN_PKAIRQEN_MASK (0x00000001U)
  361. #define CSL_PKA_IRQEN_PKAIRQEN_SHIFT (0U)
  362. #define CSL_PKA_IRQEN_PKAIRQEN_RESETVAL (0x00000000U)
  363. #define CSL_PKA_IRQEN_PKAIRQEN_IRQENABLE (0x00000001U)
  364. #define CSL_PKA_IRQEN_PKAIRQEN_NOIRQENABLE (0x00000000U)
  365. #define CSL_PKA_IRQEN_RESETVAL (0x00000000U)
  366. /* RAM */
  367. #define CSL_PKA_RAM_DATARAM_MASK (0xFFFFFFFFU)
  368. #define CSL_PKA_RAM_DATARAM_SHIFT (0U)
  369. #define CSL_PKA_RAM_DATARAM_RESETVAL (0x00000000U)
  370. #define CSL_PKA_RAM_DATARAM_MAX (0xffffffffU)
  371. #define CSL_PKA_RAM_RESETVAL (0x00000000U)
  372. #ifdef __cplusplus
  373. }
  374. #endif
  375. #endif