cp_sysram_patch.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _CP_SYSRAM_PATCH_H_
  13. #define _CP_SYSRAM_PATCH_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_CP_SYSRAM_PATCH_BASE (0x14003000)
  17. typedef volatile struct
  18. {
  19. uint32_t patch00; // 0x00000000
  20. uint32_t patch01; // 0x00000004
  21. uint32_t patch02; // 0x00000008
  22. uint32_t patch03; // 0x0000000c
  23. uint32_t patch04; // 0x00000010
  24. uint32_t patch05; // 0x00000014
  25. uint32_t patch06; // 0x00000018
  26. uint32_t patch07; // 0x0000001c
  27. uint32_t patch08; // 0x00000020
  28. uint32_t patch09; // 0x00000024
  29. uint32_t patch10; // 0x00000028
  30. uint32_t patch11; // 0x0000002c
  31. uint32_t patch12; // 0x00000030
  32. uint32_t patch13; // 0x00000034
  33. uint32_t patch14; // 0x00000038
  34. uint32_t patch15; // 0x0000003c
  35. uint32_t patch16; // 0x00000040
  36. uint32_t patch17; // 0x00000044
  37. uint32_t patch18; // 0x00000048
  38. uint32_t patch19; // 0x0000004c
  39. uint32_t patch20; // 0x00000050
  40. uint32_t patch21; // 0x00000054
  41. uint32_t patch22; // 0x00000058
  42. uint32_t patch23; // 0x0000005c
  43. uint32_t patch24; // 0x00000060
  44. uint32_t patch25; // 0x00000064
  45. uint32_t patch26; // 0x00000068
  46. uint32_t patch27; // 0x0000006c
  47. uint32_t patch28; // 0x00000070
  48. uint32_t patch29; // 0x00000074
  49. uint32_t patch30; // 0x00000078
  50. uint32_t patch31; // 0x0000007c
  51. uint32_t pagespy0_cfg0; // 0x00000080
  52. uint32_t pagespy0_cfg1; // 0x00000084
  53. uint32_t pagespy1_cfg0; // 0x00000088
  54. uint32_t pagespy1_cfg1; // 0x0000008c
  55. uint32_t pagespy2_cfg0; // 0x00000090
  56. uint32_t pagespy2_cfg1; // 0x00000094
  57. uint32_t pagespy3_cfg0; // 0x00000098
  58. uint32_t pagespy3_cfg1; // 0x0000009c
  59. uint32_t pagespy0_sta0; // 0x000000a0
  60. uint32_t pagespy0_sta1; // 0x000000a4
  61. uint32_t pagespy1_sta0; // 0x000000a8
  62. uint32_t pagespy1_sta1; // 0x000000ac
  63. uint32_t pagespy2_sta0; // 0x000000b0
  64. uint32_t pagespy2_sta1; // 0x000000b4
  65. uint32_t pagespy3_sta0; // 0x000000b8
  66. uint32_t pagespy3_sta1; // 0x000000bc
  67. } HWP_CP_SYSRAM_PATCH_T;
  68. #define hwp_cpSysramPatch ((HWP_CP_SYSRAM_PATCH_T *)REG_ACCESS_ADDRESS(REG_CP_SYSRAM_PATCH_BASE))
  69. // patch00
  70. typedef union {
  71. uint32_t v;
  72. struct
  73. {
  74. uint32_t patch_addrs00 : 28; // [27:0]
  75. uint32_t patch_valid00 : 1; // [28]
  76. uint32_t __31_29 : 3; // [31:29]
  77. } b;
  78. } REG_CP_SYSRAM_PATCH_PATCH00_T;
  79. // patch01
  80. typedef union {
  81. uint32_t v;
  82. struct
  83. {
  84. uint32_t patch_addrs01 : 28; // [27:0]
  85. uint32_t patch_valid01 : 1; // [28]
  86. uint32_t __31_29 : 3; // [31:29]
  87. } b;
  88. } REG_CP_SYSRAM_PATCH_PATCH01_T;
  89. // patch02
  90. typedef union {
  91. uint32_t v;
  92. struct
  93. {
  94. uint32_t patch_addrs02 : 28; // [27:0]
  95. uint32_t patch_valid02 : 1; // [28]
  96. uint32_t __31_29 : 3; // [31:29]
  97. } b;
  98. } REG_CP_SYSRAM_PATCH_PATCH02_T;
  99. // patch03
  100. typedef union {
  101. uint32_t v;
  102. struct
  103. {
  104. uint32_t patch_addrs03 : 28; // [27:0]
  105. uint32_t patch_valid03 : 1; // [28]
  106. uint32_t __31_29 : 3; // [31:29]
  107. } b;
  108. } REG_CP_SYSRAM_PATCH_PATCH03_T;
  109. // patch04
  110. typedef union {
  111. uint32_t v;
  112. struct
  113. {
  114. uint32_t patch_addrs04 : 28; // [27:0]
  115. uint32_t patch_valid04 : 1; // [28]
  116. uint32_t __31_29 : 3; // [31:29]
  117. } b;
  118. } REG_CP_SYSRAM_PATCH_PATCH04_T;
  119. // patch05
  120. typedef union {
  121. uint32_t v;
  122. struct
  123. {
  124. uint32_t patch_addrs05 : 28; // [27:0]
  125. uint32_t patch_valid05 : 1; // [28]
  126. uint32_t __31_29 : 3; // [31:29]
  127. } b;
  128. } REG_CP_SYSRAM_PATCH_PATCH05_T;
  129. // patch06
  130. typedef union {
  131. uint32_t v;
  132. struct
  133. {
  134. uint32_t patch_addrs06 : 28; // [27:0]
  135. uint32_t patch_valid06 : 1; // [28]
  136. uint32_t __31_29 : 3; // [31:29]
  137. } b;
  138. } REG_CP_SYSRAM_PATCH_PATCH06_T;
  139. // patch07
  140. typedef union {
  141. uint32_t v;
  142. struct
  143. {
  144. uint32_t patch_addrs07 : 28; // [27:0]
  145. uint32_t patch_valid07 : 1; // [28]
  146. uint32_t __31_29 : 3; // [31:29]
  147. } b;
  148. } REG_CP_SYSRAM_PATCH_PATCH07_T;
  149. // patch08
  150. typedef union {
  151. uint32_t v;
  152. struct
  153. {
  154. uint32_t patch_addrs08 : 28; // [27:0]
  155. uint32_t patch_valid08 : 1; // [28]
  156. uint32_t __31_29 : 3; // [31:29]
  157. } b;
  158. } REG_CP_SYSRAM_PATCH_PATCH08_T;
  159. // patch09
  160. typedef union {
  161. uint32_t v;
  162. struct
  163. {
  164. uint32_t patch_addrs09 : 28; // [27:0]
  165. uint32_t patch_valid09 : 1; // [28]
  166. uint32_t __31_29 : 3; // [31:29]
  167. } b;
  168. } REG_CP_SYSRAM_PATCH_PATCH09_T;
  169. // patch10
  170. typedef union {
  171. uint32_t v;
  172. struct
  173. {
  174. uint32_t patch_addrs10 : 28; // [27:0]
  175. uint32_t patch_valid10 : 1; // [28]
  176. uint32_t __31_29 : 3; // [31:29]
  177. } b;
  178. } REG_CP_SYSRAM_PATCH_PATCH10_T;
  179. // patch11
  180. typedef union {
  181. uint32_t v;
  182. struct
  183. {
  184. uint32_t patch_addrs11 : 28; // [27:0]
  185. uint32_t patch_valid11 : 1; // [28]
  186. uint32_t __31_29 : 3; // [31:29]
  187. } b;
  188. } REG_CP_SYSRAM_PATCH_PATCH11_T;
  189. // patch12
  190. typedef union {
  191. uint32_t v;
  192. struct
  193. {
  194. uint32_t patch_addrs12 : 28; // [27:0]
  195. uint32_t patch_valid12 : 1; // [28]
  196. uint32_t __31_29 : 3; // [31:29]
  197. } b;
  198. } REG_CP_SYSRAM_PATCH_PATCH12_T;
  199. // patch13
  200. typedef union {
  201. uint32_t v;
  202. struct
  203. {
  204. uint32_t patch_addrs13 : 28; // [27:0]
  205. uint32_t patch_valid13 : 1; // [28]
  206. uint32_t __31_29 : 3; // [31:29]
  207. } b;
  208. } REG_CP_SYSRAM_PATCH_PATCH13_T;
  209. // patch14
  210. typedef union {
  211. uint32_t v;
  212. struct
  213. {
  214. uint32_t patch_addrs14 : 28; // [27:0]
  215. uint32_t patch_valid14 : 1; // [28]
  216. uint32_t __31_29 : 3; // [31:29]
  217. } b;
  218. } REG_CP_SYSRAM_PATCH_PATCH14_T;
  219. // patch15
  220. typedef union {
  221. uint32_t v;
  222. struct
  223. {
  224. uint32_t patch_addrs15 : 28; // [27:0]
  225. uint32_t patch_valid15 : 1; // [28]
  226. uint32_t __31_29 : 3; // [31:29]
  227. } b;
  228. } REG_CP_SYSRAM_PATCH_PATCH15_T;
  229. // patch16
  230. typedef union {
  231. uint32_t v;
  232. struct
  233. {
  234. uint32_t patch_addrs16 : 28; // [27:0]
  235. uint32_t patch_valid16 : 1; // [28]
  236. uint32_t __31_29 : 3; // [31:29]
  237. } b;
  238. } REG_CP_SYSRAM_PATCH_PATCH16_T;
  239. // patch17
  240. typedef union {
  241. uint32_t v;
  242. struct
  243. {
  244. uint32_t patch_addrs17 : 28; // [27:0]
  245. uint32_t patch_valid17 : 1; // [28]
  246. uint32_t __31_29 : 3; // [31:29]
  247. } b;
  248. } REG_CP_SYSRAM_PATCH_PATCH17_T;
  249. // patch18
  250. typedef union {
  251. uint32_t v;
  252. struct
  253. {
  254. uint32_t patch_addrs18 : 28; // [27:0]
  255. uint32_t patch_valid18 : 1; // [28]
  256. uint32_t __31_29 : 3; // [31:29]
  257. } b;
  258. } REG_CP_SYSRAM_PATCH_PATCH18_T;
  259. // patch19
  260. typedef union {
  261. uint32_t v;
  262. struct
  263. {
  264. uint32_t patch_addrs19 : 28; // [27:0]
  265. uint32_t patch_valid19 : 1; // [28]
  266. uint32_t __31_29 : 3; // [31:29]
  267. } b;
  268. } REG_CP_SYSRAM_PATCH_PATCH19_T;
  269. // patch20
  270. typedef union {
  271. uint32_t v;
  272. struct
  273. {
  274. uint32_t patch_addrs20 : 28; // [27:0]
  275. uint32_t patch_valid20 : 1; // [28]
  276. uint32_t __31_29 : 3; // [31:29]
  277. } b;
  278. } REG_CP_SYSRAM_PATCH_PATCH20_T;
  279. // patch21
  280. typedef union {
  281. uint32_t v;
  282. struct
  283. {
  284. uint32_t patch_addrs21 : 28; // [27:0]
  285. uint32_t patch_valid21 : 1; // [28]
  286. uint32_t __31_29 : 3; // [31:29]
  287. } b;
  288. } REG_CP_SYSRAM_PATCH_PATCH21_T;
  289. // patch22
  290. typedef union {
  291. uint32_t v;
  292. struct
  293. {
  294. uint32_t patch_addrs22 : 28; // [27:0]
  295. uint32_t patch_valid22 : 1; // [28]
  296. uint32_t __31_29 : 3; // [31:29]
  297. } b;
  298. } REG_CP_SYSRAM_PATCH_PATCH22_T;
  299. // patch23
  300. typedef union {
  301. uint32_t v;
  302. struct
  303. {
  304. uint32_t patch_addrs23 : 28; // [27:0]
  305. uint32_t patch_valid23 : 1; // [28]
  306. uint32_t __31_29 : 3; // [31:29]
  307. } b;
  308. } REG_CP_SYSRAM_PATCH_PATCH23_T;
  309. // patch24
  310. typedef union {
  311. uint32_t v;
  312. struct
  313. {
  314. uint32_t patch_addrs24 : 28; // [27:0]
  315. uint32_t patch_valid24 : 1; // [28]
  316. uint32_t __31_29 : 3; // [31:29]
  317. } b;
  318. } REG_CP_SYSRAM_PATCH_PATCH24_T;
  319. // patch25
  320. typedef union {
  321. uint32_t v;
  322. struct
  323. {
  324. uint32_t patch_addrs25 : 28; // [27:0]
  325. uint32_t patch_valid25 : 1; // [28]
  326. uint32_t __31_29 : 3; // [31:29]
  327. } b;
  328. } REG_CP_SYSRAM_PATCH_PATCH25_T;
  329. // patch26
  330. typedef union {
  331. uint32_t v;
  332. struct
  333. {
  334. uint32_t patch_addrs26 : 28; // [27:0]
  335. uint32_t patch_valid26 : 1; // [28]
  336. uint32_t __31_29 : 3; // [31:29]
  337. } b;
  338. } REG_CP_SYSRAM_PATCH_PATCH26_T;
  339. // patch27
  340. typedef union {
  341. uint32_t v;
  342. struct
  343. {
  344. uint32_t patch_addrs27 : 28; // [27:0]
  345. uint32_t patch_valid27 : 1; // [28]
  346. uint32_t __31_29 : 3; // [31:29]
  347. } b;
  348. } REG_CP_SYSRAM_PATCH_PATCH27_T;
  349. // patch28
  350. typedef union {
  351. uint32_t v;
  352. struct
  353. {
  354. uint32_t patch_addrs28 : 28; // [27:0]
  355. uint32_t patch_valid28 : 1; // [28]
  356. uint32_t __31_29 : 3; // [31:29]
  357. } b;
  358. } REG_CP_SYSRAM_PATCH_PATCH28_T;
  359. // patch29
  360. typedef union {
  361. uint32_t v;
  362. struct
  363. {
  364. uint32_t patch_addrs29 : 28; // [27:0]
  365. uint32_t patch_valid29 : 1; // [28]
  366. uint32_t __31_29 : 3; // [31:29]
  367. } b;
  368. } REG_CP_SYSRAM_PATCH_PATCH29_T;
  369. // patch30
  370. typedef union {
  371. uint32_t v;
  372. struct
  373. {
  374. uint32_t patch_addrs30 : 28; // [27:0]
  375. uint32_t patch_valid30 : 1; // [28]
  376. uint32_t __31_29 : 3; // [31:29]
  377. } b;
  378. } REG_CP_SYSRAM_PATCH_PATCH30_T;
  379. // patch31
  380. typedef union {
  381. uint32_t v;
  382. struct
  383. {
  384. uint32_t patch_addrs31 : 28; // [27:0]
  385. uint32_t patch_valid31 : 1; // [28]
  386. uint32_t __31_29 : 3; // [31:29]
  387. } b;
  388. } REG_CP_SYSRAM_PATCH_PATCH31_T;
  389. // pagespy0_cfg0
  390. typedef union {
  391. uint32_t v;
  392. struct
  393. {
  394. uint32_t pagespy_sta_addr0 : 28; // [27:0]
  395. uint32_t pagespy_detectw0 : 1; // [28]
  396. uint32_t pagespy_detectr0 : 1; // [29]
  397. uint32_t pagespy_enable0 : 1; // [30]
  398. uint32_t __31_31 : 1; // [31]
  399. } b;
  400. } REG_CP_SYSRAM_PATCH_PAGESPY0_CFG0_T;
  401. // pagespy0_cfg1
  402. typedef union {
  403. uint32_t v;
  404. struct
  405. {
  406. uint32_t pagespy_end_addr0 : 28; // [27:0]
  407. uint32_t __31_28 : 4; // [31:28]
  408. } b;
  409. } REG_CP_SYSRAM_PATCH_PAGESPY0_CFG1_T;
  410. // pagespy1_cfg0
  411. typedef union {
  412. uint32_t v;
  413. struct
  414. {
  415. uint32_t pagespy_sta_addr1 : 28; // [27:0]
  416. uint32_t pagespy_detectw1 : 1; // [28]
  417. uint32_t pagespy_detectr1 : 1; // [29]
  418. uint32_t pagespy_enable1 : 1; // [30]
  419. uint32_t __31_31 : 1; // [31]
  420. } b;
  421. } REG_CP_SYSRAM_PATCH_PAGESPY1_CFG0_T;
  422. // pagespy1_cfg1
  423. typedef union {
  424. uint32_t v;
  425. struct
  426. {
  427. uint32_t pagespy_end_addr1 : 28; // [27:0]
  428. uint32_t __31_28 : 4; // [31:28]
  429. } b;
  430. } REG_CP_SYSRAM_PATCH_PAGESPY1_CFG1_T;
  431. // pagespy2_cfg0
  432. typedef union {
  433. uint32_t v;
  434. struct
  435. {
  436. uint32_t pagespy_sta_addr2 : 28; // [27:0]
  437. uint32_t pagespy_detectw2 : 1; // [28]
  438. uint32_t pagespy_detectr2 : 1; // [29]
  439. uint32_t pagespy_enable2 : 1; // [30]
  440. uint32_t __31_31 : 1; // [31]
  441. } b;
  442. } REG_CP_SYSRAM_PATCH_PAGESPY2_CFG0_T;
  443. // pagespy2_cfg1
  444. typedef union {
  445. uint32_t v;
  446. struct
  447. {
  448. uint32_t pagespy_end_addr2 : 28; // [27:0]
  449. uint32_t __31_28 : 4; // [31:28]
  450. } b;
  451. } REG_CP_SYSRAM_PATCH_PAGESPY2_CFG1_T;
  452. // pagespy3_cfg0
  453. typedef union {
  454. uint32_t v;
  455. struct
  456. {
  457. uint32_t pagespy_sta_addr3 : 28; // [27:0]
  458. uint32_t pagespy_detectw3 : 1; // [28]
  459. uint32_t pagespy_detectr3 : 1; // [29]
  460. uint32_t pagespy_enable3 : 1; // [30]
  461. uint32_t __31_31 : 1; // [31]
  462. } b;
  463. } REG_CP_SYSRAM_PATCH_PAGESPY3_CFG0_T;
  464. // pagespy3_cfg1
  465. typedef union {
  466. uint32_t v;
  467. struct
  468. {
  469. uint32_t pagespy_end_addr3 : 28; // [27:0]
  470. uint32_t __31_28 : 4; // [31:28]
  471. } b;
  472. } REG_CP_SYSRAM_PATCH_PAGESPY3_CFG1_T;
  473. // pagespy0_sta0
  474. typedef union {
  475. uint32_t v;
  476. struct
  477. {
  478. uint32_t pagespy_aid0 : 16; // [15:0], read only
  479. uint32_t pagespy_hitw0 : 1; // [16], read only
  480. uint32_t pagespy_hitr0 : 1; // [17], read only
  481. uint32_t pagespy_status0 : 1; // [18], read only
  482. uint32_t __31_19 : 13; // [31:19]
  483. } b;
  484. } REG_CP_SYSRAM_PATCH_PAGESPY0_STA0_T;
  485. // pagespy1_sta0
  486. typedef union {
  487. uint32_t v;
  488. struct
  489. {
  490. uint32_t pagespy_aid1 : 16; // [15:0], read only
  491. uint32_t pagespy_hitw1 : 1; // [16], read only
  492. uint32_t pagespy_hitr1 : 1; // [17], read only
  493. uint32_t pagespy_status1 : 1; // [18], read only
  494. uint32_t __31_19 : 13; // [31:19]
  495. } b;
  496. } REG_CP_SYSRAM_PATCH_PAGESPY1_STA0_T;
  497. // pagespy2_sta0
  498. typedef union {
  499. uint32_t v;
  500. struct
  501. {
  502. uint32_t pagespy_aid2 : 16; // [15:0], read only
  503. uint32_t pagespy_hitw2 : 1; // [16], read only
  504. uint32_t pagespy_hitr2 : 1; // [17], read only
  505. uint32_t pagespy_status2 : 1; // [18], read only
  506. uint32_t __31_19 : 13; // [31:19]
  507. } b;
  508. } REG_CP_SYSRAM_PATCH_PAGESPY2_STA0_T;
  509. // pagespy3_sta0
  510. typedef union {
  511. uint32_t v;
  512. struct
  513. {
  514. uint32_t pagespy_aid3 : 16; // [15:0], read only
  515. uint32_t pagespy_hitw3 : 1; // [16], read only
  516. uint32_t pagespy_hitr3 : 1; // [17], read only
  517. uint32_t pagespy_status3 : 1; // [18], read only
  518. uint32_t __31_19 : 13; // [31:19]
  519. } b;
  520. } REG_CP_SYSRAM_PATCH_PAGESPY3_STA0_T;
  521. // patch00
  522. #define CP_SYSRAM_PATCH_PATCH_ADDRS00(n) (((n)&0xfffffff) << 0)
  523. #define CP_SYSRAM_PATCH_PATCH_VALID00 (1 << 28)
  524. // patch01
  525. #define CP_SYSRAM_PATCH_PATCH_ADDRS01(n) (((n)&0xfffffff) << 0)
  526. #define CP_SYSRAM_PATCH_PATCH_VALID01 (1 << 28)
  527. // patch02
  528. #define CP_SYSRAM_PATCH_PATCH_ADDRS02(n) (((n)&0xfffffff) << 0)
  529. #define CP_SYSRAM_PATCH_PATCH_VALID02 (1 << 28)
  530. // patch03
  531. #define CP_SYSRAM_PATCH_PATCH_ADDRS03(n) (((n)&0xfffffff) << 0)
  532. #define CP_SYSRAM_PATCH_PATCH_VALID03 (1 << 28)
  533. // patch04
  534. #define CP_SYSRAM_PATCH_PATCH_ADDRS04(n) (((n)&0xfffffff) << 0)
  535. #define CP_SYSRAM_PATCH_PATCH_VALID04 (1 << 28)
  536. // patch05
  537. #define CP_SYSRAM_PATCH_PATCH_ADDRS05(n) (((n)&0xfffffff) << 0)
  538. #define CP_SYSRAM_PATCH_PATCH_VALID05 (1 << 28)
  539. // patch06
  540. #define CP_SYSRAM_PATCH_PATCH_ADDRS06(n) (((n)&0xfffffff) << 0)
  541. #define CP_SYSRAM_PATCH_PATCH_VALID06 (1 << 28)
  542. // patch07
  543. #define CP_SYSRAM_PATCH_PATCH_ADDRS07(n) (((n)&0xfffffff) << 0)
  544. #define CP_SYSRAM_PATCH_PATCH_VALID07 (1 << 28)
  545. // patch08
  546. #define CP_SYSRAM_PATCH_PATCH_ADDRS08(n) (((n)&0xfffffff) << 0)
  547. #define CP_SYSRAM_PATCH_PATCH_VALID08 (1 << 28)
  548. // patch09
  549. #define CP_SYSRAM_PATCH_PATCH_ADDRS09(n) (((n)&0xfffffff) << 0)
  550. #define CP_SYSRAM_PATCH_PATCH_VALID09 (1 << 28)
  551. // patch10
  552. #define CP_SYSRAM_PATCH_PATCH_ADDRS10(n) (((n)&0xfffffff) << 0)
  553. #define CP_SYSRAM_PATCH_PATCH_VALID10 (1 << 28)
  554. // patch11
  555. #define CP_SYSRAM_PATCH_PATCH_ADDRS11(n) (((n)&0xfffffff) << 0)
  556. #define CP_SYSRAM_PATCH_PATCH_VALID11 (1 << 28)
  557. // patch12
  558. #define CP_SYSRAM_PATCH_PATCH_ADDRS12(n) (((n)&0xfffffff) << 0)
  559. #define CP_SYSRAM_PATCH_PATCH_VALID12 (1 << 28)
  560. // patch13
  561. #define CP_SYSRAM_PATCH_PATCH_ADDRS13(n) (((n)&0xfffffff) << 0)
  562. #define CP_SYSRAM_PATCH_PATCH_VALID13 (1 << 28)
  563. // patch14
  564. #define CP_SYSRAM_PATCH_PATCH_ADDRS14(n) (((n)&0xfffffff) << 0)
  565. #define CP_SYSRAM_PATCH_PATCH_VALID14 (1 << 28)
  566. // patch15
  567. #define CP_SYSRAM_PATCH_PATCH_ADDRS15(n) (((n)&0xfffffff) << 0)
  568. #define CP_SYSRAM_PATCH_PATCH_VALID15 (1 << 28)
  569. // patch16
  570. #define CP_SYSRAM_PATCH_PATCH_ADDRS16(n) (((n)&0xfffffff) << 0)
  571. #define CP_SYSRAM_PATCH_PATCH_VALID16 (1 << 28)
  572. // patch17
  573. #define CP_SYSRAM_PATCH_PATCH_ADDRS17(n) (((n)&0xfffffff) << 0)
  574. #define CP_SYSRAM_PATCH_PATCH_VALID17 (1 << 28)
  575. // patch18
  576. #define CP_SYSRAM_PATCH_PATCH_ADDRS18(n) (((n)&0xfffffff) << 0)
  577. #define CP_SYSRAM_PATCH_PATCH_VALID18 (1 << 28)
  578. // patch19
  579. #define CP_SYSRAM_PATCH_PATCH_ADDRS19(n) (((n)&0xfffffff) << 0)
  580. #define CP_SYSRAM_PATCH_PATCH_VALID19 (1 << 28)
  581. // patch20
  582. #define CP_SYSRAM_PATCH_PATCH_ADDRS20(n) (((n)&0xfffffff) << 0)
  583. #define CP_SYSRAM_PATCH_PATCH_VALID20 (1 << 28)
  584. // patch21
  585. #define CP_SYSRAM_PATCH_PATCH_ADDRS21(n) (((n)&0xfffffff) << 0)
  586. #define CP_SYSRAM_PATCH_PATCH_VALID21 (1 << 28)
  587. // patch22
  588. #define CP_SYSRAM_PATCH_PATCH_ADDRS22(n) (((n)&0xfffffff) << 0)
  589. #define CP_SYSRAM_PATCH_PATCH_VALID22 (1 << 28)
  590. // patch23
  591. #define CP_SYSRAM_PATCH_PATCH_ADDRS23(n) (((n)&0xfffffff) << 0)
  592. #define CP_SYSRAM_PATCH_PATCH_VALID23 (1 << 28)
  593. // patch24
  594. #define CP_SYSRAM_PATCH_PATCH_ADDRS24(n) (((n)&0xfffffff) << 0)
  595. #define CP_SYSRAM_PATCH_PATCH_VALID24 (1 << 28)
  596. // patch25
  597. #define CP_SYSRAM_PATCH_PATCH_ADDRS25(n) (((n)&0xfffffff) << 0)
  598. #define CP_SYSRAM_PATCH_PATCH_VALID25 (1 << 28)
  599. // patch26
  600. #define CP_SYSRAM_PATCH_PATCH_ADDRS26(n) (((n)&0xfffffff) << 0)
  601. #define CP_SYSRAM_PATCH_PATCH_VALID26 (1 << 28)
  602. // patch27
  603. #define CP_SYSRAM_PATCH_PATCH_ADDRS27(n) (((n)&0xfffffff) << 0)
  604. #define CP_SYSRAM_PATCH_PATCH_VALID27 (1 << 28)
  605. // patch28
  606. #define CP_SYSRAM_PATCH_PATCH_ADDRS28(n) (((n)&0xfffffff) << 0)
  607. #define CP_SYSRAM_PATCH_PATCH_VALID28 (1 << 28)
  608. // patch29
  609. #define CP_SYSRAM_PATCH_PATCH_ADDRS29(n) (((n)&0xfffffff) << 0)
  610. #define CP_SYSRAM_PATCH_PATCH_VALID29 (1 << 28)
  611. // patch30
  612. #define CP_SYSRAM_PATCH_PATCH_ADDRS30(n) (((n)&0xfffffff) << 0)
  613. #define CP_SYSRAM_PATCH_PATCH_VALID30 (1 << 28)
  614. // patch31
  615. #define CP_SYSRAM_PATCH_PATCH_ADDRS31(n) (((n)&0xfffffff) << 0)
  616. #define CP_SYSRAM_PATCH_PATCH_VALID31 (1 << 28)
  617. // pagespy0_cfg0
  618. #define CP_SYSRAM_PATCH_PAGESPY_STA_ADDR0(n) (((n)&0xfffffff) << 0)
  619. #define CP_SYSRAM_PATCH_PAGESPY_DETECTW0 (1 << 28)
  620. #define CP_SYSRAM_PATCH_PAGESPY_DETECTR0 (1 << 29)
  621. #define CP_SYSRAM_PATCH_PAGESPY_ENABLE0 (1 << 30)
  622. // pagespy0_cfg1
  623. #define CP_SYSRAM_PATCH_PAGESPY_END_ADDR0(n) (((n)&0xfffffff) << 0)
  624. // pagespy1_cfg0
  625. #define CP_SYSRAM_PATCH_PAGESPY_STA_ADDR1(n) (((n)&0xfffffff) << 0)
  626. #define CP_SYSRAM_PATCH_PAGESPY_DETECTW1 (1 << 28)
  627. #define CP_SYSRAM_PATCH_PAGESPY_DETECTR1 (1 << 29)
  628. #define CP_SYSRAM_PATCH_PAGESPY_ENABLE1 (1 << 30)
  629. // pagespy1_cfg1
  630. #define CP_SYSRAM_PATCH_PAGESPY_END_ADDR1(n) (((n)&0xfffffff) << 0)
  631. // pagespy2_cfg0
  632. #define CP_SYSRAM_PATCH_PAGESPY_STA_ADDR2(n) (((n)&0xfffffff) << 0)
  633. #define CP_SYSRAM_PATCH_PAGESPY_DETECTW2 (1 << 28)
  634. #define CP_SYSRAM_PATCH_PAGESPY_DETECTR2 (1 << 29)
  635. #define CP_SYSRAM_PATCH_PAGESPY_ENABLE2 (1 << 30)
  636. // pagespy2_cfg1
  637. #define CP_SYSRAM_PATCH_PAGESPY_END_ADDR2(n) (((n)&0xfffffff) << 0)
  638. // pagespy3_cfg0
  639. #define CP_SYSRAM_PATCH_PAGESPY_STA_ADDR3(n) (((n)&0xfffffff) << 0)
  640. #define CP_SYSRAM_PATCH_PAGESPY_DETECTW3 (1 << 28)
  641. #define CP_SYSRAM_PATCH_PAGESPY_DETECTR3 (1 << 29)
  642. #define CP_SYSRAM_PATCH_PAGESPY_ENABLE3 (1 << 30)
  643. // pagespy3_cfg1
  644. #define CP_SYSRAM_PATCH_PAGESPY_END_ADDR3(n) (((n)&0xfffffff) << 0)
  645. // pagespy0_sta0
  646. #define CP_SYSRAM_PATCH_PAGESPY_AID0(n) (((n)&0xffff) << 0)
  647. #define CP_SYSRAM_PATCH_PAGESPY_HITW0 (1 << 16)
  648. #define CP_SYSRAM_PATCH_PAGESPY_HITR0 (1 << 17)
  649. #define CP_SYSRAM_PATCH_PAGESPY_STATUS0 (1 << 18)
  650. // pagespy1_sta0
  651. #define CP_SYSRAM_PATCH_PAGESPY_AID1(n) (((n)&0xffff) << 0)
  652. #define CP_SYSRAM_PATCH_PAGESPY_HITW1 (1 << 16)
  653. #define CP_SYSRAM_PATCH_PAGESPY_HITR1 (1 << 17)
  654. #define CP_SYSRAM_PATCH_PAGESPY_STATUS1 (1 << 18)
  655. // pagespy2_sta0
  656. #define CP_SYSRAM_PATCH_PAGESPY_AID2(n) (((n)&0xffff) << 0)
  657. #define CP_SYSRAM_PATCH_PAGESPY_HITW2 (1 << 16)
  658. #define CP_SYSRAM_PATCH_PAGESPY_HITR2 (1 << 17)
  659. #define CP_SYSRAM_PATCH_PAGESPY_STATUS2 (1 << 18)
  660. // pagespy3_sta0
  661. #define CP_SYSRAM_PATCH_PAGESPY_AID3(n) (((n)&0xffff) << 0)
  662. #define CP_SYSRAM_PATCH_PAGESPY_HITW3 (1 << 16)
  663. #define CP_SYSRAM_PATCH_PAGESPY_HITR3 (1 << 17)
  664. #define CP_SYSRAM_PATCH_PAGESPY_STATUS3 (1 << 18)
  665. #endif // _CP_SYSRAM_PATCH_H_