mux_omap5.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. /*
  2. * (C) Copyright 2004-2009
  3. * Texas Instruments Incorporated
  4. * Richard Woodruff <r-woodruff2@ti.com>
  5. * Aneesh V <aneesh@ti.com>
  6. * Balaji Krishnamoorthy <balajitk@ti.com>
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. */
  10. #ifndef _MUX_OMAP5_H_
  11. #define _MUX_OMAP5_H_
  12. #include <asm/types.h>
  13. #ifdef CONFIG_OFF_PADCONF
  14. #define OFF_PD (1 << 12)
  15. #define OFF_PU (3 << 12)
  16. #define OFF_OUT_PTD (0 << 10)
  17. #define OFF_OUT_PTU (2 << 10)
  18. #define OFF_IN (1 << 10)
  19. #define OFF_OUT (0 << 10)
  20. #define OFF_EN (1 << 9)
  21. #else
  22. #define OFF_PD (0 << 12)
  23. #define OFF_PU (0 << 12)
  24. #define OFF_OUT_PTD (0 << 10)
  25. #define OFF_OUT_PTU (0 << 10)
  26. #define OFF_IN (0 << 10)
  27. #define OFF_OUT (0 << 10)
  28. #define OFF_EN (0 << 9)
  29. #endif
  30. #define IEN (1 << 8)
  31. #define IDIS (0 << 8)
  32. #define PTU (3 << 3)
  33. #define PTD (1 << 3)
  34. #define EN (1 << 3)
  35. #define DIS (0 << 3)
  36. #define M0 0
  37. #define M1 1
  38. #define M2 2
  39. #define M3 3
  40. #define M4 4
  41. #define M5 5
  42. #define M6 6
  43. #define M7 7
  44. #define SAFE_MODE M7
  45. #ifdef CONFIG_OFF_PADCONF
  46. #define OFF_IN_PD (OFF_PD | OFF_IN | OFF_EN)
  47. #define OFF_IN_PU (OFF_PU | OFF_IN | OFF_EN)
  48. #define OFF_OUT_PD (OFF_OUT_PTD | OFF_OUT | OFF_EN)
  49. #define OFF_OUT_PU (OFF_OUT_PTU | OFF_OUT | OFF_EN)
  50. #else
  51. #define OFF_IN_PD 0
  52. #define OFF_IN_PU 0
  53. #define OFF_OUT_PD 0
  54. #define OFF_OUT_PU 0
  55. #endif
  56. #define CORE_REVISION 0x0000
  57. #define CORE_HWINFO 0x0004
  58. #define CORE_SYSCONFIG 0x0010
  59. #define EMMC_CLK 0x0040
  60. #define EMMC_CMD 0x0042
  61. #define EMMC_DATA0 0x0044
  62. #define EMMC_DATA1 0x0046
  63. #define EMMC_DATA2 0x0048
  64. #define EMMC_DATA3 0x004a
  65. #define EMMC_DATA4 0x004c
  66. #define EMMC_DATA5 0x004e
  67. #define EMMC_DATA6 0x0050
  68. #define EMMC_DATA7 0x0052
  69. #define C2C_CLKOUT0 0x0054
  70. #define C2C_CLKOUT1 0x0056
  71. #define C2C_CLKIN0 0x0058
  72. #define C2C_CLKIN1 0x005a
  73. #define C2C_DATAIN0 0x005c
  74. #define C2C_DATAIN1 0x005e
  75. #define C2C_DATAIN2 0x0060
  76. #define C2C_DATAIN3 0x0062
  77. #define C2C_DATAIN4 0x0064
  78. #define C2C_DATAIN5 0x0066
  79. #define C2C_DATAIN6 0x0068
  80. #define C2C_DATAIN7 0x006a
  81. #define C2C_DATAOUT0 0x006c
  82. #define C2C_DATAOUT1 0x006e
  83. #define C2C_DATAOUT2 0x0070
  84. #define C2C_DATAOUT3 0x0072
  85. #define C2C_DATAOUT4 0x0074
  86. #define C2C_DATAOUT5 0x0076
  87. #define C2C_DATAOUT6 0x0078
  88. #define C2C_DATAOUT7 0x007a
  89. #define C2C_DATA8 0x007c
  90. #define C2C_DATA9 0x007e
  91. #define C2C_DATA10 0x0080
  92. #define C2C_DATA11 0x0082
  93. #define C2C_DATA12 0x0084
  94. #define C2C_DATA13 0x0086
  95. #define C2C_DATA14 0x0088
  96. #define C2C_DATA15 0x008a
  97. #define LLIA_WAKEREQOUT 0x008c
  98. #define LLIB_WAKEREQOUT 0x008e
  99. #define HSI1_ACREADY 0x0090
  100. #define HSI1_CAREADY 0x0092
  101. #define HSI1_ACWAKE 0x0094
  102. #define HSI1_CAWAKE 0x0096
  103. #define HSI1_ACFLAG 0x0098
  104. #define HSI1_ACDATA 0x009a
  105. #define HSI1_CAFLAG 0x009c
  106. #define HSI1_CADATA 0x009e
  107. #define UART1_TX 0x00a0
  108. #define UART1_CTS 0x00a2
  109. #define UART1_RX 0x00a4
  110. #define UART1_RTS 0x00a6
  111. #define HSI2_CAREADY 0x00a8
  112. #define HSI2_ACREADY 0x00aa
  113. #define HSI2_CAWAKE 0x00ac
  114. #define HSI2_ACWAKE 0x00ae
  115. #define HSI2_CAFLAG 0x00b0
  116. #define HSI2_CADATA 0x00b2
  117. #define HSI2_ACFLAG 0x00b4
  118. #define HSI2_ACDATA 0x00b6
  119. #define UART2_RTS 0x00b8
  120. #define UART2_CTS 0x00ba
  121. #define UART2_RX 0x00bc
  122. #define UART2_TX 0x00be
  123. #define USBB1_HSIC_STROBE 0x00c0
  124. #define USBB1_HSIC_DATA 0x00c2
  125. #define USBB2_HSIC_STROBE 0x00c4
  126. #define USBB2_HSIC_DATA 0x00c6
  127. #define TIMER10_PWM_EVT 0x00c8
  128. #define DSIPORTA_TE0 0x00ca
  129. #define DSIPORTA_LANE0X 0x00cc
  130. #define DSIPORTA_LANE0Y 0x00ce
  131. #define DSIPORTA_LANE1X 0x00d0
  132. #define DSIPORTA_LANE1Y 0x00d2
  133. #define DSIPORTA_LANE2X 0x00d4
  134. #define DSIPORTA_LANE2Y 0x00d6
  135. #define DSIPORTA_LANE3X 0x00d8
  136. #define DSIPORTA_LANE3Y 0x00da
  137. #define DSIPORTA_LANE4X 0x00dc
  138. #define DSIPORTA_LANE4Y 0x00de
  139. #define DSIPORTC_LANE0X 0x00e0
  140. #define DSIPORTC_LANE0Y 0x00e2
  141. #define DSIPORTC_LANE1X 0x00e4
  142. #define DSIPORTC_LANE1Y 0x00e6
  143. #define DSIPORTC_LANE2X 0x00e8
  144. #define DSIPORTC_LANE2Y 0x00ea
  145. #define DSIPORTC_LANE3X 0x00ec
  146. #define DSIPORTC_LANE3Y 0x00ee
  147. #define DSIPORTC_LANE4X 0x00f0
  148. #define DSIPORTC_LANE4Y 0x00f2
  149. #define DSIPORTC_TE0 0x00f4
  150. #define TIMER9_PWM_EVT 0x00f6
  151. #define I2C4_SCL 0x00f8
  152. #define I2C4_SDA 0x00fa
  153. #define MCSPI2_CLK 0x00fc
  154. #define MCSPI2_SIMO 0x00fe
  155. #define MCSPI2_SOMI 0x0100
  156. #define MCSPI2_CS0 0x0102
  157. #define RFBI_DATA15 0x0104
  158. #define RFBI_DATA14 0x0106
  159. #define RFBI_DATA13 0x0108
  160. #define RFBI_DATA12 0x010a
  161. #define RFBI_DATA11 0x010c
  162. #define RFBI_DATA10 0x010e
  163. #define RFBI_DATA9 0x0110
  164. #define RFBI_DATA8 0x0112
  165. #define RFBI_DATA7 0x0114
  166. #define RFBI_DATA6 0x0116
  167. #define RFBI_DATA5 0x0118
  168. #define RFBI_DATA4 0x011a
  169. #define RFBI_DATA3 0x011c
  170. #define RFBI_DATA2 0x011e
  171. #define RFBI_DATA1 0x0120
  172. #define RFBI_DATA0 0x0122
  173. #define RFBI_WE 0x0124
  174. #define RFBI_CS0 0x0126
  175. #define RFBI_A0 0x0128
  176. #define RFBI_RE 0x012a
  177. #define RFBI_HSYNC0 0x012c
  178. #define RFBI_TE_VSYNC0 0x012e
  179. #define GPIO6_182 0x0130
  180. #define GPIO6_183 0x0132
  181. #define GPIO6_184 0x0134
  182. #define GPIO6_185 0x0136
  183. #define GPIO6_186 0x0138
  184. #define GPIO6_187 0x013a
  185. #define HDMI_CEC 0x013c
  186. #define HDMI_HPD 0x013e
  187. #define HDMI_DDC_SCL 0x0140
  188. #define HDMI_DDC_SDA 0x0142
  189. #define CSIPORTC_LANE0X 0x0144
  190. #define CSIPORTC_LANE0Y 0x0146
  191. #define CSIPORTC_LANE1X 0x0148
  192. #define CSIPORTC_LANE1Y 0x014a
  193. #define CSIPORTB_LANE0X 0x014c
  194. #define CSIPORTB_LANE0Y 0x014e
  195. #define CSIPORTB_LANE1X 0x0150
  196. #define CSIPORTB_LANE1Y 0x0152
  197. #define CSIPORTB_LANE2X 0x0154
  198. #define CSIPORTB_LANE2Y 0x0156
  199. #define CSIPORTA_LANE0X 0x0158
  200. #define CSIPORTA_LANE0Y 0x015a
  201. #define CSIPORTA_LANE1X 0x015c
  202. #define CSIPORTA_LANE1Y 0x015e
  203. #define CSIPORTA_LANE2X 0x0160
  204. #define CSIPORTA_LANE2Y 0x0162
  205. #define CSIPORTA_LANE3X 0x0164
  206. #define CSIPORTA_LANE3Y 0x0166
  207. #define CSIPORTA_LANE4X 0x0168
  208. #define CSIPORTA_LANE4Y 0x016a
  209. #define CAM_SHUTTER 0x016c
  210. #define CAM_STROBE 0x016e
  211. #define CAM_GLOBALRESET 0x0170
  212. #define TIMER11_PWM_EVT 0x0172
  213. #define TIMER5_PWM_EVT 0x0174
  214. #define TIMER6_PWM_EVT 0x0176
  215. #define TIMER8_PWM_EVT 0x0178
  216. #define I2C3_SCL 0x017a
  217. #define I2C3_SDA 0x017c
  218. #define GPIO8_233 0x017e
  219. #define GPIO8_234 0x0180
  220. #define ABE_CLKS 0x0182
  221. #define ABEDMIC_DIN1 0x0184
  222. #define ABEDMIC_DIN2 0x0186
  223. #define ABEDMIC_DIN3 0x0188
  224. #define ABEDMIC_CLK1 0x018a
  225. #define ABEDMIC_CLK2 0x018c
  226. #define ABEDMIC_CLK3 0x018e
  227. #define ABESLIMBUS1_CLOCK 0x0190
  228. #define ABESLIMBUS1_DATA 0x0192
  229. #define ABEMCBSP2_DR 0x0194
  230. #define ABEMCBSP2_DX 0x0196
  231. #define ABEMCBSP2_FSX 0x0198
  232. #define ABEMCBSP2_CLKX 0x019a
  233. #define ABEMCPDM_UL_DATA 0x019c
  234. #define ABEMCPDM_DL_DATA 0x019e
  235. #define ABEMCPDM_FRAME 0x01a0
  236. #define ABEMCPDM_LB_CLK 0x01a2
  237. #define WLSDIO_CLK 0x01a4
  238. #define WLSDIO_CMD 0x01a6
  239. #define WLSDIO_DATA0 0x01a8
  240. #define WLSDIO_DATA1 0x01aa
  241. #define WLSDIO_DATA2 0x01ac
  242. #define WLSDIO_DATA3 0x01ae
  243. #define UART5_RX 0x01b0
  244. #define UART5_TX 0x01b2
  245. #define UART5_CTS 0x01b4
  246. #define UART5_RTS 0x01b6
  247. #define I2C2_SCL 0x01b8
  248. #define I2C2_SDA 0x01ba
  249. #define MCSPI1_CLK 0x01bc
  250. #define MCSPI1_SOMI 0x01be
  251. #define MCSPI1_SIMO 0x01c0
  252. #define MCSPI1_CS0 0x01c2
  253. #define MCSPI1_CS1 0x01c4
  254. #define I2C5_SCL 0x01c6
  255. #define I2C5_SDA 0x01c8
  256. #define PERSLIMBUS2_CLOCK 0x01ca
  257. #define PERSLIMBUS2_DATA 0x01cc
  258. #define UART6_TX 0x01ce
  259. #define UART6_RX 0x01d0
  260. #define UART6_CTS 0x01d2
  261. #define UART6_RTS 0x01d4
  262. #define UART3_CTS_RCTX 0x01d6
  263. #define UART3_RTS_IRSD 0x01d8
  264. #define UART3_TX_IRTX 0x01da
  265. #define UART3_RX_IRRX 0x01dc
  266. #define USBB3_HSIC_STROBE 0x01de
  267. #define USBB3_HSIC_DATA 0x01e0
  268. #define SDCARD_CLK 0x01e2
  269. #define SDCARD_CMD 0x01e4
  270. #define SDCARD_DATA2 0x01e6
  271. #define SDCARD_DATA3 0x01e8
  272. #define SDCARD_DATA0 0x01ea
  273. #define SDCARD_DATA1 0x01ec
  274. #define USBD0_HS_DP 0x01ee
  275. #define USBD0_HS_DM 0x01f0
  276. #define I2C1_PMIC_SCL 0x01f2
  277. #define I2C1_PMIC_SDA 0x01f4
  278. #define USBD0_SS_RX 0x01f6
  279. #define LLIA_WAKEREQIN 0x0040
  280. #define LLIB_WAKEREQIN 0x0042
  281. #define DRM_EMU0 0x0044
  282. #define DRM_EMU1 0x0046
  283. #define JTAG_NTRST 0x0048
  284. #define JTAG_TCK 0x004a
  285. #define JTAG_RTCK 0x004c
  286. #define JTAG_TMSC 0x004e
  287. #define JTAG_TDI 0x0050
  288. #define JTAG_TDO 0x0052
  289. #define SYS_32K 0x0054
  290. #define FREF_CLK_IOREQ 0x0056
  291. #define FREF_CLK0_OUT 0x0058
  292. #define FREF_CLK1_OUT 0x005a
  293. #define FREF_CLK2_OUT 0x005c
  294. #define FREF_CLK2_REQ 0x005e
  295. #define FREF_CLK1_REQ 0x0060
  296. #define SYS_NRESPWRON 0x0062
  297. #define SYS_NRESWARM 0x0064
  298. #define SYS_PWR_REQ 0x0066
  299. #define SYS_NIRQ1 0x0068
  300. #define SYS_NIRQ2 0x006a
  301. #define SR_PMIC_SCL 0x006c
  302. #define SR_PMIC_SDA 0x006e
  303. #define SYS_BOOT0 0x0070
  304. #define SYS_BOOT1 0x0072
  305. #define SYS_BOOT2 0x0074
  306. #define SYS_BOOT3 0x0076
  307. #define SYS_BOOT4 0x0078
  308. #define SYS_BOOT5 0x007a
  309. #endif /* _MUX_OMAP5_H_ */