hw_apps_config.h 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. //*****************************************************************************
  2. //
  3. // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
  4. //
  5. //
  6. // Redistribution and use in source and binary forms, with or without
  7. // modification, are permitted provided that the following conditions
  8. // are met:
  9. //
  10. // Redistributions of source code must retain the above copyright
  11. // notice, this list of conditions and the following disclaimer.
  12. //
  13. // Redistributions in binary form must reproduce the above copyright
  14. // notice, this list of conditions and the following disclaimer in the
  15. // documentation and/or other materials provided with the
  16. // distribution.
  17. //
  18. // Neither the name of Texas Instruments Incorporated nor the names of
  19. // its contributors may be used to endorse or promote products derived
  20. // from this software without specific prior written permission.
  21. //
  22. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  25. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  26. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  27. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  28. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  29. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  30. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  32. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. //
  34. //*****************************************************************************
  35. #ifndef __HW_APPS_CONFIG_H__
  36. #define __HW_APPS_CONFIG_H__
  37. //*****************************************************************************
  38. //
  39. // The following are defines for the APPS_CONFIG register offsets.
  40. //
  41. //*****************************************************************************
  42. #define APPS_CONFIG_O_PATCH_TRAP_ADDR_REG \
  43. 0x00000000 // Patch trap address Register
  44. // array
  45. #define APPS_CONFIG_O_PATCH_TRAP_EN_REG \
  46. 0x00000078
  47. #define APPS_CONFIG_O_FAULT_STATUS_REG \
  48. 0x0000007C
  49. #define APPS_CONFIG_O_MEMSS_WR_ERR_CLR_REG \
  50. 0x00000080
  51. #define APPS_CONFIG_O_MEMSS_WR_ERR_ADDR_REG \
  52. 0x00000084
  53. #define APPS_CONFIG_O_DMA_DONE_INT_MASK \
  54. 0x0000008C
  55. #define APPS_CONFIG_O_DMA_DONE_INT_MASK_SET \
  56. 0x00000090
  57. #define APPS_CONFIG_O_DMA_DONE_INT_MASK_CLR \
  58. 0x00000094
  59. #define APPS_CONFIG_O_DMA_DONE_INT_STS_CLR \
  60. 0x00000098
  61. #define APPS_CONFIG_O_DMA_DONE_INT_ACK \
  62. 0x0000009C
  63. #define APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED \
  64. 0x000000A0
  65. #define APPS_CONFIG_O_DMA_DONE_INT_STS_RAW \
  66. 0x000000A4
  67. #define APPS_CONFIG_O_FAULT_STATUS_CLR_REG \
  68. 0x000000A8
  69. #define APPS_CONFIG_O_RESERVD_REG_0 \
  70. 0x000000AC
  71. #define APPS_CONFIG_O_GPT_TRIG_SEL \
  72. 0x000000B0
  73. #define APPS_CONFIG_O_TOP_DIE_SPARE_DIN_REG \
  74. 0x000000B4
  75. #define APPS_CONFIG_O_TOP_DIE_SPARE_DOUT_REG \
  76. 0x000000B8
  77. //******************************************************************************
  78. //
  79. // The following are defines for the bit fields in the
  80. // APPS_CONFIG_O_PATCH_TRAP_ADDR_REG register.
  81. //
  82. //******************************************************************************
  83. #define APPS_CONFIG_PATCH_TRAP_ADDR_REG_PATCH_TRAP_ADDR_M \
  84. 0xFFFFFFFF // When PATCH_TRAP_EN[n] is set bus
  85. // fault is generated for the
  86. // address
  87. // PATCH_TRAP_ADDR_REG[n][31:0] from
  88. // Idcode bus. The exception routine
  89. // should take care to jump to the
  90. // location where the patch
  91. // correspond to this address is
  92. // kept.
  93. #define APPS_CONFIG_PATCH_TRAP_ADDR_REG_PATCH_TRAP_ADDR_S 0
  94. //******************************************************************************
  95. //
  96. // The following are defines for the bit fields in the
  97. // APPS_CONFIG_O_PATCH_TRAP_EN_REG register.
  98. //
  99. //******************************************************************************
  100. #define APPS_CONFIG_PATCH_TRAP_EN_REG_PATCH_TRAP_EN_M \
  101. 0x3FFFFFFF // When PATCH_TRAP_EN[n] is set bus
  102. // fault is generated for the
  103. // address PATCH_TRAP_ADD[n][31:0]
  104. // from Idcode bus. The exception
  105. // routine should take care to jump
  106. // to the location where the patch
  107. // correspond to this address is
  108. // kept.
  109. #define APPS_CONFIG_PATCH_TRAP_EN_REG_PATCH_TRAP_EN_S 0
  110. //******************************************************************************
  111. //
  112. // The following are defines for the bit fields in the
  113. // APPS_CONFIG_O_FAULT_STATUS_REG register.
  114. //
  115. //******************************************************************************
  116. #define APPS_CONFIG_FAULT_STATUS_REG_PATCH_ERR_INDEX_M \
  117. 0x0000003E // This field shows because of
  118. // which patch trap address the
  119. // bus_fault is generated. If the
  120. // PATCH_ERR bit is set, then it
  121. // means the bus fault is generated
  122. // because of
  123. // PATCH_TRAP_ADDR_REG[2^PATCH_ERR_INDEX]
  124. #define APPS_CONFIG_FAULT_STATUS_REG_PATCH_ERR_INDEX_S 1
  125. #define APPS_CONFIG_FAULT_STATUS_REG_PATCH_ERR \
  126. 0x00000001 // This bit is set when there is a
  127. // bus fault because of patched
  128. // address access to the Apps boot
  129. // rom. Write 0 to clear this
  130. // register.
  131. //******************************************************************************
  132. //
  133. // The following are defines for the bit fields in the
  134. // APPS_CONFIG_O_MEMSS_WR_ERR_CLR_REG register.
  135. //
  136. //******************************************************************************
  137. #define APPS_CONFIG_MEMSS_WR_ERR_CLR_REG_MEMSS_WR_ERR_CLR \
  138. 0x00000001 // This bit is set when there is a
  139. // an error in memss write access.
  140. // And the address causing this
  141. // error is captured in
  142. // MEMSS_ERR_ADDR_REG. To capture
  143. // the next error address one have
  144. // to clear this bit.
  145. //******************************************************************************
  146. //
  147. // The following are defines for the bit fields in the
  148. // APPS_CONFIG_O_MEMSS_WR_ERR_ADDR_REG register.
  149. //
  150. //******************************************************************************
  151. //******************************************************************************
  152. //
  153. // The following are defines for the bit fields in the
  154. // APPS_CONFIG_O_DMA_DONE_INT_MASK register.
  155. //
  156. //******************************************************************************
  157. #define APPS_CONFIG_DMA_DONE_INT_MASK_ADC_WR_DMA_DONE_INT_MASK_M \
  158. 0x0000F000 // 1= disable corresponding
  159. // interrupt;0 = interrupt enabled
  160. // bit 14: ADC channel 7 interrupt
  161. // enable/disable bit 13: ADC
  162. // channel 5 interrupt
  163. // enable/disable bit 12: ADC
  164. // channel 3 interrupt
  165. // enable/disable bit 11: ADC
  166. // channel 1 interrupt
  167. // enable/disable
  168. #define APPS_CONFIG_DMA_DONE_INT_MASK_ADC_WR_DMA_DONE_INT_MASK_S 12
  169. #define APPS_CONFIG_DMA_DONE_INT_MASK_MCASP_WR_DMA_DONE_INT_MASK \
  170. 0x00000800 // 1= disable corresponding
  171. // interrupt;0 = interrupt enabled
  172. #define APPS_CONFIG_DMA_DONE_INT_MASK_MCASP_RD_DMA_DONE_INT_MASK \
  173. 0x00000400 // 1= disable corresponding
  174. // interrupt;0 = interrupt enabled
  175. #define APPS_CONFIG_DMA_DONE_INT_MASK_CAM_FIFO_EMPTY_DMA_DONE_INT_MASK \
  176. 0x00000200 // 1= disable corresponding
  177. // interrupt;0 = interrupt enabled
  178. #define APPS_CONFIG_DMA_DONE_INT_MASK_CAM_THRESHHOLD_DMA_DONE_INT_MASK \
  179. 0x00000100 // 1= disable corresponding
  180. // interrupt;0 = interrupt enabled
  181. #define APPS_CONFIG_DMA_DONE_INT_MASK_SHSPI_WR_DMA_DONE_INT_MASK \
  182. 0x00000080 // 1= disable corresponding
  183. // interrupt;0 = interrupt enabled
  184. #define APPS_CONFIG_DMA_DONE_INT_MASK_SHSPI_RD_DMA_DONE_INT_MASK \
  185. 0x00000040 // 1= disable corresponding
  186. // interrupt;0 = interrupt enabled
  187. #define APPS_CONFIG_DMA_DONE_INT_MASK_HOSTSPI_WR_DMA_DONE_INT_MASK \
  188. 0x00000020 // 1= disable corresponding
  189. // interrupt;0 = interrupt enabled
  190. #define APPS_CONFIG_DMA_DONE_INT_MASK_HOSTSPI_RD_DMA_DONE_INT_MASK \
  191. 0x00000010 // 1= disable corresponding
  192. // interrupt;0 = interrupt enabled
  193. #define APPS_CONFIG_DMA_DONE_INT_MASK_APPS_SPI_WR_DMA_DONE_INT_MASK \
  194. 0x00000008 // 1= disable corresponding
  195. // interrupt;0 = interrupt enabled
  196. #define APPS_CONFIG_DMA_DONE_INT_MASK_APPS_SPI_RD_DMA_DONE_INT_MASK \
  197. 0x00000004 // 1= disable corresponding
  198. // interrupt;0 = interrupt enabled
  199. #define APPS_CONFIG_DMA_DONE_INT_MASK_SDIOM_WR_DMA_DONE_INT_MASK \
  200. 0x00000002 // 1= disable corresponding
  201. // interrupt;0 = interrupt enabled
  202. #define APPS_CONFIG_DMA_DONE_INT_MASK_SDIOM_RD_DMA_DONE_INT_MASK \
  203. 0x00000001 // 1= disable corresponding
  204. // interrupt;0 = interrupt enabled
  205. //******************************************************************************
  206. //
  207. // The following are defines for the bit fields in the
  208. // APPS_CONFIG_O_DMA_DONE_INT_MASK_SET register.
  209. //
  210. //******************************************************************************
  211. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_ADC_WR_DMA_DONE_INT_MASK_SET_M \
  212. 0x0000F000 // write 1 to set mask of the
  213. // corresponding DMA DONE IRQ;0 = no
  214. // effect bit 14: ADC channel 7 DMA
  215. // Done IRQ bit 13: ADC channel 5
  216. // DMA Done IRQ bit 12: ADC channel
  217. // 3 DMA Done IRQ bit 11: ADC
  218. // channel 1 DMA Done IRQ
  219. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_ADC_WR_DMA_DONE_INT_MASK_SET_S 12
  220. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_MCASP_WR_DMA_DONE_INT_MASK_SET \
  221. 0x00000800 // write 1 to set mask of the
  222. // corresponding DMA DONE IRQ;0 = no
  223. // effect
  224. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_MCASP_RD_DMA_DONE_INT_MASK_SET \
  225. 0x00000400 // write 1 to set mask of the
  226. // corresponding DMA DONE IRQ;0 = no
  227. // effect
  228. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_CAM_FIFO_EMPTY_DMA_DONE_INT_MASK_SET \
  229. 0x00000200 // write 1 to set mask of the
  230. // corresponding DMA DONE IRQ;0 = no
  231. // effect
  232. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_CAM_THRESHHOLD_DMA_DONE_INT_MASK_SET \
  233. 0x00000100 // write 1 to set mask of the
  234. // corresponding DMA DONE IRQ;0 = no
  235. // effect
  236. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_SHSPI_WR_DMA_DONE_INT_MASK_SET \
  237. 0x00000080 // write 1 to set mask of the
  238. // corresponding DMA DONE IRQ;0 = no
  239. // effect
  240. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_SHSPI_RD_DMA_DONE_INT_MASK_SET \
  241. 0x00000040 // write 1 to set mask of the
  242. // corresponding DMA DONE IRQ;0 = no
  243. // effect
  244. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_HOSTSPI_WR_DMA_DONE_INT_MASK_SET \
  245. 0x00000020 // write 1 to set mask of the
  246. // corresponding DMA DONE IRQ;0 = no
  247. // effect
  248. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_HOSTSPI_RD_DMA_DONE_INT_MASK_SET \
  249. 0x00000010 // write 1 to set mask of the
  250. // corresponding DMA DONE IRQ;0 = no
  251. // effect
  252. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_APPS_SPI_WR_DMA_DONE_INT_MASK_SET \
  253. 0x00000008 // write 1 to set mask of the
  254. // corresponding DMA DONE IRQ;0 = no
  255. // effect
  256. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_APPS_SPI_RD_DMA_DONE_INT_MASK_SET \
  257. 0x00000004 // write 1 to set mask of the
  258. // corresponding DMA DONE IRQ;0 = no
  259. // effect
  260. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_SDIOM_WR_DMA_DONE_INT_MASK_SET \
  261. 0x00000002 // write 1 to set mask of the
  262. // corresponding DMA DONE IRQ;0 = no
  263. // effect
  264. #define APPS_CONFIG_DMA_DONE_INT_MASK_SET_SDIOM_RD_DMA_DONE_INT_MASK_SET \
  265. 0x00000001 // write 1 to set mask of the
  266. // corresponding DMA DONE IRQ;0 = no
  267. // effect
  268. //******************************************************************************
  269. //
  270. // The following are defines for the bit fields in the
  271. // APPS_CONFIG_O_DMA_DONE_INT_MASK_CLR register.
  272. //
  273. //******************************************************************************
  274. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_ADC_WR_DMA_DONE_INT_MASK_CLR_M \
  275. 0x0000F000 // write 1 to clear mask of the
  276. // corresponding DMA DONE IRQ;0 = no
  277. // effect bit 14: ADC channel 7 DMA
  278. // Done IRQ mask bit 13: ADC channel
  279. // 5 DMA Done IRQ mask bit 12: ADC
  280. // channel 3 DMA Done IRQ mask bit
  281. // 11: ADC channel 1 DMA Done IRQ
  282. // mask
  283. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_ADC_WR_DMA_DONE_INT_MASK_CLR_S 12
  284. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_MACASP_WR_DMA_DONE_INT_MASK_CLR \
  285. 0x00000800 // write 1 to clear mask of the
  286. // corresponding DMA DONE IRQ;0 = no
  287. // effect
  288. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_MCASP_RD_DMA_DONE_INT_MASK_CLR \
  289. 0x00000400 // write 1 to clear mask of the
  290. // corresponding DMA DONE IRQ;0 = no
  291. // effect
  292. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_CAM_FIFO_EMPTY_DMA_DONE_INT_MASK_CLR \
  293. 0x00000200 // write 1 to clear mask of the
  294. // corresponding DMA DONE IRQ;0 = no
  295. // effect
  296. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_CAM_THRESHHOLD_DMA_DONE_INT_MASK_CLR \
  297. 0x00000100 // write 1 to clear mask of the
  298. // corresponding DMA DONE IRQ;0 = no
  299. // effect
  300. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_SHSPI_WR_DMA_DONE_INT_MASK_CLR \
  301. 0x00000080 // write 1 to clear mask of the
  302. // corresponding DMA DONE IRQ;0 = no
  303. // effect
  304. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_SHSPI_RD_DMA_DONE_INT_MASK_CLR \
  305. 0x00000040 // write 1 to clear mask of the
  306. // corresponding DMA DONE IRQ;0 = no
  307. // effect
  308. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_HOSTSPI_WR_DMA_DONE_INT_MASK_CLR \
  309. 0x00000020 // write 1 to clear mask of the
  310. // corresponding DMA DONE IRQ;0 = no
  311. // effect
  312. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_HOSTSPI_RD_DMA_DONE_INT_MASK_CLR \
  313. 0x00000010 // write 1 to clear mask of the
  314. // corresponding DMA DONE IRQ;0 = no
  315. // effect
  316. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_APPS_SPI_WR_DMA_DONE_INT_MASK_CLR \
  317. 0x00000008 // write 1 to clear mask of the
  318. // corresponding DMA DONE IRQ;0 = no
  319. // effect
  320. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_APPS_SPI_RD_DMA_DONE_INT_MASK_CLR \
  321. 0x00000004 // write 1 to clear mask of the
  322. // corresponding DMA DONE IRQ;0 = no
  323. // effect
  324. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_SDIOM_WR_DMA_DONE_INT_MASK_CLR \
  325. 0x00000002 // write 1 to clear mask of the
  326. // corresponding DMA DONE IRQ;0 = no
  327. // effect
  328. #define APPS_CONFIG_DMA_DONE_INT_MASK_CLR_SDIOM_RD_DMA_DONE_INT_MASK_CLR \
  329. 0x00000001 // write 1 to clear mask of the
  330. // corresponding DMA DONE IRQ;0 = no
  331. // effect
  332. //******************************************************************************
  333. //
  334. // The following are defines for the bit fields in the
  335. // APPS_CONFIG_O_DMA_DONE_INT_STS_CLR register.
  336. //
  337. //******************************************************************************
  338. #define APPS_CONFIG_DMA_DONE_INT_STS_CLR_DMA_INT_STS_CLR_M \
  339. 0xFFFFFFFF // write 1 or 0 to clear all
  340. // DMA_DONE interrupt;
  341. #define APPS_CONFIG_DMA_DONE_INT_STS_CLR_DMA_INT_STS_CLR_S 0
  342. //******************************************************************************
  343. //
  344. // The following are defines for the bit fields in the
  345. // APPS_CONFIG_O_DMA_DONE_INT_ACK register.
  346. //
  347. //******************************************************************************
  348. #define APPS_CONFIG_DMA_DONE_INT_ACK_ADC_WR_DMA_DONE_INT_ACK_M \
  349. 0x0000F000 // write 1 to clear corresponding
  350. // interrupt; 0 = no effect; bit 14:
  351. // ADC channel 7 DMA Done IRQ bit
  352. // 13: ADC channel 5 DMA Done IRQ
  353. // bit 12: ADC channel 3 DMA Done
  354. // IRQ bit 11: ADC channel 1 DMA
  355. // Done IRQ
  356. #define APPS_CONFIG_DMA_DONE_INT_ACK_ADC_WR_DMA_DONE_INT_ACK_S 12
  357. #define APPS_CONFIG_DMA_DONE_INT_ACK_MCASP_WR_DMA_DONE_INT_ACK \
  358. 0x00000800 // write 1 to clear corresponding
  359. // interrupt; 0 = no effect;
  360. #define APPS_CONFIG_DMA_DONE_INT_ACK_MCASP_RD_DMA_DONE_INT_ACK \
  361. 0x00000400 // write 1 to clear corresponding
  362. // interrupt; 0 = no effect;
  363. #define APPS_CONFIG_DMA_DONE_INT_ACK_CAM_FIFO_EMPTY_DMA_DONE_INT_ACK \
  364. 0x00000200 // write 1 to clear corresponding
  365. // interrupt; 0 = no effect;
  366. #define APPS_CONFIG_DMA_DONE_INT_ACK_CAM_THRESHHOLD_DMA_DONE_INT_ACK \
  367. 0x00000100 // write 1 to clear corresponding
  368. // interrupt; 0 = no effect;
  369. #define APPS_CONFIG_DMA_DONE_INT_ACK_SHSPI_WR_DMA_DONE_INT_ACK \
  370. 0x00000080 // write 1 to clear corresponding
  371. // interrupt; 0 = no effect;
  372. #define APPS_CONFIG_DMA_DONE_INT_ACK_SHSPI_RD_DMA_DONE_INT_ACK \
  373. 0x00000040 // write 1 to clear corresponding
  374. // interrupt; 0 = no effect;
  375. #define APPS_CONFIG_DMA_DONE_INT_ACK_HOSTSPI_WR_DMA_DONE_INT_ACK \
  376. 0x00000020 // write 1 to clear corresponding
  377. // interrupt; 0 = no effect;
  378. #define APPS_CONFIG_DMA_DONE_INT_ACK_HOSTSPI_RD_DMA_DONE_INT_ACK \
  379. 0x00000010 // write 1 to clear corresponding
  380. // interrupt; 0 = no effect;
  381. #define APPS_CONFIG_DMA_DONE_INT_ACK_APPS_SPI_WR_DMA_DONE_INT_ACK \
  382. 0x00000008 // write 1 to clear corresponding
  383. // interrupt; 0 = no effect;
  384. #define APPS_CONFIG_DMA_DONE_INT_ACK_APPS_SPI_RD_DMA_DONE_INT_ACK \
  385. 0x00000004 // write 1 to clear corresponding
  386. // interrupt; 0 = no effect;
  387. #define APPS_CONFIG_DMA_DONE_INT_ACK_SDIOM_WR_DMA_DONE_INT_ACK \
  388. 0x00000002 // write 1 to clear corresponding
  389. // interrupt; 0 = no effect;
  390. #define APPS_CONFIG_DMA_DONE_INT_ACK_SDIOM_RD_DMA_DONE_INT_ACK \
  391. 0x00000001 // write 1 to clear corresponding
  392. // interrupt; 0 = no effect;
  393. //******************************************************************************
  394. //
  395. // The following are defines for the bit fields in the
  396. // APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED register.
  397. //
  398. //******************************************************************************
  399. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_ADC_WR_DMA_DONE_INT_STS_MASKED_M \
  400. 0x0000F000 // 1= corresponding interrupt is
  401. // active and not masked. read is
  402. // non-destructive;0 = corresponding
  403. // interrupt is inactive or masked
  404. // by DMA_DONE_INT mask bit 14: ADC
  405. // channel 7 DMA Done IRQ bit 13:
  406. // ADC channel 5 DMA Done IRQ bit
  407. // 12: ADC channel 3 DMA Done IRQ
  408. // bit 11: ADC channel 1 DMA Done
  409. // IRQ
  410. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_ADC_WR_DMA_DONE_INT_STS_MASKED_S 12
  411. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_MCASP_WR_DMA_DONE_INT_STS_MASKED \
  412. 0x00000800 // 1= corresponding interrupt is
  413. // active and not masked. read is
  414. // non-destructive;0 = corresponding
  415. // interrupt is inactive or masked
  416. // by DMA_DONE_INT mask
  417. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_MCASP_RD_DMA_DONE_INT_STS_MASKED \
  418. 0x00000400 // 1= corresponding interrupt is
  419. // active and not masked. read is
  420. // non-destructive;0 = corresponding
  421. // interrupt is inactive or masked
  422. // by DMA_DONE_INT mask
  423. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_CAM_FIFO_EMPTY_DMA_DONE_INT_STS_MASKED \
  424. 0x00000200 // 1= corresponding interrupt is
  425. // active and not masked. read is
  426. // non-destructive;0 = corresponding
  427. // interrupt is inactive or masked
  428. // by DMA_DONE_INT mask
  429. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_CAM_THRESHHOLD_DMA_DONE_INT_STS_MASKED \
  430. 0x00000100 // 1= corresponding interrupt is
  431. // active and not masked. read is
  432. // non-destructive;0 = corresponding
  433. // interrupt is inactive or masked
  434. // by DMA_DONE_INT mask
  435. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_SHSPI_WR_DMA_DONE_INT_STS_MASKED \
  436. 0x00000080 // 1= corresponding interrupt is
  437. // active and not masked. read is
  438. // non-destructive;0 = corresponding
  439. // interrupt is inactive or masked
  440. // by DMA_DONE_INT mask
  441. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_SHSPI_RD_DMA_DONE_INT_STS_MASKED \
  442. 0x00000040 // 1= corresponding interrupt is
  443. // active and not masked. read is
  444. // non-destructive;0 = corresponding
  445. // interrupt is inactive or masked
  446. // by DMA_DONE_INT mask
  447. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_HOSTSPI_WR_DMA_DONE_INT_STS_MASKED \
  448. 0x00000020 // 1= corresponding interrupt is
  449. // active and not masked. read is
  450. // non-destructive;0 = corresponding
  451. // interrupt is inactive or masked
  452. // by DMA_DONE_INT mask
  453. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_HOSTSPI_RD_DMA_DONE_INT_STS_MASKED \
  454. 0x00000010 // 1= corresponding interrupt is
  455. // active and not masked. read is
  456. // non-destructive;0 = corresponding
  457. // interrupt is inactive or masked
  458. // by DMA_DONE_INT mask
  459. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_APPS_SPI_WR_DMA_DONE_INT_STS_MASKED \
  460. 0x00000008 // 1= corresponding interrupt is
  461. // active and not masked. read is
  462. // non-destructive;0 = corresponding
  463. // interrupt is inactive or masked
  464. // by DMA_DONE_INT mask
  465. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_APPS_SPI_RD_DMA_DONE_INT_STS_MASKED \
  466. 0x00000004 // 1= corresponding interrupt is
  467. // active and not masked. read is
  468. // non-destructive;0 = corresponding
  469. // interrupt is inactive or masked
  470. // by DMA_DONE_INT mask
  471. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_SDIOM_WR_DMA_DONE_INT_STS_MASKED \
  472. 0x00000002 // 1= corresponding interrupt is
  473. // active and not masked. read is
  474. // non-destructive;0 = corresponding
  475. // interrupt is inactive or masked
  476. // by DMA_DONE_INT mask
  477. #define APPS_CONFIG_DMA_DONE_INT_STS_MASKED_SDIOM_RD_DMA_DONE_INT_STS_MASKED \
  478. 0x00000001 // 1= corresponding interrupt is
  479. // active and not masked. read is
  480. // non-destructive;0 = corresponding
  481. // interrupt is inactive or masked
  482. // by DMA_DONE_INT mask
  483. //******************************************************************************
  484. //
  485. // The following are defines for the bit fields in the
  486. // APPS_CONFIG_O_DMA_DONE_INT_STS_RAW register.
  487. //
  488. //******************************************************************************
  489. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_ADC_WR_DMA_DONE_INT_STS_RAW_M \
  490. 0x0000F000 // 1= corresponding interrupt is
  491. // active. read is non-destructive;0
  492. // = corresponding interrupt is
  493. // inactive bit 14: ADC channel 7
  494. // DMA Done IRQ bit 13: ADC channel
  495. // 5 DMA Done IRQ bit 12: ADC
  496. // channel 3 DMA Done IRQ bit 11:
  497. // ADC channel 1 DMA Done IRQ
  498. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_ADC_WR_DMA_DONE_INT_STS_RAW_S 12
  499. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_MCASP_WR_DMA_DONE_INT_STS_RAW \
  500. 0x00000800 // 1= corresponding interrupt is
  501. // active. read is non-destructive;0
  502. // = corresponding interrupt is
  503. // inactive
  504. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_MCASP_RD_DMA_DONE_INT_STS_RAW \
  505. 0x00000400 // 1= corresponding interrupt is
  506. // active. read is non-destructive;0
  507. // = corresponding interrupt is
  508. // inactive
  509. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_CAM_EPMTY_FIFO_DMA_DONE_INT_STS_RAW \
  510. 0x00000200 // 1= corresponding interrupt is
  511. // active. read is non-destructive;0
  512. // = corresponding interrupt is
  513. // inactive
  514. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_CAM_THRESHHOLD_DMA_DONE_INT_STS_RAW \
  515. 0x00000100 // 1= corresponding interrupt is
  516. // active. read is non-destructive;0
  517. // = corresponding interrupt is
  518. // inactive
  519. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_SHSPI_WR_DMA_DONE_INT_STS_RAW \
  520. 0x00000080 // 1= corresponding interrupt is
  521. // active. read is non-destructive;0
  522. // = corresponding interrupt is
  523. // inactive
  524. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_SHSPI_RD_DMA_DONE_INT_STS_RAW \
  525. 0x00000040 // 1= corresponding interrupt is
  526. // active. read is non-destructive;0
  527. // = corresponding interrupt is
  528. // inactive
  529. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_HOSTSPI_WR_DMA_DONE_INT_STS_RAW \
  530. 0x00000020 // 1= corresponding interrupt is
  531. // active. read is non-destructive;0
  532. // = corresponding interrupt is
  533. // inactive
  534. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_HOSTSPI_RD_DMA_DONE_INT_STS_RAW \
  535. 0x00000010 // 1= corresponding interrupt is
  536. // active. read is non-destructive;0
  537. // = corresponding interrupt is
  538. // inactive
  539. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_APPS_SPI_WR_DMA_DONE_INT_STS_RAW \
  540. 0x00000008 // 1= corresponding interrupt is
  541. // active. read is non-destructive;0
  542. // = corresponding interrupt is
  543. // inactive
  544. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_APPS_SPI_RD_DMA_DONE_INT_STS_RAW \
  545. 0x00000004 // 1= corresponding interrupt is
  546. // active. read is non-destructive;0
  547. // = corresponding interrupt is
  548. // inactive
  549. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_SDIOM_WR_DMA_DONE_INT_STS_RAW \
  550. 0x00000002 // 1= corresponding interrupt is
  551. // active. read is non-destructive;0
  552. // = corresponding interrupt is
  553. // inactive
  554. #define APPS_CONFIG_DMA_DONE_INT_STS_RAW_SDIOM_RD_DMA_DONE_INT_STS_RAW \
  555. 0x00000001 // 1= corresponding interrupt is
  556. // active. read is non-destructive;0
  557. // = corresponding interrupt is
  558. // inactive
  559. //******************************************************************************
  560. //
  561. // The following are defines for the bit fields in the
  562. // APPS_CONFIG_O_FAULT_STATUS_CLR_REG register.
  563. //
  564. //******************************************************************************
  565. #define APPS_CONFIG_FAULT_STATUS_CLR_REG_PATCH_ERR_CLR \
  566. 0x00000001 // Write 1 to clear the LSB of
  567. // FAULT_STATUS_REG
  568. //******************************************************************************
  569. //
  570. // The following are defines for the bit fields in the
  571. // APPS_CONFIG_O_RESERVD_REG_0 register.
  572. //
  573. //******************************************************************************
  574. //******************************************************************************
  575. //
  576. // The following are defines for the bit fields in the
  577. // APPS_CONFIG_O_GPT_TRIG_SEL register.
  578. //
  579. //******************************************************************************
  580. #define APPS_CONFIG_GPT_TRIG_SEL_GPT_TRIG_SEL_M \
  581. 0x000000FF // This bit is implemented for GPT
  582. // trigger mode select. GPT IP
  583. // support 2 modes: RTC mode and
  584. // external trigger. When this bit
  585. // is set to logic '1': enable
  586. // external trigger mode for APPS
  587. // GPT CP0 and CP1 pin. bit 0: when
  588. // set '1' enable external GPT
  589. // trigger 0 on GPIO0 CP0 pin else
  590. // RTC mode is selected. bit 1: when
  591. // set '1' enable external GPT
  592. // trigger 1 on GPIO0 CP1 pin else
  593. // RTC mode is selected. bit 2: when
  594. // set '1' enable external GPT
  595. // trigger 2 on GPIO1 CP0 pin else
  596. // RTC mode is selected. bit 3: when
  597. // set '1' enable external GPT
  598. // trigger 3 on GPIO1 CP1 pin else
  599. // RTC mode is selected. bit 4: when
  600. // set '1' enable external GPT
  601. // trigger 4 on GPIO2 CP0 pin else
  602. // RTC mode is selected. bit 5: when
  603. // set '1' enable external GPT
  604. // trigger 5 on GPIO2 CP1 pin else
  605. // RTC mode is selected. bit 6: when
  606. // set '1' enable external GPT
  607. // trigger 6 on GPIO3 CP0 pin else
  608. // RTC mode is selected. bit 7: when
  609. // set '1' enable external GPT
  610. // trigger 7 on GPIO3 CP1 pin else
  611. // RTC mode is selected.
  612. #define APPS_CONFIG_GPT_TRIG_SEL_GPT_TRIG_SEL_S 0
  613. //******************************************************************************
  614. //
  615. // The following are defines for the bit fields in the
  616. // APPS_CONFIG_O_TOP_DIE_SPARE_DIN_REG register.
  617. //
  618. //******************************************************************************
  619. #define APPS_CONFIG_TOP_DIE_SPARE_DIN_REG_D2D_SPARE_DIN_M \
  620. 0x00000007 // Capture data from d2d_spare pads
  621. #define APPS_CONFIG_TOP_DIE_SPARE_DIN_REG_D2D_SPARE_DIN_S 0
  622. //******************************************************************************
  623. //
  624. // The following are defines for the bit fields in the
  625. // APPS_CONFIG_O_TOP_DIE_SPARE_DOUT_REG register.
  626. //
  627. //******************************************************************************
  628. #define APPS_CONFIG_TOP_DIE_SPARE_DOUT_REG_D2D_SPARE_DOUT_M \
  629. 0x00000007 // Send data to d2d_spare pads -
  630. // eventually this will get
  631. // registered in top die
  632. #define APPS_CONFIG_TOP_DIE_SPARE_DOUT_REG_D2D_SPARE_DOUT_S 0
  633. #endif // __HW_APPS_CONFIG_H__