rcar_def.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. /*
  2. * Copyright (c) 2015-2023, Renesas Electronics Corporation. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef RCAR_DEF_H
  7. #define RCAR_DEF_H
  8. #include <common/tbbr/tbbr_img_def.h>
  9. #include <lib/utils_def.h>
  10. #define RCAR_PRIMARY_CPU 0x0
  11. #define RCAR_TRUSTED_SRAM_BASE 0x44000000
  12. #define RCAR_TRUSTED_SRAM_SIZE 0x0003E000
  13. #define RCAR_SHARED_MEM_BASE (RCAR_TRUSTED_SRAM_BASE + \
  14. RCAR_TRUSTED_SRAM_SIZE)
  15. #define RCAR_SHARED_MEM_SIZE U(0x00001000)
  16. #define FLASH0_BASE U(0x08000000)
  17. #define FLASH0_SIZE U(0x04000000)
  18. #define FLASH_MEMORY_SIZE U(0x04000000) /* hyper flash */
  19. #define FLASH_TRANS_SIZE_UNIT U(0x00000100)
  20. #define DEVICE_RCAR_BASE U(0xE6000000)
  21. #define DEVICE_RCAR_SIZE U(0x00300000)
  22. #define DEVICE_RCAR_BASE2 U(0xE6360000)
  23. #define DEVICE_RCAR_SIZE2 U(0x19CA0000)
  24. #define DEVICE_SRAM_BASE U(0xE6300000)
  25. #define DEVICE_SRAM_SIZE U(0x00002000)
  26. #define DEVICE_SRAM_STACK_BASE (DEVICE_SRAM_BASE + DEVICE_SRAM_SIZE)
  27. #define DEVICE_SRAM_STACK_SIZE U(0x00001000)
  28. #define DRAM_LIMIT ULL(0x0000010000000000)
  29. #define DRAM1_BASE U(0x40000000)
  30. #define DRAM1_SIZE U(0x80000000)
  31. #define DRAM1_NS_BASE (DRAM1_BASE + U(0x08000000))
  32. #define DRAM1_NS_SIZE (DRAM1_SIZE - DRAM1_NS_BASE)
  33. #define DRAM_40BIT_BASE ULL(0x0400000000)
  34. #define DRAM_40BIT_SIZE ULL(0x0400000000)
  35. #define DRAM_PROTECTED_BASE ULL(0x43F00000)
  36. #define DRAM_40BIT_PROTECTED_BASE ULL(0x0403F00000)
  37. #define DRAM_PROTECTED_SIZE ULL(0x03F00000)
  38. #define RCAR_BL31_CRASH_BASE U(0x4403F000)
  39. #define RCAR_BL31_CRASH_SIZE U(0x00001000)
  40. /* Entrypoint mailboxes */
  41. #define MBOX_BASE RCAR_SHARED_MEM_BASE
  42. #define MBOX_SIZE 0x200
  43. /* Base address where parameters to BL31 are stored */
  44. #define PARAMS_BASE (MBOX_BASE + MBOX_SIZE)
  45. #define BOOT_KIND_BASE (RCAR_SHARED_MEM_BASE + \
  46. RCAR_SHARED_MEM_SIZE - 0x100)
  47. /*
  48. * The number of regions like RO(code), coherent and data required by
  49. * different BL stages which need to be mapped in the MMU
  50. */
  51. #if USE_COHERENT_MEM
  52. #define RCAR_BL_REGIONS (3)
  53. #else
  54. #define RCAR_BL_REGIONS (2)
  55. #endif
  56. /*
  57. * The RCAR_MAX_MMAP_REGIONS depends on the number of entries in rcar_mmap[]
  58. * defined for each BL stage in rcar_common.c.
  59. */
  60. #if IMAGE_BL2
  61. #define RCAR_MMAP_ENTRIES (9)
  62. #endif
  63. #if IMAGE_BL31
  64. #define RCAR_MMAP_ENTRIES (9)
  65. #endif
  66. #if IMAGE_BL2
  67. #define REG1_BASE U(0xE6400000)
  68. #define REG1_SIZE U(0x04C00000)
  69. #define ROM0_BASE U(0xEB100000)
  70. #define ROM0_SIZE U(0x00028000)
  71. #define REG2_BASE U(0xEC000000)
  72. #define REG2_SIZE U(0x14000000)
  73. #endif
  74. /* BL33 */
  75. #define NS_IMAGE_OFFSET (DRAM1_BASE + U(0x09000000))
  76. /* BL31 */
  77. #define RCAR_DEVICE_BASE DEVICE_RCAR_BASE
  78. #define RCAR_DEVICE_SIZE (0x1A000000)
  79. #define RCAR_LOG_RES_SIZE (64)
  80. #define RCAR_LOG_HEADER_SIZE (16)
  81. #define RCAR_LOG_OTHER_SIZE (RCAR_LOG_HEADER_SIZE + \
  82. RCAR_LOG_RES_SIZE)
  83. #define RCAR_BL31_LOG_MAX (RCAR_BL31_LOG_SIZE - \
  84. RCAR_LOG_OTHER_SIZE)
  85. #define RCAR_CRASH_STACK RCAR_BL31_CRASH_BASE
  86. #define AARCH64_SPACE_BASE ULL(0x00000000000)
  87. #define AARCH64_SPACE_SIZE ULL(0x10000000000)
  88. /* CCI related constants */
  89. #define CCI500_BASE U(0xF1200000)
  90. #define CCI500_CLUSTER0_SL_IFACE_IX (2)
  91. #define CCI500_CLUSTER1_SL_IFACE_IX (3)
  92. #define CCI500_CLUSTER0_SL_IFACE_IX_FOR_M3 (1)
  93. #define CCI500_CLUSTER1_SL_IFACE_IX_FOR_M3 (2)
  94. #define RCAR_CCI_BASE CCI500_BASE
  95. /* GIC */
  96. #define RCAR_GICD_BASE U(0xF1010000)
  97. #define RCAR_GICR_BASE U(0xF1010000)
  98. #define RCAR_GICC_BASE U(0xF1020000)
  99. #define RCAR_GICH_BASE U(0xF1040000)
  100. #define RCAR_GICV_BASE U(0xF1060000)
  101. #define ARM_IRQ_SEC_PHY_TIMER U(29)
  102. #define ARM_IRQ_SEC_SGI_0 U(8)
  103. #define ARM_IRQ_SEC_SGI_1 U(9)
  104. #define ARM_IRQ_SEC_SGI_2 U(10)
  105. #define ARM_IRQ_SEC_SGI_3 U(11)
  106. #define ARM_IRQ_SEC_SGI_4 U(12)
  107. #define ARM_IRQ_SEC_SGI_5 U(13)
  108. #define ARM_IRQ_SEC_SGI_6 U(14)
  109. #define ARM_IRQ_SEC_SGI_7 U(15)
  110. #define ARM_IRQ_SEC_RPC U(70)
  111. #define ARM_IRQ_SEC_TIMER U(166)
  112. #define ARM_IRQ_SEC_TIMER_UP U(171)
  113. #define ARM_IRQ_SEC_WDT U(173)
  114. #define ARM_IRQ_SEC_CRYPT U(102)
  115. #define ARM_IRQ_SEC_CRYPT_SecPKA U(97)
  116. #define ARM_IRQ_SEC_CRYPT_PubPKA U(98)
  117. /* Timer control */
  118. #define RCAR_CNTC_BASE U(0xE6080000)
  119. /* Reset */
  120. #define RCAR_MODEMR U(0xE6160060) /* Mode pin */
  121. #define RCAR_CA57RESCNT U(0xE6160040) /* Reset control A57 */
  122. #define RCAR_CA53RESCNT U(0xE6160044) /* Reset control A53 */
  123. #define RCAR_SRESCR U(0xE6160110) /* Soft Power On Reset */
  124. #define RCAR_CA53WUPCR U(0xE6151010) /* Wake-up control A53 */
  125. #define RCAR_CA57WUPCR U(0xE6152010) /* Wake-up control A57 */
  126. #define RCAR_CA53PSTR U(0xE6151040) /* Power status A53 */
  127. #define RCAR_CA57PSTR U(0xE6152040) /* Power status A57 */
  128. #define RCAR_CA53CPU0CR U(0xE6151100) /* CPU control A53 */
  129. #define RCAR_CA57CPU0CR U(0xE6152100) /* CPU control A57 */
  130. #define RCAR_CA53CPUCMCR U(0xE6151184) /* Common power A53 */
  131. #define RCAR_CA57CPUCMCR U(0xE6152184) /* Common power A57 */
  132. #define RCAR_WUPMSKCA57 U(0xE6180014) /* Wake-up mask A57 */
  133. #define RCAR_WUPMSKCA53 U(0xE6180018) /* Wake-up mask A53 */
  134. /* SYSC */
  135. #define RCAR_PWRSR3 U(0xE6180140) /* Power stat A53-SCU */
  136. #define RCAR_PWRSR5 U(0xE61801C0) /* Power stat A57-SCU */
  137. #define RCAR_SYSCIER U(0xE618000C) /* Interrupt enable */
  138. #define RCAR_SYSCIMR U(0xE6180010) /* Interrupt mask */
  139. #define RCAR_SYSCSR U(0xE6180000) /* SYSC status */
  140. #define RCAR_PWRONCR3 U(0xE618014C) /* Power resume A53-SCU */
  141. #define RCAR_PWRONCR5 U(0xE61801CC) /* Power resume A57-SCU */
  142. #define RCAR_PWROFFCR3 U(0xE6180144) /* Power shutoff A53-SCU */
  143. #define RCAR_PWROFFCR5 U(0xE61801C4) /* Power shutoff A57-SCU */
  144. #define RCAR_PWRER3 U(0xE6180154) /* shutoff/resume error */
  145. #define RCAR_PWRER5 U(0xE61801D4) /* shutoff/resume error */
  146. #define RCAR_SYSCISR U(0xE6180004) /* Interrupt status */
  147. #define RCAR_SYSCISCR U(0xE6180008) /* Interrupt stat clear */
  148. #define RCAR_SYSCEXTMASK U(0xE61802F8) /* External Request Mask */
  149. /* H3/H3-N, M3 v3.0, M3-N, E3 */
  150. /* Product register */
  151. #define RCAR_PRR U(0xFFF00044)
  152. #define RCAR_M3_CUT_VER11 U(0x00000010) /* M3 Ver.1.1/Ver.1.2 */
  153. #define RCAR_D3_CUT_VER10 U(0x00000000) /* D3 Ver.1.0 */
  154. #define RCAR_D3_CUT_VER11 U(0x00000010) /* D3 Ver.1.1 */
  155. #define RCAR_MAJOR_MASK U(0x000000F0)
  156. #define RCAR_MINOR_MASK U(0x0000000F)
  157. #define PRR_PRODUCT_SHIFT U(8)
  158. #define RCAR_MAJOR_SHIFT U(4)
  159. #define RCAR_MINOR_SHIFT U(0)
  160. #define RCAR_MAJOR_OFFSET U(1)
  161. #define RCAR_M3_MINOR_OFFSET U(2)
  162. #define PRR_PRODUCT_H3_CUT10 (PRR_PRODUCT_H3 | U(0x00)) /* 1.0 */
  163. #define PRR_PRODUCT_H3_CUT11 (PRR_PRODUCT_H3 | U(0x01)) /* 1.1 */
  164. #define PRR_PRODUCT_H3_CUT20 (PRR_PRODUCT_H3 | U(0x10)) /* 2.0 */
  165. #define PRR_PRODUCT_M3_CUT10 (PRR_PRODUCT_M3 | U(0x00)) /* 1.0 */
  166. #define PRR_PRODUCT_M3_CUT11 (PRR_PRODUCT_M3 | U(0x10))
  167. #define PRR 0xFFF00044U
  168. #define PRR_PRODUCT_MASK 0x00007F00U
  169. #define PRR_CUT_MASK 0x000000FFU
  170. #define PRR_PRODUCT_H3 0x00004F00U /* R-Car H3 */
  171. #define PRR_PRODUCT_M3 0x00005200U /* R-Car M3-W */
  172. #define PRR_PRODUCT_V3M 0x00005400U /* R-Car V3M */
  173. #define PRR_PRODUCT_M3N 0x00005500U /* R-Car M3-N */
  174. #define PRR_PRODUCT_V3H 0x00005600U /* R-Car V3H */
  175. #define PRR_PRODUCT_E3 0x00005700U /* R-Car E3 */
  176. #define PRR_PRODUCT_D3 0x00005800U /* R-Car D3 */
  177. #define PRR_PRODUCT_10 0x00U /* Ver.1.0 */
  178. #define PRR_PRODUCT_11 0x01U /* Ver.1.1 */
  179. #define PRR_PRODUCT_20 0x10U /* Ver.2.0 */
  180. #define PRR_PRODUCT_21 0x11U /* Ver.2.1 */
  181. #define PRR_PRODUCT_30 0x20U /* Ver.3.0 */
  182. #define RCAR_CPU_MASK_CA57 U(0x80000000)
  183. #define RCAR_CPU_MASK_CA53 U(0x04000000)
  184. #define RCAR_CPU_HAVE_CA57 U(0x00000000)
  185. #define RCAR_CPU_HAVE_CA53 U(0x00000000)
  186. #define RCAR_SSCG_MASK U(0x1000) /* MD12 */
  187. #define RCAR_SSCG_ENABLE U(0x1000)
  188. /* MD pin information */
  189. #define MODEMR_BOOT_CPU_MASK U(0x000000C0)
  190. #define MODEMR_BOOT_CPU_CR7 U(0x000000C0)
  191. #define MODEMR_BOOT_CPU_CA57 U(0x00000000)
  192. #define MODEMR_BOOT_CPU_CA53 U(0x00000040)
  193. #define MODEMR_BOOT_DEV_MASK U(0x0000001E)
  194. #define MODEMR_BOOT_DEV_HYPERFLASH160 U(0x00000004)
  195. #define MODEMR_BOOT_DEV_HYPERFLASH80 U(0x00000006)
  196. #define MODEMR_BOOT_DEV_QSPI_FLASH40 U(0x00000008)
  197. #define MODEMR_BOOT_DEV_QSPI_FLASH80 U(0x0000000C)
  198. #define MODEMR_BOOT_DEV_EMMC_25X1 U(0x0000000A)
  199. #define MODEMR_BOOT_DEV_EMMC_50X8 U(0x0000001A)
  200. #define MODEMR_BOOT_PLL_MASK U(0x00006000)
  201. #define MODEMR_BOOT_PLL_SHIFT U(13)
  202. /* Memory mapped Generic timer interfaces */
  203. #define ARM_SYS_CNTCTL_BASE RCAR_CNTC_BASE
  204. /* MODEMR PLL masks and bitfield values */
  205. #define CHECK_MD13_MD14 U(0x6000)
  206. #define MD14_MD13_TYPE_0 U(0x0000) /* MD14=0 MD13=0 */
  207. #define MD14_MD13_TYPE_1 U(0x2000) /* MD14=0 MD13=1 */
  208. #define MD14_MD13_TYPE_2 U(0x4000) /* MD14=1 MD13=0 */
  209. #define MD14_MD13_TYPE_3 U(0x6000) /* MD14=1 MD13=1 */
  210. /* Frequency of EXTAL(Hz) */
  211. #define EXTAL_MD14_MD13_TYPE_0 U(8333300) /* MD14=0 MD13=0 */
  212. #define EXTAL_MD14_MD13_TYPE_1 U(10000000) /* MD14=0 MD13=1 */
  213. #define EXTAL_MD14_MD13_TYPE_2 U(12500000) /* MD14=1 MD13=0 */
  214. #define EXTAL_MD14_MD13_TYPE_3 U(16666600) /* MD14=1 MD13=1 */
  215. #define EXTAL_SALVATOR_XS U(8320000) /* Salvator-XS */
  216. #define EXTAL_EBISU U(24000000) /* Ebisu */
  217. #define EXTAL_DRAAK U(24000000) /* Draak */
  218. /* CPG write protect registers */
  219. #define CPGWPR_PASSWORD (0x5A5AFFFFU)
  220. #define CPGWPCR_PASSWORD (0xA5A50000U)
  221. /* CA5x Debug Resource control registers */
  222. #define CPG_CA57DBGRCR (CPG_BASE + 0x2180U)
  223. #define CPG_CA53DBGRCR (CPG_BASE + 0x1180U)
  224. #define DBGCPUPREN ((uint32_t)1U << 19U)
  225. #define CPG_PLL0CR (CPG_BASE + 0x00D8U)
  226. #define CPG_PLL2CR (CPG_BASE + 0x002CU)
  227. #define CPG_PLL4CR (CPG_BASE + 0x01F4U)
  228. #define CPG_CPGWPCR (CPG_BASE + 0x0904U)
  229. /* RST Registers */
  230. #define RST_BASE (0xE6160000U)
  231. #define RST_WDTRSTCR (RST_BASE + 0x0054U)
  232. #define RST_MODEMR (RST_BASE + 0x0060U)
  233. #define WDTRSTCR_PASSWORD (0xA55A0000U)
  234. #define WDTRSTCR_RWDT_RSTMSK ((uint32_t)1U << 0U)
  235. /* MFIS Registers */
  236. #define MFISWPCNTR_PASSWORD (0xACCE0000U)
  237. #define MFISWPCNTR (0xE6260900U)
  238. /* IPMMU registers */
  239. #define IPMMU_MM_BASE (0xE67B0000U)
  240. #define IPMMUMM_IMSCTLR (IPMMU_MM_BASE + 0x0500U)
  241. #define IPMMUMM_IMAUXCTLR (IPMMU_MM_BASE + 0x0504U)
  242. #define IPMMUMM_IMSCTLR_ENABLE (0xC0000000U)
  243. #define IPMMUMM_IMAUXCTLR_NMERGE40_BIT (0x01000000U)
  244. #define IMSCTLR_DISCACHE (0xE0000000U)
  245. #define IPMMU_VP0_BASE (0xFE990000U)
  246. #define IPMMUVP0_IMSCTLR (IPMMU_VP0_BASE + 0x0500U)
  247. #define IPMMU_VI0_BASE (0xFEBD0000U)
  248. #define IPMMUVI0_IMSCTLR (IPMMU_VI0_BASE + 0x0500U)
  249. #define IPMMU_VI1_BASE (0xFEBE0000U)
  250. #define IPMMUVI1_IMSCTLR (IPMMU_VI1_BASE + 0x0500U)
  251. #define IPMMU_PV0_BASE (0xFD800000U)
  252. #define IPMMUPV0_IMSCTLR (IPMMU_PV0_BASE + 0x0500U)
  253. #define IPMMU_PV1_BASE (0xFD950000U)
  254. #define IPMMUPV1_IMSCTLR (IPMMU_PV1_BASE + 0x0500U)
  255. #define IPMMU_PV2_BASE (0xFD960000U)
  256. #define IPMMUPV2_IMSCTLR (IPMMU_PV2_BASE + 0x0500U)
  257. #define IPMMU_PV3_BASE (0xFD970000U)
  258. #define IPMMUPV3_IMSCTLR (IPMMU_PV3_BASE + 0x0500U)
  259. #define IPMMU_HC_BASE (0xE6570000U)
  260. #define IPMMUHC_IMSCTLR (IPMMU_HC_BASE + 0x0500U)
  261. #define IPMMU_RT_BASE (0xFFC80000U)
  262. #define IPMMURT_IMSCTLR (IPMMU_RT_BASE + 0x0500U)
  263. #define IPMMU_MP_BASE (0xEC670000U)
  264. #define IPMMUMP_IMSCTLR (IPMMU_MP_BASE + 0x0500U)
  265. #define IPMMU_DS0_BASE (0xE6740000U)
  266. #define IPMMUDS0_IMSCTLR (IPMMU_DS0_BASE + 0x0500U)
  267. #define IPMMU_DS1_BASE (0xE7740000U)
  268. #define IPMMUDS1_IMSCTLR (IPMMU_DS1_BASE + 0x0500U)
  269. /* ARMREG registers */
  270. #define P_ARMREG_SEC_CTRL (0xE62711F0U)
  271. #define P_ARMREG_SEC_CTRL_PROT (0x00000001U)
  272. /* MIDR */
  273. #define MIDR_CA57 (0x0D07U << MIDR_PN_SHIFT)
  274. #define MIDR_CA53 (0x0D03U << MIDR_PN_SHIFT)
  275. /* for SuspendToRAM */
  276. #define GPIO_BASE (0xE6050000U)
  277. #define GPIO_INDT1 (GPIO_BASE + 0x100CU)
  278. #define GPIO_INDT3 (GPIO_BASE + 0x300CU)
  279. #define GPIO_INDT6 (GPIO_BASE + 0x540CU)
  280. #define GPIO_OUTDT1 (GPIO_BASE + 0x1008U)
  281. #define GPIO_OUTDT3 (GPIO_BASE + 0x3008U)
  282. #define GPIO_OUTDT6 (GPIO_BASE + 0x5408U)
  283. #define RCAR_COLD_BOOT (0x00U)
  284. #define RCAR_WARM_BOOT (0x01U)
  285. #if PMIC_ROHM_BD9571 && RCAR_SYSTEM_RESET_KEEPON_DDR
  286. #define KEEP10_MAGIC (0x55U)
  287. #endif
  288. /* lossy registers */
  289. #define LOSSY_PARAMS_BASE (0x47FD7000U)
  290. #define AXI_DCMPAREACRA0 (0xE6784100U)
  291. #define AXI_DCMPAREACRB0 (0xE6784104U)
  292. #define LOSSY_ENABLE (0x80000000U)
  293. #define LOSSY_DISABLE (0x00000000U)
  294. #define LOSSY_FMT_YUVPLANAR (0x00000000U)
  295. #define LOSSY_FMT_YUV422INTLV (0x20000000U)
  296. #define LOSSY_FMT_ARGB8888 (0x40000000U)
  297. #define LOSSY_ST_ADDR0 (0x54000000U)
  298. #define LOSSY_END_ADDR0 (0x57000000U)
  299. #define LOSSY_FMT0 LOSSY_FMT_YUVPLANAR
  300. #define LOSSY_ENA_DIS0 LOSSY_ENABLE
  301. #define LOSSY_ST_ADDR1 0x0U
  302. #define LOSSY_END_ADDR1 0x0U
  303. #define LOSSY_FMT1 LOSSY_FMT_ARGB8888
  304. #define LOSSY_ENA_DIS1 LOSSY_DISABLE
  305. #define LOSSY_ST_ADDR2 0x0U
  306. #define LOSSY_END_ADDR2 0x0U
  307. #define LOSSY_FMT2 LOSSY_FMT_YUV422INTLV
  308. #define LOSSY_ENA_DIS2 LOSSY_DISABLE
  309. #define RCAR_CC63_BASE 0xE6600000U
  310. #define CC63_TRNG_ISR_REG_ADDR 0x104U
  311. #define CC63_TRNG_ISR_REG_EHR_VALID BIT_32(0)
  312. #define CC63_TRNG_ISR_REG_AUTOCORR_ERR BIT_32(1)
  313. #define CC63_TRNG_ICR_REG_ADDR 0x108U
  314. #define CC63_TRNG_CONFIG_REG_ADDR 0x10CU
  315. #define CC63_TRNG_CONFIG_REG_ROSC_MAX_LENGTH 3
  316. #define CC63_TRNG_VALID_REG_ADDR 0x110U
  317. #define CC63_TRNG_VALID_REG_EHR_NOT_READY 0x0
  318. #define CC63_TRNG_EHR_DATA_ADDR_0_REG_ADDR 0x114U
  319. #define CC63_TRNG_SOURCE_ENABLE_REG_ADDR 0x12CU
  320. #define CC63_TRNG_SOURCE_ENABLE_REG_SET 0x1
  321. #define CC63_TRNG_SOURCE_ENABLE_REG_CLR 0x0
  322. #define CC63_TRNG_SAMPLE_CNT1_REG_ADDR 0x130U
  323. #define CC63_TRNG_SAMPLE_CNT1_REG_SAMPLE_COUNT 100
  324. #define CC63_TRNG_DEBUG_CONTROL_REG_ADDR 0x138U
  325. #define CC63_TRNG_DEBUG_CONTROL_REG_VNC_BYPASS BIT_32(1)
  326. #define CC63_TRNG_DEBUG_CONTROL_REG_AUTOCORR_BYPASS BIT_32(3)
  327. #define CC63_TRNG_DEBUG_CONTROL_REG_80090B \
  328. (CC63_TRNG_DEBUG_CONTROL_REG_VNC_BYPASS | \
  329. CC63_TRNG_DEBUG_CONTROL_REG_AUTOCORR_BYPASS)
  330. #define CC63_TRNG_SW_RESET_REG_ADDR 0x140U
  331. #define CC63_TRNG_SW_RESET_REG_SET 0x1
  332. #define CC63_TRNG_VERSION_REG_ADDR 0x1C0U
  333. #define CC63_TRNG_CLK_ENABLE_REG_ADDR 0x1C4U
  334. #define CC63_TRNG_CLK_ENABLE_REG_SET 0x1
  335. #endif /* RCAR_DEF_H */