imx-regs.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. /*
  2. * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. * You should have received a copy of the GNU General Public License along
  13. * with this program; if not, write to the Free Software Foundation, Inc.,
  14. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. #ifndef __ASM_ARCH_MX6_IMX_REGS_H__
  17. #define __ASM_ARCH_MX6_IMX_REGS_H__
  18. #define ARCH_MXC
  19. #define CONFIG_SYS_CACHELINE_SIZE 32
  20. #define ROMCP_ARB_BASE_ADDR 0x00000000
  21. #define ROMCP_ARB_END_ADDR 0x000FFFFF
  22. #define CAAM_ARB_BASE_ADDR 0x00100000
  23. #define CAAM_ARB_END_ADDR 0x00103FFF
  24. #define APBH_DMA_ARB_BASE_ADDR 0x00110000
  25. #define APBH_DMA_ARB_END_ADDR 0x00117FFF
  26. #define HDMI_ARB_BASE_ADDR 0x00120000
  27. #define HDMI_ARB_END_ADDR 0x00128FFF
  28. #define GPU_3D_ARB_BASE_ADDR 0x00130000
  29. #define GPU_3D_ARB_END_ADDR 0x00133FFF
  30. #define GPU_2D_ARB_BASE_ADDR 0x00134000
  31. #define GPU_2D_ARB_END_ADDR 0x00137FFF
  32. #define DTCP_ARB_BASE_ADDR 0x00138000
  33. #define DTCP_ARB_END_ADDR 0x0013BFFF
  34. /* GPV - PL301 configuration ports */
  35. #define GPV2_BASE_ADDR 0x00200000
  36. #define GPV3_BASE_ADDR 0x00300000
  37. #define GPV4_BASE_ADDR 0x00800000
  38. #define IRAM_BASE_ADDR 0x00900000
  39. #define SCU_BASE_ADDR 0x00A00000
  40. #define IC_INTERFACES_BASE_ADDR 0x00A00100
  41. #define GLOBAL_TIMER_BASE_ADDR 0x00A00200
  42. #define PRIVATE_TIMERS_WD_BASE_ADDR 0x00A00600
  43. #define IC_DISTRIBUTOR_BASE_ADDR 0x00A01000
  44. #define GPV0_BASE_ADDR 0x00B00000
  45. #define GPV1_BASE_ADDR 0x00C00000
  46. #define PCIE_ARB_BASE_ADDR 0x01000000
  47. #define PCIE_ARB_END_ADDR 0x01FFFFFF
  48. #define AIPS1_ARB_BASE_ADDR 0x02000000
  49. #define AIPS1_ARB_END_ADDR 0x020FFFFF
  50. #define AIPS2_ARB_BASE_ADDR 0x02100000
  51. #define AIPS2_ARB_END_ADDR 0x021FFFFF
  52. #define SATA_ARB_BASE_ADDR 0x02200000
  53. #define SATA_ARB_END_ADDR 0x02203FFF
  54. #define OPENVG_ARB_BASE_ADDR 0x02204000
  55. #define OPENVG_ARB_END_ADDR 0x02207FFF
  56. #define HSI_ARB_BASE_ADDR 0x02208000
  57. #define HSI_ARB_END_ADDR 0x0220BFFF
  58. #define IPU1_ARB_BASE_ADDR 0x02400000
  59. #define IPU1_ARB_END_ADDR 0x027FFFFF
  60. #define IPU2_ARB_BASE_ADDR 0x02800000
  61. #define IPU2_ARB_END_ADDR 0x02BFFFFF
  62. #define WEIM_ARB_BASE_ADDR 0x08000000
  63. #define WEIM_ARB_END_ADDR 0x0FFFFFFF
  64. #define MMDC0_ARB_BASE_ADDR 0x10000000
  65. #define MMDC0_ARB_END_ADDR 0x7FFFFFFF
  66. #define MMDC1_ARB_BASE_ADDR 0x80000000
  67. #define MMDC1_ARB_END_ADDR 0xFFFFFFFF
  68. #define IPU_SOC_BASE_ADDR IPU1_ARB_BASE_ADDR
  69. #define IPU_SOC_OFFSET 0x00200000
  70. /* Defines for Blocks connected via AIPS (SkyBlue) */
  71. #define ATZ1_BASE_ADDR AIPS1_ARB_BASE_ADDR
  72. #define ATZ2_BASE_ADDR AIPS2_ARB_BASE_ADDR
  73. #define AIPS1_BASE_ADDR AIPS1_ON_BASE_ADDR
  74. #define AIPS2_BASE_ADDR AIPS2_ON_BASE_ADDR
  75. #define SPDIF_BASE_ADDR (ATZ1_BASE_ADDR + 0x04000)
  76. #define ECSPI1_BASE_ADDR (ATZ1_BASE_ADDR + 0x08000)
  77. #define ECSPI2_BASE_ADDR (ATZ1_BASE_ADDR + 0x0C000)
  78. #define ECSPI3_BASE_ADDR (ATZ1_BASE_ADDR + 0x10000)
  79. #define ECSPI4_BASE_ADDR (ATZ1_BASE_ADDR + 0x14000)
  80. #define ECSPI5_BASE_ADDR (ATZ1_BASE_ADDR + 0x18000)
  81. #define UART1_BASE (ATZ1_BASE_ADDR + 0x20000)
  82. #define ESAI1_BASE_ADDR (ATZ1_BASE_ADDR + 0x24000)
  83. #define SSI1_BASE_ADDR (ATZ1_BASE_ADDR + 0x28000)
  84. #define SSI2_BASE_ADDR (ATZ1_BASE_ADDR + 0x2C000)
  85. #define SSI3_BASE_ADDR (ATZ1_BASE_ADDR + 0x30000)
  86. #define ASRC_BASE_ADDR (ATZ1_BASE_ADDR + 0x34000)
  87. #define SPBA_BASE_ADDR (ATZ1_BASE_ADDR + 0x3C000)
  88. #define VPU_BASE_ADDR (ATZ1_BASE_ADDR + 0x40000)
  89. #define AIPS1_ON_BASE_ADDR (ATZ1_BASE_ADDR + 0x7C000)
  90. #define AIPS1_OFF_BASE_ADDR (ATZ1_BASE_ADDR + 0x80000)
  91. #define PWM1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x0000)
  92. #define PWM2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x4000)
  93. #define PWM3_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x8000)
  94. #define PWM4_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0xC000)
  95. #define CAN1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x10000)
  96. #define CAN2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x14000)
  97. #define GPT1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x18000)
  98. #define GPIO1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x1C000)
  99. #define GPIO2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x20000)
  100. #define GPIO3_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x24000)
  101. #define GPIO4_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x28000)
  102. #define GPIO5_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x2C000)
  103. #define GPIO6_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x30000)
  104. #define GPIO7_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x34000)
  105. #define KPP_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x38000)
  106. #define WDOG1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x3C000)
  107. #define WDOG2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x40000)
  108. #define ANATOP_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x48000)
  109. #define USB_PHY0_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x49000)
  110. #define USB_PHY1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x4a000)
  111. #define CCM_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x44000)
  112. #define SNVS_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x4C000)
  113. #define EPIT1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x50000)
  114. #define EPIT2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x54000)
  115. #define SRC_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x58000)
  116. #define GPC_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x5C000)
  117. #define IOMUXC_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x60000)
  118. #define DCIC1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x64000)
  119. #define DCIC2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x68000)
  120. #define DMA_REQ_PORT_HOST_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x6C000)
  121. #define AIPS2_ON_BASE_ADDR (ATZ2_BASE_ADDR + 0x7C000)
  122. #define AIPS2_OFF_BASE_ADDR (ATZ2_BASE_ADDR + 0x80000)
  123. #define CAAM_BASE_ADDR (ATZ2_BASE_ADDR)
  124. #define ARM_BASE_ADDR (ATZ2_BASE_ADDR + 0x40000)
  125. #define USBOH3_PL301_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x0000)
  126. #define USBOH3_USB_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x4000)
  127. #define ENET_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x8000)
  128. #define MLB_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0xC000)
  129. #define USDHC1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x10000)
  130. #define USDHC2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x14000)
  131. #define USDHC3_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x18000)
  132. #define USDHC4_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x1C000)
  133. #define I2C1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x20000)
  134. #define I2C2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x24000)
  135. #define I2C3_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x28000)
  136. #define ROMCP_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x2C000)
  137. #define MMDC_P0_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x30000)
  138. #define MMDC_P1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x34000)
  139. #define WEIM_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x38000)
  140. #define OCOTP_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x3C000)
  141. #define CSU_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x40000)
  142. #define IP2APB_PERFMON1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x44000)
  143. #define IP2APB_PERFMON2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x48000)
  144. #define IP2APB_PERFMON3_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x4C000)
  145. #define IP2APB_TZASC1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x50000)
  146. #define IP2APB_TZASC2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x54000)
  147. #define AUDMUX_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x58000)
  148. #define MIPI_CSI2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x5C000)
  149. #define MIPI_DSI_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x60000)
  150. #define VDOA_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x64000)
  151. #define UART2_BASE (AIPS2_OFF_BASE_ADDR + 0x68000)
  152. #define UART3_BASE (AIPS2_OFF_BASE_ADDR + 0x6C000)
  153. #define UART4_BASE (AIPS2_OFF_BASE_ADDR + 0x70000)
  154. #define UART5_BASE (AIPS2_OFF_BASE_ADDR + 0x74000)
  155. #define IP2APB_USBPHY1_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x78000)
  156. #define IP2APB_USBPHY2_BASE_ADDR (AIPS2_OFF_BASE_ADDR + 0x7C000)
  157. #define CHIP_REV_1_0 0x10
  158. #define IRAM_SIZE 0x00040000
  159. #define IMX_IIM_BASE OCOTP_BASE_ADDR
  160. #define FEC_QUIRK_ENET_MAC
  161. #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
  162. #include <asm/types.h>
  163. extern void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
  164. /* System Reset Controller (SRC) */
  165. struct src {
  166. u32 scr;
  167. u32 sbmr1;
  168. u32 srsr;
  169. u32 reserved1[2];
  170. u32 sisr;
  171. u32 simr;
  172. u32 sbmr2;
  173. u32 gpr1;
  174. u32 gpr2;
  175. u32 gpr3;
  176. u32 gpr4;
  177. u32 gpr5;
  178. u32 gpr6;
  179. u32 gpr7;
  180. u32 gpr8;
  181. u32 gpr9;
  182. u32 gpr10;
  183. };
  184. /* ECSPI registers */
  185. struct cspi_regs {
  186. u32 rxdata;
  187. u32 txdata;
  188. u32 ctrl;
  189. u32 cfg;
  190. u32 intr;
  191. u32 dma;
  192. u32 stat;
  193. u32 period;
  194. };
  195. /*
  196. * CSPI register definitions
  197. */
  198. #define MXC_ECSPI
  199. #define MXC_CSPICTRL_EN (1 << 0)
  200. #define MXC_CSPICTRL_MODE (1 << 1)
  201. #define MXC_CSPICTRL_XCH (1 << 2)
  202. #define MXC_CSPICTRL_CHIPSELECT(x) (((x) & 0x3) << 12)
  203. #define MXC_CSPICTRL_BITCOUNT(x) (((x) & 0xfff) << 20)
  204. #define MXC_CSPICTRL_PREDIV(x) (((x) & 0xF) << 12)
  205. #define MXC_CSPICTRL_POSTDIV(x) (((x) & 0xF) << 8)
  206. #define MXC_CSPICTRL_SELCHAN(x) (((x) & 0x3) << 18)
  207. #define MXC_CSPICTRL_MAXBITS 0xfff
  208. #define MXC_CSPICTRL_TC (1 << 7)
  209. #define MXC_CSPICTRL_RXOVF (1 << 6)
  210. #define MXC_CSPIPERIOD_32KHZ (1 << 15)
  211. #define MAX_SPI_BYTES 32
  212. /* Bit position inside CTRL register to be associated with SS */
  213. #define MXC_CSPICTRL_CHAN 18
  214. /* Bit position inside CON register to be associated with SS */
  215. #define MXC_CSPICON_POL 4
  216. #define MXC_CSPICON_PHA 0
  217. #define MXC_CSPICON_SSPOL 12
  218. #define MXC_SPI_BASE_ADDRESSES \
  219. ECSPI1_BASE_ADDR, \
  220. ECSPI2_BASE_ADDR, \
  221. ECSPI3_BASE_ADDR, \
  222. ECSPI4_BASE_ADDR, \
  223. ECSPI5_BASE_ADDR
  224. struct iim_regs {
  225. u32 ctrl;
  226. u32 ctrl_set;
  227. u32 ctrl_clr;
  228. u32 ctrl_tog;
  229. u32 timing;
  230. u32 rsvd0[3];
  231. u32 data;
  232. u32 rsvd1[3];
  233. u32 read_ctrl;
  234. u32 rsvd2[3];
  235. u32 fuse_data;
  236. u32 rsvd3[3];
  237. u32 sticky;
  238. u32 rsvd4[3];
  239. u32 scs;
  240. u32 scs_set;
  241. u32 scs_clr;
  242. u32 scs_tog;
  243. u32 crc_addr;
  244. u32 rsvd5[3];
  245. u32 crc_value;
  246. u32 rsvd6[3];
  247. u32 version;
  248. u32 rsvd7[0xdb];
  249. struct fuse_bank {
  250. u32 fuse_regs[0x20];
  251. } bank[15];
  252. };
  253. struct fuse_bank4_regs {
  254. u32 sjc_resp_low;
  255. u32 rsvd0[3];
  256. u32 sjc_resp_high;
  257. u32 rsvd1[3];
  258. u32 mac_addr_low;
  259. u32 rsvd2[3];
  260. u32 mac_addr_high;
  261. u32 rsvd3[0x13];
  262. };
  263. struct aipstz_regs {
  264. u32 mprot0;
  265. u32 mprot1;
  266. u32 rsvd[0xe];
  267. u32 opacr0;
  268. u32 opacr1;
  269. u32 opacr2;
  270. u32 opacr3;
  271. u32 opacr4;
  272. };
  273. struct anatop_regs {
  274. u32 pll_sys; /* 0x000 */
  275. u32 pll_sys_set; /* 0x004 */
  276. u32 pll_sys_clr; /* 0x008 */
  277. u32 pll_sys_tog; /* 0x00c */
  278. u32 usb1_pll_480_ctrl; /* 0x010 */
  279. u32 usb1_pll_480_ctrl_set; /* 0x014 */
  280. u32 usb1_pll_480_ctrl_clr; /* 0x018 */
  281. u32 usb1_pll_480_ctrl_tog; /* 0x01c */
  282. u32 usb2_pll_480_ctrl; /* 0x020 */
  283. u32 usb2_pll_480_ctrl_set; /* 0x024 */
  284. u32 usb2_pll_480_ctrl_clr; /* 0x028 */
  285. u32 usb2_pll_480_ctrl_tog; /* 0x02c */
  286. u32 pll_528; /* 0x030 */
  287. u32 pll_528_set; /* 0x034 */
  288. u32 pll_528_clr; /* 0x038 */
  289. u32 pll_528_tog; /* 0x03c */
  290. u32 pll_528_ss; /* 0x040 */
  291. u32 rsvd0[3];
  292. u32 pll_528_num; /* 0x050 */
  293. u32 rsvd1[3];
  294. u32 pll_528_denom; /* 0x060 */
  295. u32 rsvd2[3];
  296. u32 pll_audio; /* 0x070 */
  297. u32 pll_audio_set; /* 0x074 */
  298. u32 pll_audio_clr; /* 0x078 */
  299. u32 pll_audio_tog; /* 0x07c */
  300. u32 pll_audio_num; /* 0x080 */
  301. u32 rsvd3[3];
  302. u32 pll_audio_denom; /* 0x090 */
  303. u32 rsvd4[3];
  304. u32 pll_video; /* 0x0a0 */
  305. u32 pll_video_set; /* 0x0a4 */
  306. u32 pll_video_clr; /* 0x0a8 */
  307. u32 pll_video_tog; /* 0x0ac */
  308. u32 pll_video_num; /* 0x0b0 */
  309. u32 rsvd5[3];
  310. u32 pll_video_denom; /* 0x0c0 */
  311. u32 rsvd6[3];
  312. u32 pll_mlb; /* 0x0d0 */
  313. u32 pll_mlb_set; /* 0x0d4 */
  314. u32 pll_mlb_clr; /* 0x0d8 */
  315. u32 pll_mlb_tog; /* 0x0dc */
  316. u32 pll_enet; /* 0x0e0 */
  317. u32 pll_enet_set; /* 0x0e4 */
  318. u32 pll_enet_clr; /* 0x0e8 */
  319. u32 pll_enet_tog; /* 0x0ec */
  320. u32 pfd_480; /* 0x0f0 */
  321. u32 pfd_480_set; /* 0x0f4 */
  322. u32 pfd_480_clr; /* 0x0f8 */
  323. u32 pfd_480_tog; /* 0x0fc */
  324. u32 pfd_528; /* 0x100 */
  325. u32 pfd_528_set; /* 0x104 */
  326. u32 pfd_528_clr; /* 0x108 */
  327. u32 pfd_528_tog; /* 0x10c */
  328. u32 reg_1p1; /* 0x110 */
  329. u32 reg_1p1_set; /* 0x114 */
  330. u32 reg_1p1_clr; /* 0x118 */
  331. u32 reg_1p1_tog; /* 0x11c */
  332. u32 reg_3p0; /* 0x120 */
  333. u32 reg_3p0_set; /* 0x124 */
  334. u32 reg_3p0_clr; /* 0x128 */
  335. u32 reg_3p0_tog; /* 0x12c */
  336. u32 reg_2p5; /* 0x130 */
  337. u32 reg_2p5_set; /* 0x134 */
  338. u32 reg_2p5_clr; /* 0x138 */
  339. u32 reg_2p5_tog; /* 0x13c */
  340. u32 reg_core; /* 0x140 */
  341. u32 reg_core_set; /* 0x144 */
  342. u32 reg_core_clr; /* 0x148 */
  343. u32 reg_core_tog; /* 0x14c */
  344. u32 ana_misc0; /* 0x150 */
  345. u32 ana_misc0_set; /* 0x154 */
  346. u32 ana_misc0_clr; /* 0x158 */
  347. u32 ana_misc0_tog; /* 0x15c */
  348. u32 ana_misc1; /* 0x160 */
  349. u32 ana_misc1_set; /* 0x164 */
  350. u32 ana_misc1_clr; /* 0x168 */
  351. u32 ana_misc1_tog; /* 0x16c */
  352. u32 ana_misc2; /* 0x170 */
  353. u32 ana_misc2_set; /* 0x174 */
  354. u32 ana_misc2_clr; /* 0x178 */
  355. u32 ana_misc2_tog; /* 0x17c */
  356. u32 tempsense0; /* 0x180 */
  357. u32 tempsense0_set; /* 0x184 */
  358. u32 tempsense0_clr; /* 0x188 */
  359. u32 tempsense0_tog; /* 0x18c */
  360. u32 tempsense1; /* 0x190 */
  361. u32 tempsense1_set; /* 0x194 */
  362. u32 tempsense1_clr; /* 0x198 */
  363. u32 tempsense1_tog; /* 0x19c */
  364. u32 usb1_vbus_detect; /* 0x1a0 */
  365. u32 usb1_vbus_detect_set; /* 0x1a4 */
  366. u32 usb1_vbus_detect_clr; /* 0x1a8 */
  367. u32 usb1_vbus_detect_tog; /* 0x1ac */
  368. u32 usb1_chrg_detect; /* 0x1b0 */
  369. u32 usb1_chrg_detect_set; /* 0x1b4 */
  370. u32 usb1_chrg_detect_clr; /* 0x1b8 */
  371. u32 usb1_chrg_detect_tog; /* 0x1bc */
  372. u32 usb1_vbus_det_stat; /* 0x1c0 */
  373. u32 usb1_vbus_det_stat_set; /* 0x1c4 */
  374. u32 usb1_vbus_det_stat_clr; /* 0x1c8 */
  375. u32 usb1_vbus_det_stat_tog; /* 0x1cc */
  376. u32 usb1_chrg_det_stat; /* 0x1d0 */
  377. u32 usb1_chrg_det_stat_set; /* 0x1d4 */
  378. u32 usb1_chrg_det_stat_clr; /* 0x1d8 */
  379. u32 usb1_chrg_det_stat_tog; /* 0x1dc */
  380. u32 usb1_loopback; /* 0x1e0 */
  381. u32 usb1_loopback_set; /* 0x1e4 */
  382. u32 usb1_loopback_clr; /* 0x1e8 */
  383. u32 usb1_loopback_tog; /* 0x1ec */
  384. u32 usb1_misc; /* 0x1f0 */
  385. u32 usb1_misc_set; /* 0x1f4 */
  386. u32 usb1_misc_clr; /* 0x1f8 */
  387. u32 usb1_misc_tog; /* 0x1fc */
  388. u32 usb2_vbus_detect; /* 0x200 */
  389. u32 usb2_vbus_detect_set; /* 0x204 */
  390. u32 usb2_vbus_detect_clr; /* 0x208 */
  391. u32 usb2_vbus_detect_tog; /* 0x20c */
  392. u32 usb2_chrg_detect; /* 0x210 */
  393. u32 usb2_chrg_detect_set; /* 0x214 */
  394. u32 usb2_chrg_detect_clr; /* 0x218 */
  395. u32 usb2_chrg_detect_tog; /* 0x21c */
  396. u32 usb2_vbus_det_stat; /* 0x220 */
  397. u32 usb2_vbus_det_stat_set; /* 0x224 */
  398. u32 usb2_vbus_det_stat_clr; /* 0x228 */
  399. u32 usb2_vbus_det_stat_tog; /* 0x22c */
  400. u32 usb2_chrg_det_stat; /* 0x230 */
  401. u32 usb2_chrg_det_stat_set; /* 0x234 */
  402. u32 usb2_chrg_det_stat_clr; /* 0x238 */
  403. u32 usb2_chrg_det_stat_tog; /* 0x23c */
  404. u32 usb2_loopback; /* 0x240 */
  405. u32 usb2_loopback_set; /* 0x244 */
  406. u32 usb2_loopback_clr; /* 0x248 */
  407. u32 usb2_loopback_tog; /* 0x24c */
  408. u32 usb2_misc; /* 0x250 */
  409. u32 usb2_misc_set; /* 0x254 */
  410. u32 usb2_misc_clr; /* 0x258 */
  411. u32 usb2_misc_tog; /* 0x25c */
  412. u32 digprog; /* 0x260 */
  413. };
  414. struct iomuxc_base_regs {
  415. u32 gpr[14]; /* 0x000 */
  416. u32 obsrv[5]; /* 0x038 */
  417. u32 swmux_ctl[197]; /* 0x04c */
  418. u32 swpad_ctl[250]; /* 0x360 */
  419. u32 swgrp[26]; /* 0x748 */
  420. u32 daisy[104]; /* 0x7b0..94c */
  421. };
  422. struct src_regs {
  423. u32 scr; /* 0x00 */
  424. u32 sbmr1; /* 0x04 */
  425. u32 srsr; /* 0x08 */
  426. u32 reserved1; /* 0x0c */
  427. u32 reserved2; /* 0x10 */
  428. u32 sisr; /* 0x14 */
  429. u32 simr; /* 0x18 */
  430. u32 sbmr2; /* 0x1c */
  431. u32 gpr1; /* 0x20 */
  432. u32 gpr2; /* 0x24 */
  433. u32 gpr3; /* 0x28 */
  434. u32 gpr4; /* 0x2c */
  435. u32 gpr5; /* 0x30 */
  436. u32 gpr6; /* 0x34 */
  437. u32 gpr7; /* 0x38 */
  438. u32 gpr8; /* 0x3c */
  439. u32 gpr9; /* 0x40 */
  440. u32 gpr10; /* 0x44 */
  441. };
  442. #endif /* __ASSEMBLER__*/
  443. #endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */