immap_lsch3.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * LayerScape Internal Memory Map
  4. *
  5. * Copyright (C) 2017 NXP Semiconductors
  6. * Copyright 2014 Freescale Semiconductor, Inc.
  7. */
  8. #ifndef __ARCH_FSL_LSCH3_IMMAP_H_
  9. #define __ARCH_FSL_LSCH3_IMMAP_H_
  10. #define CONFIG_SYS_IMMR 0x01000000
  11. #define CONFIG_SYS_FSL_DDR_ADDR (CONFIG_SYS_IMMR + 0x00080000)
  12. #define CONFIG_SYS_FSL_DDR2_ADDR (CONFIG_SYS_IMMR + 0x00090000)
  13. #define CONFIG_SYS_FSL_DDR3_ADDR 0x08210000
  14. #define CONFIG_SYS_FSL_GUTS_ADDR (CONFIG_SYS_IMMR + 0x00E00000)
  15. #define CONFIG_SYS_FSL_PMU_ADDR (CONFIG_SYS_IMMR + 0x00E30000)
  16. #define CONFIG_SYS_FSL_RST_ADDR (CONFIG_SYS_IMMR + 0x00E60000)
  17. #define CONFIG_SYS_FSL_CH3_CLK_GRPA_ADDR (CONFIG_SYS_IMMR + 0x00300000)
  18. #define CONFIG_SYS_FSL_CH3_CLK_GRPB_ADDR (CONFIG_SYS_IMMR + 0x00310000)
  19. #define CONFIG_SYS_FSL_CH3_CLK_CTRL_ADDR (CONFIG_SYS_IMMR + 0x00370000)
  20. #define SYS_FSL_QSPI_ADDR (CONFIG_SYS_IMMR + 0x010c0000)
  21. #define CONFIG_SYS_FSL_ESDHC_ADDR (CONFIG_SYS_IMMR + 0x01140000)
  22. #define CONFIG_SYS_IFC_ADDR (CONFIG_SYS_IMMR + 0x01240000)
  23. #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR + 0x011C0500)
  24. #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR + 0x011C0600)
  25. #define SYS_FSL_LS2080A_LS2085A_TIMER_ADDR 0x023d0000
  26. #define CONFIG_SYS_FSL_TIMER_ADDR 0x023e0000
  27. #define CONFIG_SYS_FSL_PMU_CLTBENR (CONFIG_SYS_FSL_PMU_ADDR + \
  28. 0x18A0)
  29. #define FSL_PMU_PCTBENR_OFFSET (CONFIG_SYS_FSL_PMU_ADDR + 0x8A0)
  30. #define FSL_LSCH3_SVR (CONFIG_SYS_FSL_GUTS_ADDR + 0xA4)
  31. #define CONFIG_SYS_FSL_WRIOP1_ADDR (CONFIG_SYS_IMMR + 0x7B80000)
  32. #define CONFIG_SYS_FSL_WRIOP1_MDIO1 (CONFIG_SYS_FSL_WRIOP1_ADDR + 0x16000)
  33. #define CONFIG_SYS_FSL_WRIOP1_MDIO2 (CONFIG_SYS_FSL_WRIOP1_ADDR + 0x17000)
  34. #define CONFIG_SYS_FSL_LSCH3_SERDES_ADDR (CONFIG_SYS_IMMR + 0xEA0000)
  35. #define CONFIG_SYS_FSL_DCSR_DDR_ADDR 0x70012c000ULL
  36. #define CONFIG_SYS_FSL_DCSR_DDR2_ADDR 0x70012d000ULL
  37. #define CONFIG_SYS_FSL_DCSR_DDR3_ADDR 0x700132000ULL
  38. #define CONFIG_SYS_FSL_DCSR_DDR4_ADDR 0x700133000ULL
  39. #define I2C1_BASE_ADDR (CONFIG_SYS_IMMR + 0x01000000)
  40. #define I2C2_BASE_ADDR (CONFIG_SYS_IMMR + 0x01010000)
  41. #define I2C3_BASE_ADDR (CONFIG_SYS_IMMR + 0x01020000)
  42. #define I2C4_BASE_ADDR (CONFIG_SYS_IMMR + 0x01030000)
  43. #define GPIO4_BASE_ADDR (CONFIG_SYS_IMMR + 0x01330000)
  44. #define GPIO4_GPDIR_ADDR (GPIO4_BASE_ADDR + 0x0)
  45. #define GPIO4_GPDAT_ADDR (GPIO4_BASE_ADDR + 0x8)
  46. #define CONFIG_SYS_XHCI_USB1_ADDR (CONFIG_SYS_IMMR + 0x02100000)
  47. #define CONFIG_SYS_XHCI_USB2_ADDR (CONFIG_SYS_IMMR + 0x02110000)
  48. /* TZ Address Space Controller Definitions */
  49. #define TZASC1_BASE 0x01100000 /* as per CCSR map. */
  50. #define TZASC2_BASE 0x01110000 /* as per CCSR map. */
  51. #define TZASC3_BASE 0x01120000 /* as per CCSR map. */
  52. #define TZASC4_BASE 0x01130000 /* as per CCSR map. */
  53. #define TZASC_BUILD_CONFIG_REG(x) ((TZASC1_BASE + (x * 0x10000)))
  54. #define TZASC_ACTION_REG(x) ((TZASC1_BASE + (x * 0x10000)) + 0x004)
  55. #define TZASC_GATE_KEEPER(x) ((TZASC1_BASE + (x * 0x10000)) + 0x008)
  56. #define TZASC_REGION_BASE_LOW_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x100)
  57. #define TZASC_REGION_BASE_HIGH_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x104)
  58. #define TZASC_REGION_TOP_LOW_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x108)
  59. #define TZASC_REGION_TOP_HIGH_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x10C)
  60. #define TZASC_REGION_ATTRIBUTES_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x110)
  61. #define TZASC_REGION_ID_ACCESS_0(x) ((TZASC1_BASE + (x * 0x10000)) + 0x114)
  62. /* SATA */
  63. #define AHCI_BASE_ADDR1 (CONFIG_SYS_IMMR + 0x02200000)
  64. #define AHCI_BASE_ADDR2 (CONFIG_SYS_IMMR + 0x02210000)
  65. /* SFP */
  66. #define CONFIG_SYS_SFP_ADDR (CONFIG_SYS_IMMR + 0x00e80200)
  67. /* SEC */
  68. #define CONFIG_SYS_FSL_SEC_OFFSET 0x07000000ull
  69. #define CONFIG_SYS_FSL_JR0_OFFSET 0x07010000ull
  70. #define CONFIG_SYS_FSL_SEC_ADDR \
  71. (CONFIG_SYS_IMMR + CONFIG_SYS_FSL_SEC_OFFSET)
  72. #define CONFIG_SYS_FSL_JR0_ADDR \
  73. (CONFIG_SYS_IMMR + CONFIG_SYS_FSL_JR0_OFFSET)
  74. /* Security Monitor */
  75. #define CONFIG_SYS_SEC_MON_ADDR (CONFIG_SYS_IMMR + 0x00e90000)
  76. /* MMU 500 */
  77. #define SMMU_SCR0 (SMMU_BASE + 0x0)
  78. #define SMMU_SCR1 (SMMU_BASE + 0x4)
  79. #define SMMU_SCR2 (SMMU_BASE + 0x8)
  80. #define SMMU_SACR (SMMU_BASE + 0x10)
  81. #define SMMU_IDR0 (SMMU_BASE + 0x20)
  82. #define SMMU_IDR1 (SMMU_BASE + 0x24)
  83. #define SMMU_NSCR0 (SMMU_BASE + 0x400)
  84. #define SMMU_NSCR2 (SMMU_BASE + 0x408)
  85. #define SMMU_NSACR (SMMU_BASE + 0x410)
  86. #define SCR0_CLIENTPD_MASK 0x00000001
  87. #define SCR0_USFCFG_MASK 0x00000400
  88. /* PCIe */
  89. #define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_IMMR + 0x2400000)
  90. #define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_IMMR + 0x2500000)
  91. #define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_IMMR + 0x2600000)
  92. #define CONFIG_SYS_PCIE4_ADDR (CONFIG_SYS_IMMR + 0x2700000)
  93. #ifdef CONFIG_ARCH_LS1088A
  94. #define CONFIG_SYS_PCIE1_PHYS_ADDR 0x2000000000ULL
  95. #define CONFIG_SYS_PCIE2_PHYS_ADDR 0x2800000000ULL
  96. #define CONFIG_SYS_PCIE3_PHYS_ADDR 0x3000000000ULL
  97. #else
  98. #define CONFIG_SYS_PCIE1_PHYS_ADDR 0x1000000000ULL
  99. #define CONFIG_SYS_PCIE2_PHYS_ADDR 0x1200000000ULL
  100. #define CONFIG_SYS_PCIE3_PHYS_ADDR 0x1400000000ULL
  101. #define CONFIG_SYS_PCIE4_PHYS_ADDR 0x1600000000ULL
  102. #endif
  103. /* Device Configuration */
  104. #define DCFG_BASE 0x01e00000
  105. #define DCFG_PORSR1 0x000
  106. #define DCFG_PORSR1_RCW_SRC 0xff800000
  107. #define DCFG_PORSR1_RCW_SRC_NOR 0x12f00000
  108. #define DCFG_RCWSR13 0x130
  109. #define DCFG_RCWSR13_DSPI (0 << 8)
  110. #define DCFG_RCWSR15 0x138
  111. #define DCFG_RCWSR15_IFCGRPABASE_QSPI 0x3
  112. #define DCFG_DCSR_BASE 0X700100000ULL
  113. #define DCFG_DCSR_PORCR1 0x000
  114. /* Interrupt Sampling Control */
  115. #define ISC_BASE 0x01F70000
  116. #define IRQCR_OFFSET 0x14
  117. /* Supplemental Configuration */
  118. #define SCFG_BASE 0x01fc0000
  119. #define SCFG_USB3PRM1CR 0x000
  120. #define SCFG_USB3PRM1CR_INIT 0x27672b2a
  121. #define SCFG_USB_TXVREFTUNE 0x9
  122. #define SCFG_USB_SQRXTUNE_MASK 0x7
  123. #define SCFG_QSPICLKCTLR 0x10
  124. #define DCSR_BASE 0x700000000ULL
  125. #define DCSR_USB_PHY1 0x4600000
  126. #define DCSR_USB_PHY2 0x4610000
  127. #define DCSR_USB_PHY_RX_OVRD_IN_HI 0x200C
  128. #define USB_PHY_RX_EQ_VAL_1 0x0000
  129. #define USB_PHY_RX_EQ_VAL_2 0x0080
  130. #define USB_PHY_RX_EQ_VAL_3 0x0380
  131. #define USB_PHY_RX_EQ_VAL_4 0x0b80
  132. #define TP_ITYP_AV 0x00000001 /* Initiator available */
  133. #define TP_ITYP_TYPE(x) (((x) & 0x6) >> 1) /* Initiator Type */
  134. #define TP_ITYP_TYPE_ARM 0x0
  135. #define TP_ITYP_TYPE_PPC 0x1 /* PowerPC */
  136. #define TP_ITYP_TYPE_OTHER 0x2 /* StarCore DSP */
  137. #define TP_ITYP_TYPE_HA 0x3 /* HW Accelerator */
  138. #define TP_ITYP_THDS(x) (((x) & 0x18) >> 3) /* # threads */
  139. #define TP_ITYP_VER(x) (((x) & 0xe0) >> 5) /* Initiator Version */
  140. #define TY_ITYP_VER_A7 0x1
  141. #define TY_ITYP_VER_A53 0x2
  142. #define TY_ITYP_VER_A57 0x3
  143. #define TY_ITYP_VER_A72 0x4
  144. #define TP_CLUSTER_EOC 0x80000000 /* end of clusters */
  145. #define TP_CLUSTER_INIT_MASK 0x0000003f /* initiator mask */
  146. #define TP_INIT_PER_CLUSTER 4
  147. /* This is chassis generation 3 */
  148. #ifndef __ASSEMBLY__
  149. struct sys_info {
  150. unsigned long freq_processor[CONFIG_MAX_CPUS];
  151. /* frequency of platform PLL */
  152. unsigned long freq_systembus;
  153. unsigned long freq_ddrbus;
  154. #ifdef CONFIG_SYS_FSL_HAS_DP_DDR
  155. unsigned long freq_ddrbus2;
  156. #endif
  157. unsigned long freq_localbus;
  158. unsigned long freq_qe;
  159. #ifdef CONFIG_SYS_DPAA_FMAN
  160. unsigned long freq_fman[CONFIG_SYS_NUM_FMAN];
  161. #endif
  162. #ifdef CONFIG_SYS_DPAA_QBMAN
  163. unsigned long freq_qman;
  164. #endif
  165. #ifdef CONFIG_SYS_DPAA_PME
  166. unsigned long freq_pme;
  167. #endif
  168. };
  169. /* Global Utilities Block */
  170. struct ccsr_gur {
  171. u32 porsr1; /* POR status 1 */
  172. u32 porsr2; /* POR status 2 */
  173. u8 res_008[0x20-0x8];
  174. u32 gpporcr1; /* General-purpose POR configuration */
  175. u32 gpporcr2; /* General-purpose POR configuration 2 */
  176. u32 gpporcr3;
  177. u32 gpporcr4;
  178. u8 res_030[0x60-0x30];
  179. #define FSL_CHASSIS3_DCFG_FUSESR_VID_MASK 0x1F
  180. #define FSL_CHASSIS3_DCFG_FUSESR_ALTVID_MASK 0x1F
  181. #if defined(CONFIG_ARCH_LS1088A)
  182. #define FSL_CHASSIS3_DCFG_FUSESR_VID_SHIFT 25
  183. #define FSL_CHASSIS3_DCFG_FUSESR_ALTVID_SHIFT 20
  184. #else
  185. #define FSL_CHASSIS3_DCFG_FUSESR_VID_SHIFT 2
  186. #define FSL_CHASSIS3_DCFG_FUSESR_ALTVID_SHIFT 7
  187. #endif
  188. u32 dcfg_fusesr; /* Fuse status register */
  189. u8 res_064[0x70-0x64];
  190. u32 devdisr; /* Device disable control 1 */
  191. u32 devdisr2; /* Device disable control 2 */
  192. u32 devdisr3; /* Device disable control 3 */
  193. u32 devdisr4; /* Device disable control 4 */
  194. u32 devdisr5; /* Device disable control 5 */
  195. u32 devdisr6; /* Device disable control 6 */
  196. u8 res_088[0x94-0x88];
  197. u32 coredisr; /* Device disable control 7 */
  198. #define FSL_CHASSIS3_DEVDISR2_DPMAC1 0x00000001
  199. #define FSL_CHASSIS3_DEVDISR2_DPMAC2 0x00000002
  200. #define FSL_CHASSIS3_DEVDISR2_DPMAC3 0x00000004
  201. #define FSL_CHASSIS3_DEVDISR2_DPMAC4 0x00000008
  202. #define FSL_CHASSIS3_DEVDISR2_DPMAC5 0x00000010
  203. #define FSL_CHASSIS3_DEVDISR2_DPMAC6 0x00000020
  204. #define FSL_CHASSIS3_DEVDISR2_DPMAC7 0x00000040
  205. #define FSL_CHASSIS3_DEVDISR2_DPMAC8 0x00000080
  206. #define FSL_CHASSIS3_DEVDISR2_DPMAC9 0x00000100
  207. #define FSL_CHASSIS3_DEVDISR2_DPMAC10 0x00000200
  208. #define FSL_CHASSIS3_DEVDISR2_DPMAC11 0x00000400
  209. #define FSL_CHASSIS3_DEVDISR2_DPMAC12 0x00000800
  210. #define FSL_CHASSIS3_DEVDISR2_DPMAC13 0x00001000
  211. #define FSL_CHASSIS3_DEVDISR2_DPMAC14 0x00002000
  212. #define FSL_CHASSIS3_DEVDISR2_DPMAC15 0x00004000
  213. #define FSL_CHASSIS3_DEVDISR2_DPMAC16 0x00008000
  214. #define FSL_CHASSIS3_DEVDISR2_DPMAC17 0x00010000
  215. #define FSL_CHASSIS3_DEVDISR2_DPMAC18 0x00020000
  216. #define FSL_CHASSIS3_DEVDISR2_DPMAC19 0x00040000
  217. #define FSL_CHASSIS3_DEVDISR2_DPMAC20 0x00080000
  218. #define FSL_CHASSIS3_DEVDISR2_DPMAC21 0x00100000
  219. #define FSL_CHASSIS3_DEVDISR2_DPMAC22 0x00200000
  220. #define FSL_CHASSIS3_DEVDISR2_DPMAC23 0x00400000
  221. #define FSL_CHASSIS3_DEVDISR2_DPMAC24 0x00800000
  222. u8 res_098[0xa0-0x98];
  223. u32 pvr; /* Processor version */
  224. u32 svr; /* System version */
  225. u8 res_0a8[0x100-0xa8];
  226. u32 rcwsr[30]; /* Reset control word status */
  227. #define FSL_CHASSIS3_RCWSR0_SYS_PLL_RAT_SHIFT 2
  228. #define FSL_CHASSIS3_RCWSR0_SYS_PLL_RAT_MASK 0x1f
  229. #define FSL_CHASSIS3_RCWSR0_MEM_PLL_RAT_SHIFT 10
  230. #define FSL_CHASSIS3_RCWSR0_MEM_PLL_RAT_MASK 0x3f
  231. #define FSL_CHASSIS3_RCWSR0_MEM2_PLL_RAT_SHIFT 18
  232. #define FSL_CHASSIS3_RCWSR0_MEM2_PLL_RAT_MASK 0x3f
  233. #if defined(CONFIG_ARCH_LS2080A)
  234. #define FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_MASK 0x00FF0000
  235. #define FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_SHIFT 16
  236. #define FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_MASK 0xFF000000
  237. #define FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_SHIFT 24
  238. #define FSL_CHASSIS3_SRDS1_PRTCL_MASK FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_MASK
  239. #define FSL_CHASSIS3_SRDS1_PRTCL_SHIFT FSL_CHASSIS3_RCWSR28_SRDS1_PRTCL_SHIFT
  240. #define FSL_CHASSIS3_SRDS2_PRTCL_MASK FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_MASK
  241. #define FSL_CHASSIS3_SRDS2_PRTCL_SHIFT FSL_CHASSIS3_RCWSR28_SRDS2_PRTCL_SHIFT
  242. #define FSL_CHASSIS3_SRDS1_REGSR 29
  243. #define FSL_CHASSIS3_SRDS2_REGSR 29
  244. #elif defined(CONFIG_ARCH_LS1088A)
  245. #define FSL_CHASSIS3_EC1_REGSR 26
  246. #define FSL_CHASSIS3_EC2_REGSR 26
  247. #define FSL_CHASSIS3_RCWSR25_EC1_PRTCL_MASK 0x00000007
  248. #define FSL_CHASSIS3_RCWSR25_EC1_PRTCL_SHIFT 0
  249. #define FSL_CHASSIS3_RCWSR25_EC2_PRTCL_MASK 0x00000038
  250. #define FSL_CHASSIS3_RCWSR25_EC2_PRTCL_SHIFT 3
  251. #define FSL_CHASSIS3_RCWSR29_SRDS1_PRTCL_MASK 0xFFFF0000
  252. #define FSL_CHASSIS3_RCWSR29_SRDS1_PRTCL_SHIFT 16
  253. #define FSL_CHASSIS3_RCWSR30_SRDS2_PRTCL_MASK 0x0000FFFF
  254. #define FSL_CHASSIS3_RCWSR30_SRDS2_PRTCL_SHIFT 0
  255. #define FSL_CHASSIS3_SRDS1_PRTCL_MASK FSL_CHASSIS3_RCWSR29_SRDS1_PRTCL_MASK
  256. #define FSL_CHASSIS3_SRDS1_PRTCL_SHIFT FSL_CHASSIS3_RCWSR29_SRDS1_PRTCL_SHIFT
  257. #define FSL_CHASSIS3_SRDS2_PRTCL_MASK FSL_CHASSIS3_RCWSR30_SRDS2_PRTCL_MASK
  258. #define FSL_CHASSIS3_SRDS2_PRTCL_SHIFT FSL_CHASSIS3_RCWSR30_SRDS2_PRTCL_SHIFT
  259. #define FSL_CHASSIS3_SRDS1_REGSR 29
  260. #define FSL_CHASSIS3_SRDS2_REGSR 30
  261. #endif
  262. #define RCW_SB_EN_REG_INDEX 9
  263. #define RCW_SB_EN_MASK 0x00000400
  264. u8 res_178[0x200-0x178];
  265. u32 scratchrw[16]; /* Scratch Read/Write */
  266. u8 res_240[0x300-0x240];
  267. u32 scratchw1r[4]; /* Scratch Read (Write once) */
  268. u8 res_310[0x400-0x310];
  269. u32 bootlocptrl; /* Boot location pointer low-order addr */
  270. u32 bootlocptrh; /* Boot location pointer high-order addr */
  271. u8 res_408[0x520-0x408];
  272. u32 usb1_amqr;
  273. u32 usb2_amqr;
  274. u8 res_528[0x530-0x528]; /* add more registers when needed */
  275. u32 sdmm1_amqr;
  276. u8 res_534[0x550-0x534]; /* add more registers when needed */
  277. u32 sata1_amqr;
  278. u32 sata2_amqr;
  279. u8 res_558[0x570-0x558]; /* add more registers when needed */
  280. u32 misc1_amqr;
  281. u8 res_574[0x590-0x574]; /* add more registers when needed */
  282. u32 spare1_amqr;
  283. u32 spare2_amqr;
  284. u8 res_598[0x620-0x598]; /* add more registers when needed */
  285. u32 gencr[7]; /* General Control Registers */
  286. u8 res_63c[0x640-0x63c]; /* add more registers when needed */
  287. u32 cgensr1; /* Core General Status Register */
  288. u8 res_644[0x660-0x644]; /* add more registers when needed */
  289. u32 cgencr1; /* Core General Control Register */
  290. u8 res_664[0x740-0x664]; /* add more registers when needed */
  291. u32 tp_ityp[64]; /* Topology Initiator Type Register */
  292. struct {
  293. u32 upper;
  294. u32 lower;
  295. } tp_cluster[4]; /* Core cluster n Topology Register */
  296. u8 res_864[0x920-0x864]; /* add more registers when needed */
  297. u32 ioqoscr[8]; /*I/O Quality of Services Register */
  298. u32 uccr;
  299. u8 res_944[0x960-0x944]; /* add more registers when needed */
  300. u32 ftmcr;
  301. u8 res_964[0x990-0x964]; /* add more registers when needed */
  302. u32 coredisablesr;
  303. u8 res_994[0xa00-0x994]; /* add more registers when needed */
  304. u32 sdbgcr; /*Secure Debug Confifuration Register */
  305. u8 res_a04[0xbf8-0xa04]; /* add more registers when needed */
  306. u32 ipbrr1;
  307. u32 ipbrr2;
  308. u8 res_858[0x1000-0xc00];
  309. };
  310. struct ccsr_clk_cluster_group {
  311. struct {
  312. u8 res_00[0x10];
  313. u32 csr;
  314. u8 res_14[0x20-0x14];
  315. } hwncsr[3];
  316. u8 res_60[0x80-0x60];
  317. struct {
  318. u32 gsr;
  319. u8 res_84[0xa0-0x84];
  320. } pllngsr[3];
  321. u8 res_e0[0x100-0xe0];
  322. };
  323. struct ccsr_clk_ctrl {
  324. struct {
  325. u32 csr; /* core cluster n clock control status */
  326. u8 res_04[0x20-0x04];
  327. } clkcncsr[8];
  328. };
  329. struct ccsr_reset {
  330. u32 rstcr; /* 0x000 */
  331. u32 rstcrsp; /* 0x004 */
  332. u8 res_008[0x10-0x08]; /* 0x008 */
  333. u32 rstrqmr1; /* 0x010 */
  334. u32 rstrqmr2; /* 0x014 */
  335. u32 rstrqsr1; /* 0x018 */
  336. u32 rstrqsr2; /* 0x01c */
  337. u32 rstrqwdtmrl; /* 0x020 */
  338. u32 rstrqwdtmru; /* 0x024 */
  339. u8 res_028[0x30-0x28]; /* 0x028 */
  340. u32 rstrqwdtsrl; /* 0x030 */
  341. u32 rstrqwdtsru; /* 0x034 */
  342. u8 res_038[0x60-0x38]; /* 0x038 */
  343. u32 brrl; /* 0x060 */
  344. u32 brru; /* 0x064 */
  345. u8 res_068[0x80-0x68]; /* 0x068 */
  346. u32 pirset; /* 0x080 */
  347. u32 pirclr; /* 0x084 */
  348. u8 res_088[0x90-0x88]; /* 0x088 */
  349. u32 brcorenbr; /* 0x090 */
  350. u8 res_094[0x100-0x94]; /* 0x094 */
  351. u32 rcw_reqr; /* 0x100 */
  352. u32 rcw_completion; /* 0x104 */
  353. u8 res_108[0x110-0x108]; /* 0x108 */
  354. u32 pbi_reqr; /* 0x110 */
  355. u32 pbi_completion; /* 0x114 */
  356. u8 res_118[0xa00-0x118]; /* 0x118 */
  357. u32 qmbm_warmrst; /* 0xa00 */
  358. u32 soc_warmrst; /* 0xa04 */
  359. u8 res_a08[0xbf8-0xa08]; /* 0xa08 */
  360. u32 ip_rev1; /* 0xbf8 */
  361. u32 ip_rev2; /* 0xbfc */
  362. };
  363. struct ccsr_serdes {
  364. struct {
  365. u32 rstctl; /* Reset Control Register */
  366. u32 pllcr0; /* PLL Control Register 0 */
  367. u32 pllcr1; /* PLL Control Register 1 */
  368. u32 pllcr2; /* PLL Control Register 2 */
  369. u32 pllcr3; /* PLL Control Register 3 */
  370. u32 pllcr4; /* PLL Control Register 4 */
  371. u32 pllcr5; /* PLL Control Register 5 */
  372. u8 res[0x20 - 0x1c];
  373. } bank[2];
  374. u8 res1[0x90 - 0x40];
  375. u32 srdstcalcr; /* TX Calibration Control */
  376. u32 srdstcalcr1; /* TX Calibration Control1 */
  377. u8 res2[0xa0 - 0x98];
  378. u32 srdsrcalcr; /* RX Calibration Control */
  379. u32 srdsrcalcr1; /* RX Calibration Control1 */
  380. u8 res3[0xb0 - 0xa8];
  381. u32 srdsgr0; /* General Register 0 */
  382. u8 res4[0x800 - 0xb4];
  383. struct serdes_lane {
  384. u32 gcr0; /* General Control Register 0 */
  385. u32 gcr1; /* General Control Register 1 */
  386. u32 gcr2; /* General Control Register 2 */
  387. u32 ssc0; /* Speed Switch Control 0 */
  388. u32 rec0; /* Receive Equalization Control 0 */
  389. u32 rec1; /* Receive Equalization Control 1 */
  390. u32 tec0; /* Transmit Equalization Control 0 */
  391. u32 ssc1; /* Speed Switch Control 1 */
  392. u8 res1[0x840 - 0x820];
  393. } lane[8];
  394. u8 res5[0x19fc - 0xa00];
  395. };
  396. #endif /*__ASSEMBLY__*/
  397. #endif /* __ARCH_FSL_LSCH3_IMMAP_H_ */