hw_common_reg.h 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117
  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_COMMON_REG_H__
  36. #define __HW_COMMON_REG_H__
  37. //*****************************************************************************
  38. //
  39. // The following are defines for the COMMON_REG register offsets.
  40. //
  41. //*****************************************************************************
  42. #define COMMON_REG_O_I2C_Properties_Register \
  43. 0x00000000
  44. #define COMMON_REG_O_SPI_Properties_Register \
  45. 0x00000004
  46. #define COMMON_REG_O_APPS_sh_resource_Interrupt_enable \
  47. 0x0000000C
  48. #define COMMON_REG_O_APPS_sh_resource_Interrupt_status \
  49. 0x00000010
  50. #define COMMON_REG_O_NWP_sh_resource_Interrupt_enable \
  51. 0x00000014
  52. #define COMMON_REG_O_NWP_sh_resource_Interrupt_status \
  53. 0x00000018
  54. #define COMMON_REG_O_Flash_ctrl_reg \
  55. 0x0000001C
  56. #define COMMON_REG_O_Bus_matrix_M0_segment_access_config \
  57. 0x00000024
  58. #define COMMON_REG_O_Bus_matrix_M1_segment_access_config \
  59. 0x00000028
  60. #define COMMON_REG_O_Bus_matrix_M2_segment_access_config \
  61. 0x0000002C
  62. #define COMMON_REG_O_Bus_matrix_M3_segment_access_config \
  63. 0x00000030
  64. #define COMMON_REG_O_Bus_matrix_M4_segment_access_config \
  65. 0x00000034
  66. #define COMMON_REG_O_Bus_matrix_M5_segment_access_config \
  67. 0x00000038
  68. #define COMMON_REG_O_GPIO_properties_register \
  69. 0x0000003C
  70. #define COMMON_REG_O_APPS_NW_SEMAPHORE1 \
  71. 0x00000040
  72. #define COMMON_REG_O_APPS_NW_SEMAPHORE2 \
  73. 0x00000044
  74. #define COMMON_REG_O_APPS_NW_SEMAPHORE3 \
  75. 0x00000048
  76. #define COMMON_REG_O_APPS_NW_SEMAPHORE4 \
  77. 0x0000004C
  78. #define COMMON_REG_O_APPS_NW_SEMAPHORE5 \
  79. 0x00000050
  80. #define COMMON_REG_O_APPS_NW_SEMAPHORE6 \
  81. 0x00000054
  82. #define COMMON_REG_O_APPS_NW_SEMAPHORE7 \
  83. 0x00000058
  84. #define COMMON_REG_O_APPS_NW_SEMAPHORE8 \
  85. 0x0000005C
  86. #define COMMON_REG_O_APPS_NW_SEMAPHORE9 \
  87. 0x00000060
  88. #define COMMON_REG_O_APPS_NW_SEMAPHORE10 \
  89. 0x00000064
  90. #define COMMON_REG_O_APPS_NW_SEMAPHORE11 \
  91. 0x00000068
  92. #define COMMON_REG_O_APPS_NW_SEMAPHORE12 \
  93. 0x0000006C
  94. #define COMMON_REG_O_APPS_SEMAPPHORE_PEND \
  95. 0x00000070
  96. #define COMMON_REG_O_NW_SEMAPPHORE_PEND \
  97. 0x00000074
  98. #define COMMON_REG_O_SEMAPHORE_STATUS \
  99. 0x00000078
  100. #define COMMON_REG_O_IDMEM_TIM_Update \
  101. 0x0000007C
  102. #define COMMON_REG_O_FPGA_ROM_WR_EN \
  103. 0x00000080
  104. #define COMMON_REG_O_NW_INT_MASK \
  105. 0x00000084
  106. #define COMMON_REG_O_NW_INT_MASK_SET \
  107. 0x00000088
  108. #define COMMON_REG_O_NW_INT_MASK_CLR \
  109. 0x0000008C
  110. #define COMMON_REG_O_NW_INT_STS_CLR \
  111. 0x00000090
  112. #define COMMON_REG_O_NW_INT_ACK 0x00000094
  113. #define COMMON_REG_O_NW_INT_TRIG \
  114. 0x00000098
  115. #define COMMON_REG_O_NW_INT_STS_MASKED \
  116. 0x0000009C
  117. #define COMMON_REG_O_NW_INT_STS_RAW \
  118. 0x000000A0
  119. #define COMMON_REG_O_APPS_INT_MASK \
  120. 0x000000A4
  121. #define COMMON_REG_O_APPS_INT_MASK_SET \
  122. 0x000000A8
  123. #define COMMON_REG_O_APPS_INT_MASK_CLR \
  124. 0x000000AC
  125. #define COMMON_REG_O_APPS_INT_STS_CLR \
  126. 0x000000B0
  127. #define COMMON_REG_O_APPS_INT_ACK \
  128. 0x000000B4
  129. #define COMMON_REG_O_APPS_INT_TRIG \
  130. 0x000000B8
  131. #define COMMON_REG_O_APPS_INT_STS_MASKED \
  132. 0x000000BC
  133. #define COMMON_REG_O_APPS_INT_STS_RAW \
  134. 0x000000C0
  135. #define COMMON_REG_O_IDMEM_TIM_Updated \
  136. 0x000000C4
  137. #define COMMON_REG_O_APPS_GPIO_TRIG_EN \
  138. 0x000000C8
  139. #define COMMON_REG_O_EMU_DEBUG_REG \
  140. 0x000000CC
  141. #define COMMON_REG_O_SEMAPHORE_STATUS2 \
  142. 0x000000D0
  143. #define COMMON_REG_O_SEMAPHORE_PREV_OWNER1 \
  144. 0x000000D4
  145. #define COMMON_REG_O_SEMAPHORE_PREV_OWNER2 \
  146. 0x000000D8
  147. //******************************************************************************
  148. //
  149. // The following are defines for the bit fields in the
  150. // COMMON_REG_O_I2C_Properties_Register register.
  151. //
  152. //******************************************************************************
  153. #define COMMON_REG_I2C_Properties_Register_I2C_Properties_Register_M \
  154. 0x00000003 // • Each semaphore register is of
  155. // 2 bit. • When this register is
  156. // set to 2’b01 – Apps have access
  157. // and when set to 2’b10 – NW have
  158. // access. • Ideally both the master
  159. // can modify any of this 2 bit, but
  160. // assumption apps will write only
  161. // 2’b01 or 2’b00 to this register
  162. // and nw will write only 2’b10 or
  163. // 2’b00. • Implementation is when
  164. // any of the bit of this register
  165. // is set, only next write
  166. // allowedvis 2’b00 – Again
  167. // assumption is one master will not
  168. // write 2’b00 if other is already
  169. // holding the semaphore.
  170. #define COMMON_REG_I2C_Properties_Register_I2C_Properties_Register_S 0
  171. //******************************************************************************
  172. //
  173. // The following are defines for the bit fields in the
  174. // COMMON_REG_O_SPI_Properties_Register register.
  175. //
  176. //******************************************************************************
  177. #define COMMON_REG_SPI_Properties_Register_SPI_Properties_Register_M \
  178. 0x00000003 // • Each semaphore register is of
  179. // 2 bit. • When this register is
  180. // set to 2’b01 – Apps have access
  181. // and when set to 2’b10 – NW have
  182. // access. • Ideally both the master
  183. // can modify any of this 2 bit, but
  184. // assumption apps will write only
  185. // 2’b01 or 2’b00 to this register
  186. // and nw will write only 2’b10 or
  187. // 2’b00. • Implementation is when
  188. // any of the bit of this register
  189. // is set, only next write
  190. // allowedvis 2’b00 – Again
  191. // assumption is one master will not
  192. // write 2’b00 if other is already
  193. // holding the semaphore.
  194. #define COMMON_REG_SPI_Properties_Register_SPI_Properties_Register_S 0
  195. //******************************************************************************
  196. //
  197. // The following are defines for the bit fields in the
  198. // COMMON_REG_O_APPS_sh_resource_Interrupt_enable register.
  199. //
  200. //******************************************************************************
  201. #define COMMON_REG_APPS_sh_resource_Interrupt_enable_APPS_sh_resource_Interrupt_enable_M \
  202. 0x0000000F // Interrupt enable APPS bit 0 ->
  203. // when '1' enable I2C interrupt bit
  204. // 1 -> when '1' enable SPI
  205. // interrupt bit 3 ->
  206. // when '1' enable GPIO interrupt
  207. #define COMMON_REG_APPS_sh_resource_Interrupt_enable_APPS_sh_resource_Interrupt_enable_S 0
  208. //******************************************************************************
  209. //
  210. // The following are defines for the bit fields in the
  211. // COMMON_REG_O_APPS_sh_resource_Interrupt_status register.
  212. //
  213. //******************************************************************************
  214. #define COMMON_REG_APPS_sh_resource_Interrupt_status_APPS_sh_resource_Interrupt_status_M \
  215. 0x0000000F // Interrupt enable APPS bit 0 ->
  216. // when '1' enable I2C interrupt bit
  217. // 1 -> when '1' enable SPI
  218. // interrupt bit 3 ->
  219. // when '1' enable GPIO interrupt
  220. #define COMMON_REG_APPS_sh_resource_Interrupt_status_APPS_sh_resource_Interrupt_status_S 0
  221. //******************************************************************************
  222. //
  223. // The following are defines for the bit fields in the
  224. // COMMON_REG_O_NWP_sh_resource_Interrupt_enable register.
  225. //
  226. //******************************************************************************
  227. #define COMMON_REG_NWP_sh_resource_Interrupt_enable_NWP_sh_resource_Interrupt_enable_M \
  228. 0x0000000F // Interrupt enable NWP bit 0 ->
  229. // when '1' enable I2C interrupt bit
  230. // 1 -> when '1' enable SPI
  231. // interrupt bit 3 ->
  232. // when '1' enable GPIO interrupt
  233. #define COMMON_REG_NWP_sh_resource_Interrupt_enable_NWP_sh_resource_Interrupt_enable_S 0
  234. //******************************************************************************
  235. //
  236. // The following are defines for the bit fields in the
  237. // COMMON_REG_O_NWP_sh_resource_Interrupt_status register.
  238. //
  239. //******************************************************************************
  240. #define COMMON_REG_NWP_sh_resource_Interrupt_status_NWP_sh_resource_Interrupt_status_M \
  241. 0x0000000F // Interrupt enable NWP bit 0 ->
  242. // when '1' enable I2C interrupt bit
  243. // 1 -> when '1' enable SPI
  244. // interrupt bit 3 ->
  245. // when '1' enable GPIO interrupt
  246. #define COMMON_REG_NWP_sh_resource_Interrupt_status_NWP_sh_resource_Interrupt_status_S 0
  247. //******************************************************************************
  248. //
  249. // The following are defines for the bit fields in the
  250. // COMMON_REG_O_Flash_ctrl_reg register.
  251. //
  252. //******************************************************************************
  253. #define COMMON_REG_Flash_ctrl_reg_Flash_ctrl_reg_M \
  254. 0x00000003 // • Each semaphore register is of
  255. // 2 bit. • When this register is
  256. // set to 2’b01 – Apps have access
  257. // and when set to 2’b10 – NW have
  258. // access. • Ideally both the master
  259. // can modify any of this 2 bit, but
  260. // assumption apps will write only
  261. // 2’b01 or 2’b00 to this register
  262. // and nw will write only 2’b10 or
  263. // 2’b00. • Implementation is when
  264. // any of the bit of this register
  265. // is set, only next write
  266. // allowedvis 2’b00 – Again
  267. // assumption is one master will not
  268. // write 2’b00 if other is already
  269. // holding the semaphore.
  270. #define COMMON_REG_Flash_ctrl_reg_Flash_ctrl_reg_S 0
  271. //******************************************************************************
  272. //
  273. // The following are defines for the bit fields in the
  274. // COMMON_REG_O_Bus_matrix_M0_segment_access_config register.
  275. //
  276. //******************************************************************************
  277. #define COMMON_REG_Bus_matrix_M0_segment_access_config_Bus_matrix_M0_segment_access_config_M \
  278. 0x0003FFFF // Master 0 control word matrix to
  279. // each segment. Tieoff. Bit value 1
  280. // indicates segment is accesable.
  281. #define COMMON_REG_Bus_matrix_M0_segment_access_config_Bus_matrix_M0_segment_access_config_S 0
  282. //******************************************************************************
  283. //
  284. // The following are defines for the bit fields in the
  285. // COMMON_REG_O_Bus_matrix_M1_segment_access_config register.
  286. //
  287. //******************************************************************************
  288. #define COMMON_REG_Bus_matrix_M1_segment_access_config_Bus_matrix_M1_segment_access_config_M \
  289. 0x0003FFFF // Master 1 control word matrix to
  290. // each segment. Tieoff. Bit value 1
  291. // indicates segment is accesable.
  292. #define COMMON_REG_Bus_matrix_M1_segment_access_config_Bus_matrix_M1_segment_access_config_S 0
  293. //******************************************************************************
  294. //
  295. // The following are defines for the bit fields in the
  296. // COMMON_REG_O_Bus_matrix_M2_segment_access_config register.
  297. //
  298. //******************************************************************************
  299. #define COMMON_REG_Bus_matrix_M2_segment_access_config_Bus_matrix_M2_segment_access_config_M \
  300. 0x0003FFFF // Master 2 control word matrix to
  301. // each segment. Tieoff. Bit value 1
  302. // indicates segment is accesable.
  303. #define COMMON_REG_Bus_matrix_M2_segment_access_config_Bus_matrix_M2_segment_access_config_S 0
  304. //******************************************************************************
  305. //
  306. // The following are defines for the bit fields in the
  307. // COMMON_REG_O_Bus_matrix_M3_segment_access_config register.
  308. //
  309. //******************************************************************************
  310. #define COMMON_REG_Bus_matrix_M3_segment_access_config_Bus_matrix_M3_segment_access_config_M \
  311. 0x0003FFFF // Master 3 control word matrix to
  312. // each segment. Tieoff. Bit value 1
  313. // indicates segment is accesable.
  314. #define COMMON_REG_Bus_matrix_M3_segment_access_config_Bus_matrix_M3_segment_access_config_S 0
  315. //******************************************************************************
  316. //
  317. // The following are defines for the bit fields in the
  318. // COMMON_REG_O_Bus_matrix_M4_segment_access_config register.
  319. //
  320. //******************************************************************************
  321. #define COMMON_REG_Bus_matrix_M4_segment_access_config_Bus_matrix_M4_segment_access_config_M \
  322. 0x0003FFFF // Master 4 control word matrix to
  323. // each segment. Tieoff. Bit value 1
  324. // indicates segment is accesable.
  325. #define COMMON_REG_Bus_matrix_M4_segment_access_config_Bus_matrix_M4_segment_access_config_S 0
  326. //******************************************************************************
  327. //
  328. // The following are defines for the bit fields in the
  329. // COMMON_REG_O_Bus_matrix_M5_segment_access_config register.
  330. //
  331. //******************************************************************************
  332. #define COMMON_REG_Bus_matrix_M5_segment_access_config_Bus_matrix_M5_segment_access_config_M \
  333. 0x0003FFFF // Master 5 control word matrix to
  334. // each segment. Tieoff. Bit value 1
  335. // indicates segment is accesable.
  336. #define COMMON_REG_Bus_matrix_M5_segment_access_config_Bus_matrix_M5_segment_access_config_S 0
  337. //******************************************************************************
  338. //
  339. // The following are defines for the bit fields in the
  340. // COMMON_REG_O_GPIO_properties_register register.
  341. //
  342. //******************************************************************************
  343. #define COMMON_REG_GPIO_properties_register_GPIO_properties_register_M \
  344. 0x000003FF // Shared GPIO configuration
  345. // register. Bit [1:0] to configure
  346. // GPIO0 Bit [3:2] to configure
  347. // GPIO1 Bit [5:4] to configure
  348. // GPIO2 Bit [7:6] to configure
  349. // GPIO3 Bit [9:8] to configure
  350. // GPIO4 each GPIO can be
  351. // individully selected. When “00”
  352. // GPIO is free resource. When “01”
  353. // GPIO is APPS resource. When “10”
  354. // GPIO is NWP resource. Writing 11
  355. // doesnt have any affect, i.e. If
  356. // one write only relevant gpio
  357. // semaphore and other bits are 1s,
  358. // it'll not disturb the other
  359. // semaphore bits. For example : Say
  360. // If NW wants to take control of
  361. // gpio-1, one should write
  362. // 10'b11_1111_1011 and if one wants
  363. // to release it write
  364. // 10'b11_1111_0011.
  365. #define COMMON_REG_GPIO_properties_register_GPIO_properties_register_S 0
  366. //******************************************************************************
  367. //
  368. // The following are defines for the bit fields in the
  369. // COMMON_REG_O_APPS_NW_SEMAPHORE1 register.
  370. //
  371. //******************************************************************************
  372. #define COMMON_REG_APPS_NW_SEMAPHORE1_APPS_NW_SEMAPHORE1_M \
  373. 0xFFFFFFFF // • Each semaphore register is of
  374. // 2 bit. • When this register is
  375. // set to 2’b01 – Apps have access
  376. // and when set to 2’b10 – NW have
  377. // access. • Ideally both the master
  378. // can modify any of this 2 bit, but
  379. // assumption apps will write only
  380. // 2’b01 or 2’b00 to this register
  381. // and nw will write only 2’b10 or
  382. // 2’b00. • Implementation is when
  383. // any of the bit of this register
  384. // is set, only next write
  385. // allowedvis 2’b00 – Again
  386. // assumption is one master will not
  387. // write 2’b00 if other is already
  388. // holding the semaphore.
  389. #define COMMON_REG_APPS_NW_SEMAPHORE1_APPS_NW_SEMAPHORE1_S 0
  390. //******************************************************************************
  391. //
  392. // The following are defines for the bit fields in the
  393. // COMMON_REG_O_APPS_NW_SEMAPHORE2 register.
  394. //
  395. //******************************************************************************
  396. #define COMMON_REG_APPS_NW_SEMAPHORE2_APPS_NW_SEMAPHORE2_M \
  397. 0xFFFFFFFF // • Each semaphore register is of
  398. // 2 bit. • When this register is
  399. // set to 2’b01 – Apps have access
  400. // and when set to 2’b10 – NW have
  401. // access. • Ideally both the master
  402. // can modify any of this 2 bit, but
  403. // assumption apps will write only
  404. // 2’b01 or 2’b00 to this register
  405. // and nw will write only 2’b10 or
  406. // 2’b00. • Implementation is when
  407. // any of the bit of this register
  408. // is set, only next write
  409. // allowedvis 2’b00 – Again
  410. // assumption is one master will not
  411. // write 2’b00 if other is already
  412. // holding the semaphore.
  413. #define COMMON_REG_APPS_NW_SEMAPHORE2_APPS_NW_SEMAPHORE2_S 0
  414. //******************************************************************************
  415. //
  416. // The following are defines for the bit fields in the
  417. // COMMON_REG_O_APPS_NW_SEMAPHORE3 register.
  418. //
  419. //******************************************************************************
  420. #define COMMON_REG_APPS_NW_SEMAPHORE3_APPS_NW_SEMAPHORE3_M \
  421. 0xFFFFFFFF // • Each semaphore register is of
  422. // 2 bit. • When this register is
  423. // set to 2’b01 – Apps have access
  424. // and when set to 2’b10 – NW have
  425. // access. • Ideally both the master
  426. // can modify any of this 2 bit, but
  427. // assumption apps will write only
  428. // 2’b01 or 2’b00 to this register
  429. // and nw will write only 2’b10 or
  430. // 2’b00. • Implementation is when
  431. // any of the bit of this register
  432. // is set, only next write
  433. // allowedvis 2’b00 – Again
  434. // assumption is one master will not
  435. // write 2’b00 if other is already
  436. // holding the semaphore.
  437. #define COMMON_REG_APPS_NW_SEMAPHORE3_APPS_NW_SEMAPHORE3_S 0
  438. //******************************************************************************
  439. //
  440. // The following are defines for the bit fields in the
  441. // COMMON_REG_O_APPS_NW_SEMAPHORE4 register.
  442. //
  443. //******************************************************************************
  444. #define COMMON_REG_APPS_NW_SEMAPHORE4_APPS_NW_SEMAPHORE4_M \
  445. 0xFFFFFFFF // • Each semaphore register is of
  446. // 2 bit. • When this register is
  447. // set to 2’b01 – Apps have access
  448. // and when set to 2’b10 – NW have
  449. // access. • Ideally both the master
  450. // can modify any of this 2 bit, but
  451. // assumption apps will write only
  452. // 2’b01 or 2’b00 to this register
  453. // and nw will write only 2’b10 or
  454. // 2’b00. • Implementation is when
  455. // any of the bit of this register
  456. // is set, only next write
  457. // allowedvis 2’b00 – Again
  458. // assumption is one master will not
  459. // write 2’b00 if other is already
  460. // holding the semaphore.
  461. #define COMMON_REG_APPS_NW_SEMAPHORE4_APPS_NW_SEMAPHORE4_S 0
  462. //******************************************************************************
  463. //
  464. // The following are defines for the bit fields in the
  465. // COMMON_REG_O_APPS_NW_SEMAPHORE5 register.
  466. //
  467. //******************************************************************************
  468. #define COMMON_REG_APPS_NW_SEMAPHORE5_APPS_NW_SEMAPHORE5_M \
  469. 0xFFFFFFFF // • Each semaphore register is of
  470. // 2 bit. • When this register is
  471. // set to 2’b01 – Apps have access
  472. // and when set to 2’b10 – NW have
  473. // access. • Ideally both the master
  474. // can modify any of this 2 bit, but
  475. // assumption apps will write only
  476. // 2’b01 or 2’b00 to this register
  477. // and nw will write only 2’b10 or
  478. // 2’b00. • Implementation is when
  479. // any of the bit of this register
  480. // is set, only next write
  481. // allowedvis 2’b00 – Again
  482. // assumption is one master will not
  483. // write 2’b00 if other is already
  484. // holding the semaphore.
  485. #define COMMON_REG_APPS_NW_SEMAPHORE5_APPS_NW_SEMAPHORE5_S 0
  486. //******************************************************************************
  487. //
  488. // The following are defines for the bit fields in the
  489. // COMMON_REG_O_APPS_NW_SEMAPHORE6 register.
  490. //
  491. //******************************************************************************
  492. #define COMMON_REG_APPS_NW_SEMAPHORE6_APPS_NW_SEMAPHORE6_M \
  493. 0xFFFFFFFF // • Each semaphore register is of
  494. // 2 bit. • When this register is
  495. // set to 2’b01 – Apps have access
  496. // and when set to 2’b10 – NW have
  497. // access. • Ideally both the master
  498. // can modify any of this 2 bit, but
  499. // assumption apps will write only
  500. // 2’b01 or 2’b00 to this register
  501. // and nw will write only 2’b10 or
  502. // 2’b00. • Implementation is when
  503. // any of the bit of this register
  504. // is set, only next write
  505. // allowedvis 2’b00 – Again
  506. // assumption is one master will not
  507. // write 2’b00 if other is already
  508. // holding the semaphore.
  509. #define COMMON_REG_APPS_NW_SEMAPHORE6_APPS_NW_SEMAPHORE6_S 0
  510. //******************************************************************************
  511. //
  512. // The following are defines for the bit fields in the
  513. // COMMON_REG_O_APPS_NW_SEMAPHORE7 register.
  514. //
  515. //******************************************************************************
  516. #define COMMON_REG_APPS_NW_SEMAPHORE7_APPS_NW_SEMAPHORE7_M \
  517. 0xFFFFFFFF // • Each semaphore register is of
  518. // 2 bit. • When this register is
  519. // set to 2’b01 – Apps have access
  520. // and when set to 2’b10 – NW have
  521. // access. • Ideally both the master
  522. // can modify any of this 2 bit, but
  523. // assumption apps will write only
  524. // 2’b01 or 2’b00 to this register
  525. // and nw will write only 2’b10 or
  526. // 2’b00. • Implementation is when
  527. // any of the bit of this register
  528. // is set, only next write
  529. // allowedvis 2’b00 – Again
  530. // assumption is one master will not
  531. // write 2’b00 if other is already
  532. // holding the semaphore.
  533. #define COMMON_REG_APPS_NW_SEMAPHORE7_APPS_NW_SEMAPHORE7_S 0
  534. //******************************************************************************
  535. //
  536. // The following are defines for the bit fields in the
  537. // COMMON_REG_O_APPS_NW_SEMAPHORE8 register.
  538. //
  539. //******************************************************************************
  540. #define COMMON_REG_APPS_NW_SEMAPHORE8_APPS_NW_SEMAPHORE8_M \
  541. 0xFFFFFFFF // • Each semaphore register is of
  542. // 2 bit. • When this register is
  543. // set to 2’b01 – Apps have access
  544. // and when set to 2’b10 – NW have
  545. // access. • Ideally both the master
  546. // can modify any of this 2 bit, but
  547. // assumption apps will write only
  548. // 2’b01 or 2’b00 to this register
  549. // and nw will write only 2’b10 or
  550. // 2’b00. • Implementation is when
  551. // any of the bit of this register
  552. // is set, only next write
  553. // allowedvis 2’b00 – Again
  554. // assumption is one master will not
  555. // write 2’b00 if other is already
  556. // holding the semaphore.
  557. #define COMMON_REG_APPS_NW_SEMAPHORE8_APPS_NW_SEMAPHORE8_S 0
  558. //******************************************************************************
  559. //
  560. // The following are defines for the bit fields in the
  561. // COMMON_REG_O_APPS_NW_SEMAPHORE9 register.
  562. //
  563. //******************************************************************************
  564. #define COMMON_REG_APPS_NW_SEMAPHORE9_APPS_NW_SEMAPHORE9_M \
  565. 0xFFFFFFFF // • Each semaphore register is of
  566. // 2 bit. • When this register is
  567. // set to 2’b01 – Apps have access
  568. // and when set to 2’b10 – NW have
  569. // access. • Ideally both the master
  570. // can modify any of this 2 bit, but
  571. // assumption apps will write only
  572. // 2’b01 or 2’b00 to this register
  573. // and nw will write only 2’b10 or
  574. // 2’b00. • Implementation is when
  575. // any of the bit of this register
  576. // is set, only next write
  577. // allowedvis 2’b00 – Again
  578. // assumption is one master will not
  579. // write 2’b00 if other is already
  580. // holding the semaphore.
  581. #define COMMON_REG_APPS_NW_SEMAPHORE9_APPS_NW_SEMAPHORE9_S 0
  582. //******************************************************************************
  583. //
  584. // The following are defines for the bit fields in the
  585. // COMMON_REG_O_APPS_NW_SEMAPHORE10 register.
  586. //
  587. //******************************************************************************
  588. #define COMMON_REG_APPS_NW_SEMAPHORE10_APPS_NW_SEMAPHORE10_M \
  589. 0xFFFFFFFF // • Each semaphore register is of
  590. // 2 bit. • When this register is
  591. // set to 2’b01 – Apps have access
  592. // and when set to 2’b10 – NW have
  593. // access. • Ideally both the master
  594. // can modify any of this 2 bit, but
  595. // assumption apps will write only
  596. // 2’b01 or 2’b00 to this register
  597. // and nw will write only 2’b10 or
  598. // 2’b00. • Implementation is when
  599. // any of the bit of this register
  600. // is set, only next write
  601. // allowedvis 2’b00 – Again
  602. // assumption is one master will not
  603. // write 2’b00 if other is already
  604. // holding the semaphore.
  605. #define COMMON_REG_APPS_NW_SEMAPHORE10_APPS_NW_SEMAPHORE10_S 0
  606. //******************************************************************************
  607. //
  608. // The following are defines for the bit fields in the
  609. // COMMON_REG_O_APPS_NW_SEMAPHORE11 register.
  610. //
  611. //******************************************************************************
  612. #define COMMON_REG_APPS_NW_SEMAPHORE11_APPS_NW_SEMAPHORE11_M \
  613. 0xFFFFFFFF // • Each semaphore register is of
  614. // 2 bit. • When this register is
  615. // set to 2’b01 – Apps have access
  616. // and when set to 2’b10 – NW have
  617. // access. • Ideally both the master
  618. // can modify any of this 2 bit, but
  619. // assumption apps will write only
  620. // 2’b01 or 2’b00 to this register
  621. // and nw will write only 2’b10 or
  622. // 2’b00. • Implementation is when
  623. // any of the bit of this register
  624. // is set, only next write
  625. // allowedvis 2’b00 – Again
  626. // assumption is one master will not
  627. // write 2’b00 if other is already
  628. // holding the semaphore.
  629. #define COMMON_REG_APPS_NW_SEMAPHORE11_APPS_NW_SEMAPHORE11_S 0
  630. //******************************************************************************
  631. //
  632. // The following are defines for the bit fields in the
  633. // COMMON_REG_O_APPS_NW_SEMAPHORE12 register.
  634. //
  635. //******************************************************************************
  636. #define COMMON_REG_APPS_NW_SEMAPHORE12_APPS_NW_SEMAPHORE12_M \
  637. 0xFFFFFFFF // APPS NW semaphore register - not
  638. // reflected in status.
  639. #define COMMON_REG_APPS_NW_SEMAPHORE12_APPS_NW_SEMAPHORE12_S 0
  640. //******************************************************************************
  641. //
  642. // The following are defines for the bit fields in the
  643. // COMMON_REG_O_APPS_SEMAPPHORE_PEND register.
  644. //
  645. //******************************************************************************
  646. #define COMMON_REG_APPS_SEMAPPHORE_PEND_APPS_SEMAPPHORE_PEND_M \
  647. 0xFFFFFFFF // APPS SEMAPOHORE STATUS
  648. #define COMMON_REG_APPS_SEMAPPHORE_PEND_APPS_SEMAPPHORE_PEND_S 0
  649. //******************************************************************************
  650. //
  651. // The following are defines for the bit fields in the
  652. // COMMON_REG_O_NW_SEMAPPHORE_PEND register.
  653. //
  654. //******************************************************************************
  655. #define COMMON_REG_NW_SEMAPPHORE_PEND_NW_SEMAPPHORE_PEND_M \
  656. 0xFFFFFFFF // NW SEMAPHORE STATUS
  657. #define COMMON_REG_NW_SEMAPPHORE_PEND_NW_SEMAPPHORE_PEND_S 0
  658. //******************************************************************************
  659. //
  660. // The following are defines for the bit fields in the
  661. // COMMON_REG_O_SEMAPHORE_STATUS register.
  662. //
  663. //******************************************************************************
  664. #define COMMON_REG_SEMAPHORE_STATUS_SEMAPHORE_STATUS_M \
  665. 0xFFFFFFFF // SEMAPHORE STATUS 9:8 :semaphore
  666. // status of flash_control 7:6
  667. // :semaphore status of
  668. // gpio_properties 5:4
  669. // :semaphore status of
  670. // spi_propertie 1:0 :semaphore
  671. // status of i2c_propertie
  672. #define COMMON_REG_SEMAPHORE_STATUS_SEMAPHORE_STATUS_S 0
  673. //******************************************************************************
  674. //
  675. // The following are defines for the bit fields in the
  676. // COMMON_REG_O_IDMEM_TIM_Update register.
  677. //
  678. //******************************************************************************
  679. //******************************************************************************
  680. //
  681. // The following are defines for the bit fields in the
  682. // COMMON_REG_O_FPGA_ROM_WR_EN register.
  683. //
  684. //******************************************************************************
  685. #define COMMON_REG_FPGA_ROM_WR_EN_FPGA_ROM_WR_EN \
  686. 0x00000001 // when '1' enables Write into
  687. // IDMEM CORE ROM, APPS ROM, NWP ROM
  688. //******************************************************************************
  689. //
  690. // The following are defines for the bit fields in the
  691. // COMMON_REG_O_NW_INT_MASK register.
  692. //
  693. //******************************************************************************
  694. #define COMMON_REG_NW_INT_MASK_NW_INT_MASK_M \
  695. 0xFFFFFFFF // 1= disable corresponding
  696. // interrupt;0 = interrupt enabled
  697. #define COMMON_REG_NW_INT_MASK_NW_INT_MASK_S 0
  698. //******************************************************************************
  699. //
  700. // The following are defines for the bit fields in the
  701. // COMMON_REG_O_NW_INT_MASK_SET register.
  702. //
  703. //******************************************************************************
  704. #define COMMON_REG_NW_INT_MASK_SET_NW_INT_MASK_SET_M \
  705. 0xFFFFFFFF // write 1 to set corresponding bit
  706. // in NW_INT_MASK;0 = no effect
  707. #define COMMON_REG_NW_INT_MASK_SET_NW_INT_MASK_SET_S 0
  708. //******************************************************************************
  709. //
  710. // The following are defines for the bit fields in the
  711. // COMMON_REG_O_NW_INT_MASK_CLR register.
  712. //
  713. //******************************************************************************
  714. #define COMMON_REG_NW_INT_MASK_CLR_NW_INT_MASK_CLR_M \
  715. 0xFFFFFFFF // write 1 to clear corresponding
  716. // bit in NW_INT_MASK;0 = no effect
  717. #define COMMON_REG_NW_INT_MASK_CLR_NW_INT_MASK_CLR_S 0
  718. //******************************************************************************
  719. //
  720. // The following are defines for the bit fields in the
  721. // COMMON_REG_O_NW_INT_STS_CLR register.
  722. //
  723. //******************************************************************************
  724. #define COMMON_REG_NW_INT_STS_CLR_NW_INT_STS_CLR_M \
  725. 0xFFFFFFFF // write 1 to clear corresponding
  726. // interrupt; 0 = no effect;
  727. // interrupt is not lost if coincide
  728. // with write operation
  729. #define COMMON_REG_NW_INT_STS_CLR_NW_INT_STS_CLR_S 0
  730. //******************************************************************************
  731. //
  732. // The following are defines for the bit fields in the
  733. // COMMON_REG_O_NW_INT_ACK register.
  734. //
  735. //******************************************************************************
  736. #define COMMON_REG_NW_INT_ACK_NW_INT_ACK_M \
  737. 0xFFFFFFFF // write 1 to clear corresponding
  738. // interrupt;0 = no effect
  739. #define COMMON_REG_NW_INT_ACK_NW_INT_ACK_S 0
  740. //******************************************************************************
  741. //
  742. // The following are defines for the bit fields in the
  743. // COMMON_REG_O_NW_INT_TRIG register.
  744. //
  745. //******************************************************************************
  746. #define COMMON_REG_NW_INT_TRIG_NW_INT_TRIG_M \
  747. 0xFFFFFFFF // Writing a 1 to a bit in this
  748. // register causes the the Host CPU
  749. // if enabled (not masked). This
  750. // register is self-clearing.
  751. // Writing 0 has no effect
  752. #define COMMON_REG_NW_INT_TRIG_NW_INT_TRIG_S 0
  753. //******************************************************************************
  754. //
  755. // The following are defines for the bit fields in the
  756. // COMMON_REG_O_NW_INT_STS_MASKED register.
  757. //
  758. //******************************************************************************
  759. #define COMMON_REG_NW_INT_STS_MASKED_NW_INT_STS_MASKED_M \
  760. 0xFFFFFFFF // 1= corresponding interrupt is
  761. // active and not masked. read is
  762. // non-destructive;0 = corresponding
  763. // interrupt is inactive or masked
  764. // by NW_INT mask
  765. #define COMMON_REG_NW_INT_STS_MASKED_NW_INT_STS_MASKED_S 0
  766. //******************************************************************************
  767. //
  768. // The following are defines for the bit fields in the
  769. // COMMON_REG_O_NW_INT_STS_RAW register.
  770. //
  771. //******************************************************************************
  772. #define COMMON_REG_NW_INT_STS_RAW_NW_INT_STS_RAW_M \
  773. 0xFFFFFFFF // 1= corresponding interrupt is
  774. // active. read is non-destructive;0
  775. // = corresponding interrupt is
  776. // inactive
  777. #define COMMON_REG_NW_INT_STS_RAW_NW_INT_STS_RAW_S 0
  778. //******************************************************************************
  779. //
  780. // The following are defines for the bit fields in the
  781. // COMMON_REG_O_APPS_INT_MASK register.
  782. //
  783. //******************************************************************************
  784. #define COMMON_REG_APPS_INT_MASK_APPS_INT_MASK_M \
  785. 0xFFFFFFFF // 1= disable corresponding
  786. // interrupt;0 = interrupt enabled
  787. #define COMMON_REG_APPS_INT_MASK_APPS_INT_MASK_S 0
  788. //******************************************************************************
  789. //
  790. // The following are defines for the bit fields in the
  791. // COMMON_REG_O_APPS_INT_MASK_SET register.
  792. //
  793. //******************************************************************************
  794. #define COMMON_REG_APPS_INT_MASK_SET_APPS_INT_MASK_SET_M \
  795. 0xFFFFFFFF // write 1 to set corresponding bit
  796. // in APPS_INT_MASK;0 = no effect
  797. #define COMMON_REG_APPS_INT_MASK_SET_APPS_INT_MASK_SET_S 0
  798. //******************************************************************************
  799. //
  800. // The following are defines for the bit fields in the
  801. // COMMON_REG_O_APPS_INT_MASK_CLR register.
  802. //
  803. //******************************************************************************
  804. #define COMMON_REG_APPS_INT_MASK_CLR_APPS_INT_MASK_CLR_M \
  805. 0xFFFFFFFF // write 1 to clear corresponding
  806. // bit in APPS_INT_MASK;0 = no
  807. // effect
  808. #define COMMON_REG_APPS_INT_MASK_CLR_APPS_INT_MASK_CLR_S 0
  809. //******************************************************************************
  810. //
  811. // The following are defines for the bit fields in the
  812. // COMMON_REG_O_APPS_INT_STS_CLR register.
  813. //
  814. //******************************************************************************
  815. #define COMMON_REG_APPS_INT_STS_CLR_APPS_INT_STS_CLR_M \
  816. 0xFFFFFFFF // write 1 to clear corresponding
  817. // interrupt; 0 = no effect;
  818. // interrupt is not lost if coincide
  819. // with write operation
  820. #define COMMON_REG_APPS_INT_STS_CLR_APPS_INT_STS_CLR_S 0
  821. //******************************************************************************
  822. //
  823. // The following are defines for the bit fields in the
  824. // COMMON_REG_O_APPS_INT_ACK register.
  825. //
  826. //******************************************************************************
  827. #define COMMON_REG_APPS_INT_ACK_APPS_INT_ACK_M \
  828. 0xFFFFFFFF // write 1 to clear corresponding
  829. // interrupt;0 = no effect
  830. #define COMMON_REG_APPS_INT_ACK_APPS_INT_ACK_S 0
  831. //******************************************************************************
  832. //
  833. // The following are defines for the bit fields in the
  834. // COMMON_REG_O_APPS_INT_TRIG register.
  835. //
  836. //******************************************************************************
  837. #define COMMON_REG_APPS_INT_TRIG_APPS_INT_TRIG_M \
  838. 0xFFFFFFFF // Writing a 1 to a bit in this
  839. // register causes the the Host CPU
  840. // if enabled (not masked). This
  841. // register is self-clearing.
  842. // Writing 0 has no effect
  843. #define COMMON_REG_APPS_INT_TRIG_APPS_INT_TRIG_S 0
  844. //******************************************************************************
  845. //
  846. // The following are defines for the bit fields in the
  847. // COMMON_REG_O_APPS_INT_STS_MASKED register.
  848. //
  849. //******************************************************************************
  850. #define COMMON_REG_APPS_INT_STS_MASKED_APPS_INT_STS_MASKED_M \
  851. 0xFFFFFFFF // 1= corresponding interrupt is
  852. // active and not masked. read is
  853. // non-destructive;0 = corresponding
  854. // interrupt is inactive or masked
  855. // by APPS_INT mask
  856. #define COMMON_REG_APPS_INT_STS_MASKED_APPS_INT_STS_MASKED_S 0
  857. //******************************************************************************
  858. //
  859. // The following are defines for the bit fields in the
  860. // COMMON_REG_O_APPS_INT_STS_RAW register.
  861. //
  862. //******************************************************************************
  863. #define COMMON_REG_APPS_INT_STS_RAW_APPS_INT_STS_RAW_M \
  864. 0xFFFFFFFF // 1= corresponding interrupt is
  865. // active. read is non-destructive;0
  866. // = corresponding interrupt is
  867. // inactive
  868. #define COMMON_REG_APPS_INT_STS_RAW_APPS_INT_STS_RAW_S 0
  869. //******************************************************************************
  870. //
  871. // The following are defines for the bit fields in the
  872. // COMMON_REG_O_IDMEM_TIM_Updated register.
  873. //
  874. //******************************************************************************
  875. #define COMMON_REG_IDMEM_TIM_Updated_TIM_UPDATED \
  876. 0x00000001 // toggle in this signal
  877. // indicatesIDMEM_TIM_UPDATE
  878. // register mentioned above is
  879. // updated.
  880. //******************************************************************************
  881. //
  882. // The following are defines for the bit fields in the
  883. // COMMON_REG_O_APPS_GPIO_TRIG_EN register.
  884. //
  885. //******************************************************************************
  886. #define COMMON_REG_APPS_GPIO_TRIG_EN_APPS_GPIO_TRIG_EN_M \
  887. 0x0000001F // APPS GPIO Trigger EN control.
  888. // Bit 0: when '1' enable GPIO 0
  889. // trigger. This bit enables trigger
  890. // for all GPIO 0 pins (GPIO 0 to
  891. // GPIO7). Bit 1: when '1' enable
  892. // GPIO 1 trigger. This bit enables
  893. // trigger for all GPIO 1 pins (
  894. // GPIO8 to GPIO15). Bit 2: when '1'
  895. // enable GPIO 2 trigger. This bit
  896. // enables trigger for all GPIO 2
  897. // pins (GPIO16 to GPIO23). Bit 3:
  898. // when '1' enable GPIO 3 trigger.
  899. // This bit enables trigger for all
  900. // GPIO 3 pins (GPIO24 to GPIO31).
  901. // Bit 4: when '1' enable GPIO 4
  902. // trigger. This bit enables trigger
  903. // for all GPIO 4 pins.(GPIO32 to
  904. // GPIO39)
  905. #define COMMON_REG_APPS_GPIO_TRIG_EN_APPS_GPIO_TRIG_EN_S 0
  906. //******************************************************************************
  907. //
  908. // The following are defines for the bit fields in the
  909. // COMMON_REG_O_EMU_DEBUG_REG register.
  910. //
  911. //******************************************************************************
  912. #define COMMON_REG_EMU_DEBUG_REG_EMU_DEBUG_REG_M \
  913. 0xFFFFFFFF // 0 th bit used for stalling APPS
  914. // DMA and 1st bit is used for
  915. // stalling NWP DMA for debug
  916. // purpose. Other bits are unused.
  917. #define COMMON_REG_EMU_DEBUG_REG_EMU_DEBUG_REG_S 0
  918. //******************************************************************************
  919. //
  920. // The following are defines for the bit fields in the
  921. // COMMON_REG_O_SEMAPHORE_STATUS2 register.
  922. //
  923. //******************************************************************************
  924. #define COMMON_REG_SEMAPHORE_STATUS2_SEMPAPHORE_STATUS2_M \
  925. 0x00FFFFFF // SEMAPHORE STATUS 23:22
  926. // :semaphore status of
  927. // apps_nw_semaphore11 21:20
  928. // :semaphore status of
  929. // apps_nw_semaphore11 19:18
  930. // :semaphore status of
  931. // apps_nw_semaphore10 17:16
  932. // :semaphore status of
  933. // apps_nw_semaphore9 15:14
  934. // :semaphore status of
  935. // apps_nw_semaphore8 13:12
  936. // :semaphore status of
  937. // apps_nw_semaphore7 11:10
  938. // :semaphore status of
  939. // apps_nw_semaphore6 9:8 :semaphore
  940. // status of apps_nw_semaphore5 7:6
  941. // :semaphore status of
  942. // apps_nw_semaphore4 5:4 :semaphore
  943. // status of apps_nw_semaphore3 3:2
  944. // :semaphore status of
  945. // apps_nw_semaphore2 1:0 :semaphore
  946. // status of apps_nw_semaphore1
  947. #define COMMON_REG_SEMAPHORE_STATUS2_SEMPAPHORE_STATUS2_S 0
  948. //******************************************************************************
  949. //
  950. // The following are defines for the bit fields in the
  951. // COMMON_REG_O_SEMAPHORE_PREV_OWNER1 register.
  952. //
  953. //******************************************************************************
  954. #define COMMON_REG_SEMAPHORE_PREV_OWNER1_SEMAPHORE_PREV_OWNER1_M \
  955. 0x0003FFFF // 1:0 : prvious owner of
  956. // i2c_properties_reg[1:0] 3:2 :
  957. // prvious owner of
  958. // spi_properties_reg[1:0] 5:4 :
  959. // prvious owner of
  960. // gpio_properties_reg[1:0] 9:8 :
  961. // prvious owner of
  962. // gpio_properties_reg[3:2] 11:10 :
  963. // prvious owner of
  964. // gpio_properties_reg[5:4] 13:12 :
  965. // prvious owner of
  966. // gpio_properties_reg[7:6] 15:14 :
  967. // prvious owner of
  968. // gpio_properties_reg[9:8] 17:16 :
  969. // prvious owner of
  970. // flash_control_reg[1:0]
  971. #define COMMON_REG_SEMAPHORE_PREV_OWNER1_SEMAPHORE_PREV_OWNER1_S 0
  972. //******************************************************************************
  973. //
  974. // The following are defines for the bit fields in the
  975. // COMMON_REG_O_SEMAPHORE_PREV_OWNER2 register.
  976. //
  977. //******************************************************************************
  978. #define COMMON_REG_SEMAPHORE_PREV_OWNER2_SEMAPHORE_PREV_OWNER2_M \
  979. 0x00FFFFFF // 1:0 : previous owner of
  980. // apps_nw_semaphore1_reg[1:0] 3:2 :
  981. // previous owner of
  982. // apps_nw_semaphore2_reg[1:0] 5:4 :
  983. // previous owner of
  984. // apps_nw_semaphore3_reg[1:0] 7:6 :
  985. // previous owner of
  986. // apps_nw_semaphore4_reg[1:0] 9:8 :
  987. // previous owner of
  988. // apps_nw_semaphore5_reg[1:0] 11:10
  989. // : previous owner of
  990. // apps_nw_semaphore6_reg[1:0] 13:12
  991. // : previous owner of
  992. // apps_nw_semaphore7_reg[1:0] 15:14
  993. // : previous owner of
  994. // apps_nw_semaphore8_reg[1:0] 17:16
  995. // : previous owner of
  996. // apps_nw_semaphore9_reg[1:0] 19:18
  997. // : previous owner of
  998. // apps_nw_semaphore10_reg[1:0]
  999. // 21:20 : previous owner of
  1000. // apps_nw_semaphore11_reg[1:0]
  1001. // 23:22 : previous owner of
  1002. // apps_nw_semaphore12_reg[1:0]
  1003. #define COMMON_REG_SEMAPHORE_PREV_OWNER2_SEMAPHORE_PREV_OWNER2_S 0
  1004. #endif // __HW_COMMON_REG_H__