diff options
author | Dong Aisheng <dong.aisheng@linaro.org> | 2012-09-04 22:57:14 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-17 09:24:31 -0400 |
commit | df37e0c0931ceeb159c8e017445c6d4799b7f345 (patch) | |
tree | 704168f7c67179490dab7af25be5c5d76e7777cc /include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | |
parent | 87d687301f380729ec320619f100f3ba39f3693d (diff) |
ARM: imx6q: Add iomuxc gpr support into syscon
Include headfile for easy using.
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/syscon/imx6q-iomuxc-gpr.h')
-rw-r--r-- | include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | 319 |
1 files changed, 319 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon/imx6q-iomuxc-gpr.h b/include/linux/mfd/syscon/imx6q-iomuxc-gpr.h new file mode 100644 index 000000000000..dab34a1deb2c --- /dev/null +++ b/include/linux/mfd/syscon/imx6q-iomuxc-gpr.h | |||
@@ -0,0 +1,319 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Freescale Semiconductor, Inc. | ||
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 version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #ifndef __LINUX_IMX6Q_IOMUXC_GPR_H | ||
10 | #define __LINUX_IMX6Q_IOMUXC_GPR_H | ||
11 | |||
12 | #include <linux/bitops.h> | ||
13 | |||
14 | #define IOMUXC_GPR0 0x00 | ||
15 | #define IOMUXC_GPR1 0x04 | ||
16 | #define IOMUXC_GPR2 0x08 | ||
17 | #define IOMUXC_GPR3 0x0c | ||
18 | #define IOMUXC_GPR4 0x10 | ||
19 | #define IOMUXC_GPR5 0x14 | ||
20 | #define IOMUXC_GPR6 0x18 | ||
21 | #define IOMUXC_GPR7 0x1c | ||
22 | #define IOMUXC_GPR8 0x20 | ||
23 | #define IOMUXC_GPR9 0x24 | ||
24 | #define IOMUXC_GPR10 0x28 | ||
25 | #define IOMUXC_GPR11 0x2c | ||
26 | #define IOMUXC_GPR12 0x30 | ||
27 | #define IOMUXC_GPR13 0x34 | ||
28 | |||
29 | #define IMX6Q_GPR0_CLOCK_8_MUX_SEL_MASK (0x3 << 30) | ||
30 | #define IMX6Q_GPR0_CLOCK_8_MUX_SEL_AUDMUX_RXCLK_P7_MUXED (0x0 << 30) | ||
31 | #define IMX6Q_GPR0_CLOCK_8_MUX_SEL_AUDMUX_RXCLK_P7 (0x1 << 30) | ||
32 | #define IMX6Q_GPR0_CLOCK_8_MUX_SEL_SSI3_SSI_SRCK (0x2 << 30) | ||
33 | #define IMX6Q_GPR0_CLOCK_8_MUX_SEL_SSI3_RX_BIT_CLK (0x3 << 30) | ||
34 | #define IMX6Q_GPR0_CLOCK_0_MUX_SEL_MASK (0x3 << 28) | ||
35 | #define IMX6Q_GPR0_CLOCK_0_MUX_SEL_ESAI1_IPP_IND_SCKR_MUXED (0x0 << 28) | ||
36 | #define IMX6Q_GPR0_CLOCK_0_MUX_SEL_ESAI1_IPP_IND_SCKR (0x1 << 28) | ||
37 | #define IMX6Q_GPR0_CLOCK_0_MUX_SEL_ESAI1_IPP_DO_SCKR (0x2 << 28) | ||
38 | #define IMX6Q_GPR0_CLOCK_B_MUX_SEL_MASK (0x3 << 26) | ||
39 | #define IMX6Q_GPR0_CLOCK_B_MUX_SEL_AUDMUX_TXCLK_P7_MUXED (0x0 << 26) | ||
40 | #define IMX6Q_GPR0_CLOCK_B_MUX_SEL_AUDMUX_TXCLK_P7 (0x1 << 26) | ||
41 | #define IMX6Q_GPR0_CLOCK_B_MUX_SEL_SSI3_SSI_STCK (0x2 << 26) | ||
42 | #define IMX6Q_GPR0_CLOCK_B_MUX_SEL_SSI3_TX_BIT_CLK (0x3 << 26) | ||
43 | #define IMX6Q_GPR0_CLOCK_3_MUX_SEL_MASK (0x3 << 24) | ||
44 | #define IMX6Q_GPR0_CLOCK_3_MUX_SEL_AUDMUX_RXCLK_P7_MUXED (0x3 << 24) | ||
45 | #define IMX6Q_GPR0_CLOCK_3_MUX_SEL_AUDMUX_RXCLK_P7 (0x3 << 24) | ||
46 | #define IMX6Q_GPR0_CLOCK_3_MUX_SEL_SSI3_SSI_SRCK (0x3 << 24) | ||
47 | #define IMX6Q_GPR0_CLOCK_3_MUX_SEL_SSI3_RX_BIT_CLK (0x3 << 24) | ||
48 | #define IMX6Q_GPR0_CLOCK_A_MUX_SEL_MASK (0x3 << 22) | ||
49 | #define IMX6Q_GPR0_CLOCK_A_MUX_SEL_AUDMUX_TXCLK_P2_MUXED (0x0 << 22) | ||
50 | #define IMX6Q_GPR0_CLOCK_A_MUX_SEL_AUDMUX_TXCLK_P2 (0x1 << 22) | ||
51 | #define IMX6Q_GPR0_CLOCK_A_MUX_SEL_SSI2_SSI_STCK (0x2 << 22) | ||
52 | #define IMX6Q_GPR0_CLOCK_A_MUX_SEL_SSI2_TX_BIT_CLK (0x3 << 22) | ||
53 | #define IMX6Q_GPR0_CLOCK_2_MUX_SEL_MASK (0x3 << 20) | ||
54 | #define IMX6Q_GPR0_CLOCK_2_MUX_SEL_AUDMUX_RXCLK_P2_MUXED (0x0 << 20) | ||
55 | #define IMX6Q_GPR0_CLOCK_2_MUX_SEL_AUDMUX_RXCLK_P2 (0x1 << 20) | ||
56 | #define IMX6Q_GPR0_CLOCK_2_MUX_SEL_SSI2_SSI_SRCK (0x2 << 20) | ||
57 | #define IMX6Q_GPR0_CLOCK_2_MUX_SEL_SSI2_RX_BIT_CLK (0x3 << 20) | ||
58 | #define IMX6Q_GPR0_CLOCK_9_MUX_SEL_MASK (0x3 << 18) | ||
59 | #define IMX6Q_GPR0_CLOCK_9_MUX_SEL_AUDMUX_TXCLK_P1_MUXED (0x0 << 18) | ||
60 | #define IMX6Q_GPR0_CLOCK_9_MUX_SEL_AUDMUX_TXCLK_P1 (0x1 << 18) | ||
61 | #define IMX6Q_GPR0_CLOCK_9_MUX_SEL_SSI1_SSI_STCK (0x2 << 18) | ||
62 | #define IMX6Q_GPR0_CLOCK_9_MUX_SEL_SSI1_SSI_TX_BIT_CLK (0x3 << 18) | ||
63 | #define IMX6Q_GPR0_CLOCK_1_MUX_SEL_MASK (0x3 << 16) | ||
64 | #define IMX6Q_GPR0_CLOCK_1_MUX_SEL_AUDMUX_RXCLK_P1_MUXED (0x0 << 16) | ||
65 | #define IMX6Q_GPR0_CLOCK_1_MUX_SEL_AUDMUX_RXCLK_P1 (0x1 << 16) | ||
66 | #define IMX6Q_GPR0_CLOCK_1_MUX_SEL_SSI1_SSI_SRCK (0x2 << 16) | ||
67 | #define IMX6Q_GPR0_CLOCK_1_MUX_SEL_SSI1_SSI_RX_BIT_CLK (0x3 << 16) | ||
68 | #define IMX6Q_GPR0_TX_CLK2_MUX_SEL_MASK (0x3 << 14) | ||
69 | #define IMX6Q_GPR0_TX_CLK2_MUX_SEL_ASRCK_CLK1 (0x0 << 14) | ||
70 | #define IMX6Q_GPR0_TX_CLK2_MUX_SEL_ASRCK_CLK2 (0x1 << 14) | ||
71 | #define IMX6Q_GPR0_TX_CLK2_MUX_SEL_ASRCK_CLK3 (0x2 << 14) | ||
72 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL7_MASK BIT(7) | ||
73 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL7_SPDIF 0x0 | ||
74 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL7_IOMUX BIT(7) | ||
75 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL6_MASK BIT(6) | ||
76 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL6_ESAI 0x0 | ||
77 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL6_I2C3 BIT(6) | ||
78 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL5_MASK BIT(5) | ||
79 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL5_ECSPI4 0x0 | ||
80 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL5_EPIT2 BIT(5) | ||
81 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL4_MASK BIT(4) | ||
82 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL4_ECSPI4 0x0 | ||
83 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL4_I2C1 BIT(4) | ||
84 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL3_MASK BIT(3) | ||
85 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL3_ECSPI2 0x0 | ||
86 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL3_I2C1 BIT(3) | ||
87 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL2_MASK BIT(2) | ||
88 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL2_ECSPI1 0x0 | ||
89 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL2_I2C2 BIT(2) | ||
90 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL1_MASK BIT(1) | ||
91 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL1_ECSPI1 0x0 | ||
92 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL1_I2C3 BIT(1) | ||
93 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL0_MASK BIT(0) | ||
94 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL0_IPU1 0x0 | ||
95 | #define IMX6Q_GPR0_DMAREQ_MUX_SEL0_IOMUX BIT(0) | ||
96 | |||
97 | #define IMX6Q_GPR1_PCIE_REQ_MASK (0x3 << 30) | ||
98 | #define IMX6Q_GPR1_PCIE_EXIT_L1 BIT(28) | ||
99 | #define IMX6Q_GPR1_PCIE_RDY_L23 BIT(27) | ||
100 | #define IMX6Q_GPR1_PCIE_ENTER_L1 BIT(26) | ||
101 | #define IMX6Q_GPR1_MIPI_COLOR_SW BIT(25) | ||
102 | #define IMX6Q_GPR1_DPI_OFF BIT(24) | ||
103 | #define IMX6Q_GPR1_EXC_MON_MASK BIT(22) | ||
104 | #define IMX6Q_GPR1_EXC_MON_OKAY 0x0 | ||
105 | #define IMX6Q_GPR1_EXC_MON_SLVE BIT(22) | ||
106 | #define IMX6Q_GPR1_MIPI_IPU2_SEL_MASK BIT(21) | ||
107 | #define IMX6Q_GPR1_MIPI_IPU2_SEL_GASKET 0x0 | ||
108 | #define IMX6Q_GPR1_MIPI_IPU2_SEL_IOMUX BIT(21) | ||
109 | #define IMX6Q_GPR1_MIPI_IPU1_MUX_MASK BIT(20) | ||
110 | #define IMX6Q_GPR1_MIPI_IPU1_MUX_GASKET 0x0 | ||
111 | #define IMX6Q_GPR1_MIPI_IPU1_MUX_IOMUX BIT(20) | ||
112 | #define IMX6Q_GPR1_MIPI_IPU2_MUX_MASK BIT(19) | ||
113 | #define IMX6Q_GPR1_MIPI_IPU2_MUX_GASKET 0x0 | ||
114 | #define IMX6Q_GPR1_MIPI_IPU2_MUX_IOMUX BIT(19) | ||
115 | #define IMX6Q_GPR1_PCIE_TEST_PD BIT(18) | ||
116 | #define IMX6Q_GPR1_IPU_VPU_MUX_MASK BIT(17) | ||
117 | #define IMX6Q_GPR1_IPU_VPU_MUX_IPU1 0x0 | ||
118 | #define IMX6Q_GPR1_IPU_VPU_MUX_IPU2 BIT(17) | ||
119 | #define IMX6Q_GPR1_PCIE_REF_CLK_EN BIT(16) | ||
120 | #define IMX6Q_GPR1_USB_EXP_MODE BIT(15) | ||
121 | #define IMX6Q_GPR1_PCIE_INT BIT(14) | ||
122 | #define IMX6Q_GPR1_USB_OTG_ID_SEL_MASK BIT(13) | ||
123 | #define IMX6Q_GPR1_USB_OTG_ID_SEL_ENET_RX_ER 0x0 | ||
124 | #define IMX6Q_GPR1_USB_OTG_ID_SEL_GPIO_1 BIT(13) | ||
125 | #define IMX6Q_GPR1_GINT BIT(12) | ||
126 | #define IMX6Q_GPR1_ADDRS3_MASK (0x3 << 10) | ||
127 | #define IMX6Q_GPR1_ADDRS3_32MB (0x0 << 10) | ||
128 | #define IMX6Q_GPR1_ADDRS3_64MB (0x1 << 10) | ||
129 | #define IMX6Q_GPR1_ADDRS3_128MB (0x2 << 10) | ||
130 | #define IMX6Q_GPR1_ACT_CS3 BIT(9) | ||
131 | #define IMX6Q_GPR1_ADDRS2_MASK (0x3 << 7) | ||
132 | #define IMX6Q_GPR1_ACT_CS2 BIT(6) | ||
133 | #define IMX6Q_GPR1_ADDRS1_MASK (0x3 << 4) | ||
134 | #define IMX6Q_GPR1_ACT_CS1 BIT(3) | ||
135 | #define IMX6Q_GPR1_ADDRS0_MASK (0x3 << 1) | ||
136 | #define IMX6Q_GPR1_ACT_CS0 BIT(0) | ||
137 | |||
138 | #define IMX6Q_GPR2_COUNTER_RESET_VAL_MASK (0x3 << 20) | ||
139 | #define IMX6Q_GPR2_COUNTER_RESET_VAL_5 (0x0 << 20) | ||
140 | #define IMX6Q_GPR2_COUNTER_RESET_VAL_3 (0x1 << 20) | ||
141 | #define IMX6Q_GPR2_COUNTER_RESET_VAL_4 (0x2 << 20) | ||
142 | #define IMX6Q_GPR2_COUNTER_RESET_VAL_6 (0x3 << 20) | ||
143 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_MASK (0x7 << 16) | ||
144 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_0 (0x0 << 16) | ||
145 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_1 (0x1 << 16) | ||
146 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_2 (0x2 << 16) | ||
147 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_3 (0x3 << 16) | ||
148 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_4 (0x4 << 16) | ||
149 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_5 (0x5 << 16) | ||
150 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_6 (0x6 << 16) | ||
151 | #define IMX6Q_GPR2_LVDS_CLK_SHIFT_7 (0x7 << 16) | ||
152 | #define IMX6Q_GPR2_BGREF_RRMODE_MASK BIT(15) | ||
153 | #define IMX6Q_GPR2_BGREF_RRMODE_EXT_RESISTOR 0x0 | ||
154 | #define IMX6Q_GPR2_BGREF_RRMODE_INT_RESISTOR BIT(15) | ||
155 | #define IMX6Q_GPR2_DI1_VS_POLARITY_MASK BIT(10) | ||
156 | #define IMX6Q_GPR2_DI1_VS_POLARITY_ACTIVE_H 0x0 | ||
157 | #define IMX6Q_GPR2_DI1_VS_POLARITY_ACTIVE_L BIT(10) | ||
158 | #define IMX6Q_GPR2_DI0_VS_POLARITY_MASK BIT(9) | ||
159 | #define IMX6Q_GPR2_DI0_VS_POLARITY_ACTIVE_H 0x0 | ||
160 | #define IMX6Q_GPR2_DI0_VS_POLARITY_ACTIVE_L BIT(9) | ||
161 | #define IMX6Q_GPR2_BIT_MAPPING_CH1_MASK BIT(8) | ||
162 | #define IMX6Q_GPR2_BIT_MAPPING_CH1_SPWG 0x0 | ||
163 | #define IMX6Q_GPR2_BIT_MAPPING_CH1_JEIDA BIT(8) | ||
164 | #define IMX6Q_GPR2_DATA_WIDTH_CH1_MASK BIT(7) | ||
165 | #define IMX6Q_GPR2_DATA_WIDTH_CH1_18BIT 0x0 | ||
166 | #define IMX6Q_GPR2_DATA_WIDTH_CH1_24BIT BIT(7) | ||
167 | #define IMX6Q_GPR2_BIT_MAPPING_CH0_MASK BIT(6) | ||
168 | #define IMX6Q_GPR2_BIT_MAPPING_CH0_SPWG 0x0 | ||
169 | #define IMX6Q_GPR2_BIT_MAPPING_CH0_JEIDA BIT(6) | ||
170 | #define IMX6Q_GPR2_DATA_WIDTH_CH0_MASK BIT(5) | ||
171 | #define IMX6Q_GPR2_DATA_WIDTH_CH0_18BIT 0x0 | ||
172 | #define IMX6Q_GPR2_DATA_WIDTH_CH0_24BIT BIT(5) | ||
173 | #define IMX6Q_GPR2_SPLIT_MODE_EN BIT(4) | ||
174 | #define IMX6Q_GPR2_CH1_MODE_MASK (0x3 << 2) | ||
175 | #define IMX6Q_GPR2_CH1_MODE_DISABLE (0x0 << 2) | ||
176 | #define IMX6Q_GPR2_CH1_MODE_EN_ROUTE_DI0 (0x1 << 2) | ||
177 | #define IMX6Q_GPR2_CH1_MODE_EN_ROUTE_DI1 (0x3 << 2) | ||
178 | #define IMX6Q_GPR2_CH0_MODE_MASK (0x3 << 0) | ||
179 | #define IMX6Q_GPR2_CH0_MODE_DISABLE (0x0 << 0) | ||
180 | #define IMX6Q_GPR2_CH0_MODE_EN_ROUTE_DI0 (0x1 << 0) | ||
181 | #define IMX6Q_GPR2_CH0_MODE_EN_ROUTE_DI1 (0x3 << 0) | ||
182 | |||
183 | #define IMX6Q_GPR3_GPU_DBG_MASK (0x3 << 29) | ||
184 | #define IMX6Q_GPR3_GPU_DBG_GPU3D (0x0 << 29) | ||
185 | #define IMX6Q_GPR3_GPU_DBG_GPU2D (0x1 << 29) | ||
186 | #define IMX6Q_GPR3_GPU_DBG_OPENVG (0x2 << 29) | ||
187 | #define IMX6Q_GPR3_BCH_WR_CACHE_CTL BIT(28) | ||
188 | #define IMX6Q_GPR3_BCH_RD_CACHE_CTL BIT(27) | ||
189 | #define IMX6Q_GPR3_USDHCX_WR_CACHE_CTL BIT(26) | ||
190 | #define IMX6Q_GPR3_USDHCX_RD_CACHE_CTL BIT(25) | ||
191 | #define IMX6Q_GPR3_OCRAM_CTL_MASK (0xf << 21) | ||
192 | #define IMX6Q_GPR3_OCRAM_STATUS_MASK (0xf << 17) | ||
193 | #define IMX6Q_GPR3_CORE3_DBG_ACK_EN BIT(16) | ||
194 | #define IMX6Q_GPR3_CORE2_DBG_ACK_EN BIT(15) | ||
195 | #define IMX6Q_GPR3_CORE1_DBG_ACK_EN BIT(14) | ||
196 | #define IMX6Q_GPR3_CORE0_DBG_ACK_EN BIT(13) | ||
197 | #define IMX6Q_GPR3_TZASC2_BOOT_LOCK BIT(12) | ||
198 | #define IMX6Q_GPR3_TZASC1_BOOT_LOCK BIT(11) | ||
199 | #define IMX6Q_GPR3_IPU_DIAG_MASK BIT(10) | ||
200 | #define IMX6Q_GPR3_LVDS1_MUX_CTL_MASK (0x3 << 8) | ||
201 | #define IMX6Q_GPR3_LVDS1_MUX_CTL_IPU1_DI0 (0x0 << 8) | ||
202 | #define IMX6Q_GPR3_LVDS1_MUX_CTL_IPU1_DI1 (0x1 << 8) | ||
203 | #define IMX6Q_GPR3_LVDS1_MUX_CTL_IPU2_DI0 (0x2 << 8) | ||
204 | #define IMX6Q_GPR3_LVDS1_MUX_CTL_IPU2_DI1 (0x3 << 8) | ||
205 | #define IMX6Q_GPR3_LVDS0_MUX_CTL_MASK (0x3 << 6) | ||
206 | #define IMX6Q_GPR3_LVDS0_MUX_CTL_IPU1_DI0 (0x0 << 6) | ||
207 | #define IMX6Q_GPR3_LVDS0_MUX_CTL_IPU1_DI1 (0x1 << 6) | ||
208 | #define IMX6Q_GPR3_LVDS0_MUX_CTL_IPU2_DI0 (0x2 << 6) | ||
209 | #define IMX6Q_GPR3_LVDS0_MUX_CTL_IPU2_DI1 (0x3 << 6) | ||
210 | #define IMX6Q_GPR3_MIPI_MUX_CTL_MASK (0x3 << 4) | ||
211 | #define IMX6Q_GPR3_MIPI_MUX_CTL_IPU1_DI0 (0x0 << 4) | ||
212 | #define IMX6Q_GPR3_MIPI_MUX_CTL_IPU1_DI1 (0x1 << 4) | ||
213 | #define IMX6Q_GPR3_MIPI_MUX_CTL_IPU2_DI0 (0x2 << 4) | ||
214 | #define IMX6Q_GPR3_MIPI_MUX_CTL_IPU2_DI1 (0x3 << 4) | ||
215 | #define IMX6Q_GPR3_HDMI_MUX_CTL_MASK (0x3 << 2) | ||
216 | #define IMX6Q_GPR3_HDMI_MUX_CTL_IPU1_DI0 (0x0 << 2) | ||
217 | #define IMX6Q_GPR3_HDMI_MUX_CTL_IPU1_DI1 (0x1 << 2) | ||
218 | #define IMX6Q_GPR3_HDMI_MUX_CTL_IPU2_DI0 (0x2 << 2) | ||
219 | #define IMX6Q_GPR3_HDMI_MUX_CTL_IPU2_DI1 (0x3 << 2) | ||
220 | |||
221 | #define IMX6Q_GPR4_VDOA_WR_CACHE_SEL BIT(31) | ||
222 | #define IMX6Q_GPR4_VDOA_RD_CACHE_SEL BIT(30) | ||
223 | #define IMX6Q_GPR4_VDOA_WR_CACHE_VAL BIT(29) | ||
224 | #define IMX6Q_GPR4_VDOA_RD_CACHE_VAL BIT(28) | ||
225 | #define IMX6Q_GPR4_PCIE_WR_CACHE_SEL BIT(27) | ||
226 | #define IMX6Q_GPR4_PCIE_RD_CACHE_SEL BIT(26) | ||
227 | #define IMX6Q_GPR4_PCIE_WR_CACHE_VAL BIT(25) | ||
228 | #define IMX6Q_GPR4_PCIE_RD_CACHE_VAL BIT(24) | ||
229 | #define IMX6Q_GPR4_SDMA_STOP_ACK BIT(19) | ||
230 | #define IMX6Q_GPR4_CAN2_STOP_ACK BIT(18) | ||
231 | #define IMX6Q_GPR4_CAN1_STOP_ACK BIT(17) | ||
232 | #define IMX6Q_GPR4_ENET_STOP_ACK BIT(16) | ||
233 | #define IMX6Q_GPR4_SOC_VERSION_MASK (0xff << 8) | ||
234 | #define IMX6Q_GPR4_SOC_VERSION_OFF 0x8 | ||
235 | #define IMX6Q_GPR4_VPU_WR_CACHE_SEL BIT(7) | ||
236 | #define IMX6Q_GPR4_VPU_RD_CACHE_SEL BIT(6) | ||
237 | #define IMX6Q_GPR4_VPU_P_WR_CACHE_VAL BIT(3) | ||
238 | #define IMX6Q_GPR4_VPU_P_RD_CACHE_VAL_MASK BIT(2) | ||
239 | #define IMX6Q_GPR4_IPU_WR_CACHE_CTL BIT(1) | ||
240 | #define IMX6Q_GPR4_IPU_RD_CACHE_CTL BIT(0) | ||
241 | |||
242 | #define IMX6Q_GPR5_L2_CLK_STOP BIT(8) | ||
243 | |||
244 | #define IMX6Q_GPR9_TZASC2_BYP BIT(1) | ||
245 | #define IMX6Q_GPR9_TZASC1_BYP BIT(0) | ||
246 | |||
247 | #define IMX6Q_GPR10_LOCK_DBG_EN BIT(29) | ||
248 | #define IMX6Q_GPR10_LOCK_DBG_CLK_EN BIT(28) | ||
249 | #define IMX6Q_GPR10_LOCK_SEC_ERR_RESP BIT(27) | ||
250 | #define IMX6Q_GPR10_LOCK_OCRAM_TZ_ADDR (0x3f << 21) | ||
251 | #define IMX6Q_GPR10_LOCK_OCRAM_TZ_EN BIT(20) | ||
252 | #define IMX6Q_GPR10_LOCK_DCIC2_MUX_MASK (0x3 << 18) | ||
253 | #define IMX6Q_GPR10_LOCK_DCIC1_MUX_MASK (0x3 << 16) | ||
254 | #define IMX6Q_GPR10_DBG_EN BIT(13) | ||
255 | #define IMX6Q_GPR10_DBG_CLK_EN BIT(12) | ||
256 | #define IMX6Q_GPR10_SEC_ERR_RESP_MASK BIT(11) | ||
257 | #define IMX6Q_GPR10_SEC_ERR_RESP_OKEY 0x0 | ||
258 | #define IMX6Q_GPR10_SEC_ERR_RESP_SLVE BIT(11) | ||
259 | #define IMX6Q_GPR10_OCRAM_TZ_ADDR_MASK (0x3f << 5) | ||
260 | #define IMX6Q_GPR10_OCRAM_TZ_EN_MASK BIT(4) | ||
261 | #define IMX6Q_GPR10_DCIC2_MUX_CTL_MASK (0x3 << 2) | ||
262 | #define IMX6Q_GPR10_DCIC2_MUX_CTL_IPU1_DI0 (0x0 << 2) | ||
263 | #define IMX6Q_GPR10_DCIC2_MUX_CTL_IPU1_DI1 (0x1 << 2) | ||
264 | #define IMX6Q_GPR10_DCIC2_MUX_CTL_IPU2_DI0 (0x2 << 2) | ||
265 | #define IMX6Q_GPR10_DCIC2_MUX_CTL_IPU2_DI1 (0x3 << 2) | ||
266 | #define IMX6Q_GPR10_DCIC1_MUX_CTL_MASK (0x3 << 0) | ||
267 | #define IMX6Q_GPR10_DCIC1_MUX_CTL_IPU1_DI0 (0x0 << 0) | ||
268 | #define IMX6Q_GPR10_DCIC1_MUX_CTL_IPU1_DI1 (0x1 << 0) | ||
269 | #define IMX6Q_GPR10_DCIC1_MUX_CTL_IPU2_DI0 (0x2 << 0) | ||
270 | #define IMX6Q_GPR10_DCIC1_MUX_CTL_IPU2_DI1 (0x3 << 0) | ||
271 | |||
272 | #define IMX6Q_GPR12_ARMP_IPG_CLK_EN BIT(27) | ||
273 | #define IMX6Q_GPR12_ARMP_AHB_CLK_EN BIT(26) | ||
274 | #define IMX6Q_GPR12_ARMP_ATB_CLK_EN BIT(25) | ||
275 | #define IMX6Q_GPR12_ARMP_APB_CLK_EN BIT(24) | ||
276 | #define IMX6Q_GPR12_PCIE_CTL_2 BIT(10) | ||
277 | |||
278 | #define IMX6Q_GPR13_SDMA_STOP_REQ BIT(30) | ||
279 | #define IMX6Q_GPR13_CAN2_STOP_REQ BIT(29) | ||
280 | #define IMX6Q_GPR13_CAN1_STOP_REQ BIT(28) | ||
281 | #define IMX6Q_GPR13_ENET_STOP_REQ BIT(27) | ||
282 | #define IMX6Q_GPR13_SATA_PHY_8_MASK (0x7 << 24) | ||
283 | #define IMX6Q_GPR13_SATA_PHY_8_0_5_DB (0x0 << 24) | ||
284 | #define IMX6Q_GPR13_SATA_PHY_8_1_0_DB (0x1 << 24) | ||
285 | #define IMX6Q_GPR13_SATA_PHY_8_1_5_DB (0x2 << 24) | ||
286 | #define IMX6Q_GPR13_SATA_PHY_8_2_0_DB (0x3 << 24) | ||
287 | #define IMX6Q_GPR13_SATA_PHY_8_2_5_DB (0x4 << 24) | ||
288 | #define IMX6Q_GPR13_SATA_PHY_8_3_0_DB (0x5 << 24) | ||
289 | #define IMX6Q_GPR13_SATA_PHY_8_3_5_DB (0x6 << 24) | ||
290 | #define IMX6Q_GPR13_SATA_PHY_8_4_0_DB (0x7 << 24) | ||
291 | #define IMX6Q_GPR13_SATA_PHY_7_MASK (0x1f << 19) | ||
292 | #define IMX6Q_GPR13_SATA_PHY_7_SATA1I (0x10 << 19) | ||
293 | #define IMX6Q_GPR13_SATA_PHY_7_SATA1M (0x10 << 19) | ||
294 | #define IMX6Q_GPR13_SATA_PHY_7_SATA1X (0x1a << 19) | ||
295 | #define IMX6Q_GPR13_SATA_PHY_7_SATA2I (0x12 << 19) | ||
296 | #define IMX6Q_GPR13_SATA_PHY_7_SATA2M (0x12 << 19) | ||
297 | #define IMX6Q_GPR13_SATA_PHY_7_SATA2X (0x1a << 19) | ||
298 | #define IMX6Q_GPR13_SATA_PHY_6_MASK (0x7 << 16) | ||
299 | #define IMX6Q_GPR13_SATA_SPEED_MASK BIT(15) | ||
300 | #define IMX6Q_GPR13_SATA_SPEED_1P5G 0x0 | ||
301 | #define IMX6Q_GPR13_SATA_SPEED_3P0G BIT(15) | ||
302 | #define IMX6Q_GPR13_SATA_PHY_5 BIT(14) | ||
303 | #define IMX6Q_GPR13_SATA_PHY_4_MASK (0x7 << 11) | ||
304 | #define IMX6Q_GPR13_SATA_PHY_4_16_16 (0x0 << 11) | ||
305 | #define IMX6Q_GPR13_SATA_PHY_4_14_16 (0x1 << 11) | ||
306 | #define IMX6Q_GPR13_SATA_PHY_4_12_16 (0x2 << 11) | ||
307 | #define IMX6Q_GPR13_SATA_PHY_4_10_16 (0x3 << 11) | ||
308 | #define IMX6Q_GPR13_SATA_PHY_4_9_16 (0x4 << 11) | ||
309 | #define IMX6Q_GPR13_SATA_PHY_4_8_16 (0x5 << 11) | ||
310 | #define IMX6Q_GPR13_SATA_PHY_3_MASK (0xf << 7) | ||
311 | #define IMX6Q_GPR13_SATA_PHY_3_OFF 0x7 | ||
312 | #define IMX6Q_GPR13_SATA_PHY_2_MASK (0x1f << 2) | ||
313 | #define IMX6Q_GPR13_SATA_PHY_2_OFF 0x2 | ||
314 | #define IMX6Q_GPR13_SATA_PHY_1_MASK (0x3 << 0) | ||
315 | #define IMX6Q_GPR13_SATA_PHY_1_FAST (0x0 << 0) | ||
316 | #define IMX6Q_GPR13_SATA_PHY_1_MED (0x1 << 0) | ||
317 | #define IMX6Q_GPR13_SATA_PHY_1_SLOW (0x2 << 0) | ||
318 | |||
319 | #endif /* __LINUX_IMX6Q_IOMUXC_GPR_H */ | ||