tegra124_carreg.h revision 1.5 1 1.5 jakllsch /* $NetBSD: tegra124_carreg.h,v 1.5 2017/01/22 17:40:06 jakllsch Exp $ */
2 1.1 jmcneill
3 1.1 jmcneill /*-
4 1.1 jmcneill * Copyright (c) 2015 Jared D. McNeill <jmcneill (at) invisible.ca>
5 1.1 jmcneill * All rights reserved.
6 1.1 jmcneill *
7 1.1 jmcneill * Redistribution and use in source and binary forms, with or without
8 1.1 jmcneill * modification, are permitted provided that the following conditions
9 1.1 jmcneill * are met:
10 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright
11 1.1 jmcneill * notice, this list of conditions and the following disclaimer.
12 1.1 jmcneill * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 jmcneill * notice, this list of conditions and the following disclaimer in the
14 1.1 jmcneill * documentation and/or other materials provided with the distribution.
15 1.1 jmcneill *
16 1.1 jmcneill * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 jmcneill * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 jmcneill * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 jmcneill * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 jmcneill * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 1.1 jmcneill * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 1.1 jmcneill * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 1.1 jmcneill * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 1.1 jmcneill * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.1 jmcneill * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.1 jmcneill * SUCH DAMAGE.
27 1.1 jmcneill */
28 1.1 jmcneill
29 1.1 jmcneill #ifndef _ARM_TEGRA124_CARREG_H
30 1.1 jmcneill #define _ARM_TEGRA124_CARREG_H
31 1.1 jmcneill
32 1.1 jmcneill #define CAR_RST_SOURCE_REG 0x00
33 1.1 jmcneill #define CAR_RST_SOURCE_WDT_EN __BIT(5)
34 1.1 jmcneill #define CAR_RST_SOURCE_WDT_SEL __BIT(4)
35 1.1 jmcneill #define CAR_RST_SOURCE_WDT_SYS_RST_EN __BIT(2)
36 1.1 jmcneill #define CAR_RST_SOURCE_WDT_COP_RST_EN __BIT(1)
37 1.1 jmcneill #define CAR_RST_SOURCE_WDT_CPU_RST_EN __BIT(0)
38 1.1 jmcneill
39 1.1 jmcneill #define CAR_CLK_OUT_ENB_L_REG 0x10
40 1.1 jmcneill #define CAR_CLK_OUT_ENB_H_REG 0x14
41 1.1 jmcneill #define CAR_CLK_OUT_ENB_U_REG 0x18
42 1.1 jmcneill
43 1.1 jmcneill #define CAR_PLL_LFSR_REG 0x54
44 1.1 jmcneill #define CAR_PLL_LFSR_RND __BITS(15,0)
45 1.1 jmcneill
46 1.1 jmcneill #define CAR_PLLP_BASE_REG 0xa0
47 1.1 jmcneill #define CAR_PLLP_BASE_BYPASS __BIT(31)
48 1.1 jmcneill #define CAR_PLLP_BASE_ENABLE __BIT(30)
49 1.1 jmcneill #define CAR_PLLP_BASE_REF_DIS __BIT(29)
50 1.1 jmcneill #define CAR_PLLP_BASE_OVERRIDE __BIT(28)
51 1.1 jmcneill #define CAR_PLLP_BASE_LOCK __BIT(27)
52 1.1 jmcneill #define CAR_PLLP_BASE_DIVP __BITS(22,20)
53 1.1 jmcneill #define CAR_PLLP_BASE_DIVN __BITS(17,8)
54 1.1 jmcneill #define CAR_PLLP_BASE_DIVM __BITS(4,0)
55 1.1 jmcneill
56 1.1 jmcneill #define CAR_PLLP_OUTA_REG 0xa4
57 1.4 jakllsch #define CAR_PLLP_OUTA_OUT2_RATIO __BITS(31,24)
58 1.4 jakllsch #define CAR_PLLP_OUTA_OUT2_OVRRIDE __BIT(18)
59 1.4 jakllsch #define CAR_PLLP_OUTA_OUT2_CLKEN __BIT(17)
60 1.4 jakllsch #define CAR_PLLP_OUTA_OUT2_RSTN __BIT(16)
61 1.4 jakllsch #define CAR_PLLP_OUTA_OUT1_RATIO __BITS(15,8)
62 1.4 jakllsch #define CAR_PLLP_OUTA_OUT1_OVRRIDE __BIT(2)
63 1.4 jakllsch #define CAR_PLLP_OUTA_OUT1_CLKEN __BIT(1)
64 1.4 jakllsch #define CAR_PLLP_OUTA_OUT1_RSTN __BIT(0)
65 1.1 jmcneill #define CAR_PLLP_OUTB_REG 0xa8
66 1.1 jmcneill #define CAR_PLLP_OUTB_OUT4_RATIO __BITS(31,24)
67 1.1 jmcneill #define CAR_PLLP_OUTB_OUT4_OVRRIDE __BIT(18)
68 1.1 jmcneill #define CAR_PLLP_OUTB_OUT4_CLKEN __BIT(17)
69 1.1 jmcneill #define CAR_PLLP_OUTB_OUT4_RSTN __BIT(16)
70 1.1 jmcneill #define CAR_PLLP_OUTB_OUT3_RATIO __BITS(15,8)
71 1.1 jmcneill #define CAR_PLLP_OUTB_OUT3_OVRRIDE __BIT(2)
72 1.1 jmcneill #define CAR_PLLP_OUTB_OUT3_CLKEN __BIT(1)
73 1.1 jmcneill #define CAR_PLLP_OUTB_OUT3_RSTN __BIT(0)
74 1.1 jmcneill #define CAR_PLLP_OUTC_REG 0x67c
75 1.1 jmcneill #define CAR_PLLP_OUTC_OUT5_RATIO __BITS(31,24)
76 1.1 jmcneill #define CAR_PLLP_OUTC_OUT5_OVERRIDE __BIT(18)
77 1.1 jmcneill #define CAR_PLLP_OUTC_OUT5_CLKEN __BIT(17)
78 1.1 jmcneill #define CAR_PLLP_OUTC_OUT5_RSTN __BIT(16)
79 1.1 jmcneill #define CAR_PLLP_MISC_REG 0xac
80 1.1 jmcneill
81 1.1 jmcneill #define CAR_PLLC_BASE_REG 0x80
82 1.1 jmcneill #define CAR_PLLC_BASE_ENABLE __BIT(30)
83 1.1 jmcneill #define CAR_PLLC_BASE_REF_DIS __BIT(29)
84 1.1 jmcneill #define CAR_PLLC_BASE_LOCK_OVERRIDE __BIT(28)
85 1.1 jmcneill #define CAR_PLLC_BASE_LOCK __BIT(27)
86 1.1 jmcneill #define CAR_PLLC_BASE_DIVP __BITS(23,20)
87 1.1 jmcneill #define CAR_PLLC_BASE_DIVN __BITS(15,8)
88 1.1 jmcneill #define CAR_PLLC_BASE_DIVM __BITS(7,0)
89 1.1 jmcneill
90 1.1 jmcneill #define CAR_PLLU_BASE_REG 0xc0
91 1.1 jmcneill #define CAR_PLLU_BASE_BYPASS __BIT(31)
92 1.1 jmcneill #define CAR_PLLU_BASE_ENABLE __BIT(30)
93 1.1 jmcneill #define CAR_PLLU_BASE_REF_DIS __BIT(29)
94 1.1 jmcneill #define CAR_PLLU_BASE_LOCK __BIT(27)
95 1.1 jmcneill #define CAR_PLLU_BASE_CLKENABLE_48M __BIT(25)
96 1.1 jmcneill #define CAR_PLLU_BASE_OVERRIDE __BIT(24)
97 1.1 jmcneill #define CAR_PLLU_BASE_CLKENABLE_ICUSB __BIT(23)
98 1.1 jmcneill #define CAR_PLLU_BASE_CLKENABLE_HSIC __BIT(22)
99 1.1 jmcneill #define CAR_PLLU_BASE_CLKENABLE_USB __BIT(21)
100 1.1 jmcneill #define CAR_PLLU_BASE_VCO_FREQ __BIT(20)
101 1.1 jmcneill #define CAR_PLLU_BASE_DIVN __BITS(17,8)
102 1.1 jmcneill #define CAR_PLLU_BASE_DIVM __BITS(4,0)
103 1.1 jmcneill
104 1.1 jmcneill #define CAR_PLLD_BASE_REG 0xd0
105 1.1 jmcneill #define CAR_PLLD_BASE_BYPASS __BIT(31)
106 1.1 jmcneill #define CAR_PLLD_BASE_ENABLE __BIT(30)
107 1.1 jmcneill #define CAR_PLLD_BASE_REF_DIS __BIT(29)
108 1.1 jmcneill #define CAR_PLLD_BASE_LOCK __BIT(27)
109 1.1 jmcneill #define CAR_PLLD_BASE_CLKENABLE_CSI __BIT(26)
110 1.1 jmcneill #define CAR_PLLD_BASE_DSIA_CLK_SRC __BIT(25)
111 1.1 jmcneill #define CAR_PLLD_BASE_CSI_CLK_SRC __BIT(23)
112 1.1 jmcneill #define CAR_PLLD_BASE_DIVP __BITS(22,20)
113 1.1 jmcneill #define CAR_PLLD_BASE_DIVN __BITS(18,8)
114 1.1 jmcneill #define CAR_PLLD_BASE_DIVM __BITS(4,0)
115 1.1 jmcneill
116 1.1 jmcneill #define CAR_PLLD_MISC_REG 0xdc
117 1.1 jmcneill
118 1.1 jmcneill #define CAR_PLLX_BASE_REG 0xe0
119 1.1 jmcneill #define CAR_PLLX_BASE_BYPASS __BIT(31)
120 1.1 jmcneill #define CAR_PLLX_BASE_ENABLE __BIT(30)
121 1.1 jmcneill #define CAR_PLLX_BASE_REF_DIS __BIT(29)
122 1.1 jmcneill #define CAR_PLLX_BASE_LOCK __BIT(27)
123 1.1 jmcneill #define CAR_PLLX_BASE_DIVP __BITS(23,20)
124 1.1 jmcneill #define CAR_PLLX_BASE_DIVN __BITS(15,8)
125 1.1 jmcneill #define CAR_PLLX_BASE_DIVM __BITS(7,0)
126 1.1 jmcneill
127 1.1 jmcneill #define CAR_PLLX_MISC_REG 0xe4
128 1.1 jmcneill #define CAR_PLLX_MISC_FO_LP_DISABLE __BIT(29)
129 1.1 jmcneill #define CAR_PLLX_MISC_FO_G_DISABLE __BIT(28)
130 1.1 jmcneill #define CAR_PLLX_MISC_PTS __BITS(23,22)
131 1.1 jmcneill #define CAR_PLLX_MISC_LOCK_ENABLE __BIT(18)
132 1.1 jmcneill
133 1.1 jmcneill #define CAR_PLLE_BASE_REG 0xe8
134 1.1 jmcneill #define CAR_PLLE_BASE_ENABLE __BIT(30)
135 1.1 jmcneill #define CAR_PLLE_BASE_LOCK_OVERRIDE __BIT(29)
136 1.1 jmcneill #define CAR_PLLE_BASE_FDIV48 __BIT(28)
137 1.1 jmcneill #define CAR_PLLE_BASE_DIVP_CML __BITS(27,24)
138 1.1 jmcneill #define CAR_PLLE_BASE_EXT_SETUP_23_16 __BITS(23,16)
139 1.1 jmcneill #define CAR_PLLE_BASE_DIVN __BITS(15,8)
140 1.1 jmcneill #define CAR_PLLE_BASE_DIVM __BITS(7,0)
141 1.1 jmcneill
142 1.1 jmcneill #define CAR_PLLE_MISC_REG 0xec
143 1.3 jakllsch #define CAR_PLLE_MISC_IDDQ_SWCTL __BIT(14)
144 1.3 jakllsch #define CAR_PLLE_MISC_IDDQ_OVERRIDE __BIT(13)
145 1.3 jakllsch #define CAR_PLLE_MISC_LOCK __BIT(11)
146 1.3 jakllsch #define CAR_PLLE_MISC_LOCK_ENABLE __BIT(9)
147 1.1 jmcneill
148 1.1 jmcneill #define CAR_PLLD2_BASE_REG 0x4b8
149 1.1 jmcneill #define CAR_PLLD2_BASE_BYPASS __BIT(31)
150 1.1 jmcneill #define CAR_PLLD2_BASE_ENABLE __BIT(30)
151 1.1 jmcneill #define CAR_PLLD2_BASE_REF_DIS __BIT(29)
152 1.1 jmcneill #define CAR_PLLD2_BASE_FREQLOCK __BIT(28)
153 1.1 jmcneill #define CAR_PLLD2_BASE_LOCK __BIT(27)
154 1.1 jmcneill #define CAR_PLLD2_BASE_REF_SRC_SEL __BITS(26,25)
155 1.1 jmcneill #define CAR_PLLD2_BASE_REF_SRC_SEL_PLL_D 0
156 1.1 jmcneill #define CAR_PLLD2_BASE_REF_SRC_SEL_PLL_D2 1
157 1.1 jmcneill #define CAR_PLLD2_BASE_LOCK_OVERRIDE __BIT(24)
158 1.1 jmcneill #define CAR_PLLD2_BASE_DIVP __BITS(23,20)
159 1.1 jmcneill #define CAR_PLLD2_BASE_IDDQ __BIT(19)
160 1.1 jmcneill #define CAR_PLLD2_BASE_PTS __BIT(16)
161 1.1 jmcneill #define CAR_PLLD2_BASE_DIVN __BITS(15,8)
162 1.1 jmcneill #define CAR_PLLD2_BASE_DIVM __BITS(7,0)
163 1.1 jmcneill
164 1.1 jmcneill #define CAR_PLLD2_MISC_REG 0x4bc
165 1.1 jmcneill #define CAR_PLLD2_MISC_EN_FSTLCK __BIT(31)
166 1.1 jmcneill #define CAR_PLLD2_MISC_LOCK_ENABLE __BIT(30)
167 1.1 jmcneill #define CAR_PLLD2_MISC_MON_TEST_OUT __BITS(29,27)
168 1.1 jmcneill #define CAR_PLLD2_MISC_KCP __BITS(26,25)
169 1.1 jmcneill #define CAR_PLLD2_MISC_KVCO __BIT(24)
170 1.1 jmcneill #define CAR_PLLD2_MISC_SETUP __BITS(23,0)
171 1.1 jmcneill
172 1.1 jmcneill #define CAR_CLKSRC_I2C1_REG 0x124
173 1.1 jmcneill #define CAR_CLKSRC_I2C2_REG 0x198
174 1.1 jmcneill #define CAR_CLKSRC_I2C3_REG 0x1b8
175 1.1 jmcneill #define CAR_CLKSRC_I2C4_REG 0x3c4
176 1.1 jmcneill #define CAR_CLKSRC_I2C5_REG 0x128
177 1.1 jmcneill #define CAR_CLKSRC_I2C6_REG 0x65c
178 1.1 jmcneill
179 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC __BITS(31,29)
180 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_PLLP_OUT0 0
181 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_PLLC2_OUT0 1
182 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_PLLC_OUT0 2
183 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_PLLC3_OUT0 3
184 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_PLLM_OUT0 4
185 1.1 jmcneill #define CAR_CLKSRC_I2C_SRC_CLK_M 6
186 1.1 jmcneill #define CAR_CLKSRC_I2C_DIV __BITS(15,0)
187 1.1 jmcneill
188 1.2 jakllsch #define CAR_CLKSRC_SPI1_REG 0x134
189 1.2 jakllsch #define CAR_CLKSRC_SPI2_REG 0x118
190 1.2 jakllsch #define CAR_CLKSRC_SPI3_REG 0x11c
191 1.2 jakllsch #define CAR_CLKSRC_SPI4_REG 0x1b4
192 1.2 jakllsch #define CAR_CLKSRC_SPI5_REG 0x3c8
193 1.2 jakllsch #define CAR_CLKSRC_SPI6_REG 0x3cc
194 1.2 jakllsch
195 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC __BITS(31,29)
196 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_PLLP_OUT0 0
197 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_PLLC2_OUT0 1
198 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_PLLC_OUT0 2
199 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_PLLC3_OUT0 3
200 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_PLLM_OUT0 4
201 1.2 jakllsch #define CAR_CLKSRC_SPI_SRC_CLK_M 6
202 1.2 jakllsch #define CAR_CLKSRC_SPI_DIV __BITS(7,0)
203 1.2 jakllsch
204 1.1 jmcneill #define CAR_CLKSRC_UARTA_REG 0x178
205 1.1 jmcneill #define CAR_CLKSRC_UARTB_REG 0x17c
206 1.1 jmcneill #define CAR_CLKSRC_UARTC_REG 0x1a0
207 1.1 jmcneill #define CAR_CLKSRC_UARTD_REG 0x1c0
208 1.1 jmcneill
209 1.1 jmcneill #define CAR_CLKSRC_UART_SRC __BITS(31,29)
210 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_PLLP_OUT0 0
211 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_PLLC2_OUT0 1
212 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_PLLC_OUT0 2
213 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_PLLC3_OUT0 3
214 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_PLLM_OUT0 4
215 1.1 jmcneill #define CAR_CLKSRC_UART_SRC_CLK_M 6
216 1.1 jmcneill #define CAR_CLKSRC_UART_DIV_ENB __BIT(24)
217 1.1 jmcneill #define CAR_CLKSRC_UART_DIV __BITS(15,0)
218 1.1 jmcneill
219 1.1 jmcneill #define CAR_CLKSRC_SDMMC1_REG 0x150
220 1.1 jmcneill #define CAR_CLKSRC_SDMMC2_REG 0x154
221 1.1 jmcneill #define CAR_CLKSRC_SDMMC4_REG 0x164
222 1.1 jmcneill #define CAR_CLKSRC_SDMMC3_REG 0x1bc
223 1.1 jmcneill
224 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC __BITS(31,29)
225 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLP_OUT0 0
226 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLC2_OUT0 1
227 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLC_OUT0 2
228 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLC3_OUT0 3
229 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLM_OUT0 4
230 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_PLLE_OUT0 5
231 1.1 jmcneill #define CAR_CLKSRC_SDMMC_SRC_CLK_M 6
232 1.1 jmcneill #define CAR_CLKSRC_SDMMC_DIV __BITS(7,0)
233 1.1 jmcneill
234 1.1 jmcneill #define CAR_CLKSRC_HDMI_REG 0x18c
235 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC __BITS(31,29)
236 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLP_OUT0 0
237 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLM_OUT0 1
238 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLD_OUT0 2
239 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLA_OUT0 3
240 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLC_OUT0 4
241 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_PLLD2_OUT0 5
242 1.1 jmcneill #define CAR_CLKSRC_HDMI_SRC_CLK_M 6
243 1.1 jmcneill #define CAR_CLKSRC_HDMI_DIV __BITS(7,0)
244 1.1 jmcneill
245 1.1 jmcneill #define CAR_CLKSRC_DISP1_REG 0x138
246 1.1 jmcneill #define CAR_CLKSRC_DISP2_REG 0x13c
247 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC __BITS(31,29)
248 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLP_OUT0 0
249 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLM_OUT0 1
250 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLD_OUT0 2
251 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLA_OUT0 3
252 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLC_OUT0 4
253 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_PLLD2_OUT0 5
254 1.1 jmcneill #define CAR_CLKSRC_DISP_SRC_CLK_M 6
255 1.1 jmcneill
256 1.1 jmcneill #define CAR_CLKSRC_HOST1X_REG 0x180
257 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC __BITS(31,29)
258 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLM_OUT0 0
259 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLC2_OUT0 1
260 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLC_OUT0 2
261 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLC3_OUT0 3
262 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLP_OUT0 4
263 1.1 jmcneill #define CAR_CLKSRC_HOST1X_SRC_PLLA_OUT0 6
264 1.1 jmcneill #define CAR_CLKSRC_HOST1X_IDLE_DIVISOR __BITS(15,8)
265 1.1 jmcneill #define CAR_CLKSRC_HOST1X_CLK_DIVISOR __BITS(7,0)
266 1.1 jmcneill
267 1.1 jmcneill #define CAR_RST_DEV_L_SET_REG 0x300
268 1.1 jmcneill #define CAR_RST_DEV_L_CLR_REG 0x304
269 1.1 jmcneill #define CAR_RST_DEV_H_SET_REG 0x308
270 1.1 jmcneill #define CAR_RST_DEV_H_CLR_REG 0x30c
271 1.1 jmcneill #define CAR_RST_DEV_U_SET_REG 0x310
272 1.1 jmcneill #define CAR_RST_DEV_U_CLR_REG 0x314
273 1.1 jmcneill #define CAR_RST_DEV_V_SET_REG 0x430
274 1.1 jmcneill #define CAR_RST_DEV_V_CLR_REG 0x434
275 1.1 jmcneill #define CAR_RST_DEV_W_SET_REG 0x438
276 1.1 jmcneill #define CAR_RST_DEV_W_CLR_REG 0x43c
277 1.1 jmcneill #define CAR_RST_DEV_X_SET_REG 0x290
278 1.1 jmcneill #define CAR_RST_DEV_X_CLR_REG 0x294
279 1.1 jmcneill
280 1.1 jmcneill #define CAR_CLK_ENB_L_SET_REG 0x320
281 1.1 jmcneill #define CAR_CLK_ENB_L_CLR_REG 0x324
282 1.1 jmcneill #define CAR_CLK_ENB_H_SET_REG 0x328
283 1.1 jmcneill #define CAR_CLK_ENB_H_CLR_REG 0x32c
284 1.1 jmcneill #define CAR_CLK_ENB_U_SET_REG 0x330
285 1.1 jmcneill #define CAR_CLK_ENB_U_CLR_REG 0x334
286 1.1 jmcneill #define CAR_CLK_ENB_V_SET_REG 0x440
287 1.1 jmcneill #define CAR_CLK_ENB_V_CLR_REG 0x444
288 1.1 jmcneill #define CAR_CLK_ENB_W_SET_REG 0x448
289 1.1 jmcneill #define CAR_CLK_ENB_W_CLR_REG 0x44c
290 1.1 jmcneill #define CAR_CLK_ENB_X_SET_REG 0x284
291 1.1 jmcneill #define CAR_CLK_ENB_X_CLR_REG 0x288
292 1.1 jmcneill
293 1.1 jmcneill #define CAR_DEV_L_CACHE2 __BIT(31)
294 1.1 jmcneill #define CAR_DEV_L_I2S0 __BIT(30)
295 1.1 jmcneill #define CAR_DEV_L_VCP __BIT(29)
296 1.1 jmcneill #define CAR_DEV_L_HOST1X __BIT(28)
297 1.1 jmcneill #define CAR_DEV_L_DISP1 __BIT(27)
298 1.1 jmcneill #define CAR_DEV_L_DISP2 __BIT(26)
299 1.1 jmcneill #define CAR_DEV_L_ISP __BIT(23)
300 1.1 jmcneill #define CAR_DEV_L_USBD __BIT(22)
301 1.1 jmcneill #define CAR_DEV_L_VI __BIT(20)
302 1.1 jmcneill #define CAR_DEV_L_I2S2 __BIT(18)
303 1.1 jmcneill #define CAR_DEV_L_PWM __BIT(17)
304 1.1 jmcneill #define CAR_DEV_L_SDMMC4 __BIT(15)
305 1.1 jmcneill #define CAR_DEV_L_SDMMC1 __BIT(14)
306 1.1 jmcneill #define CAR_DEV_L_I2C1 __BIT(12)
307 1.1 jmcneill #define CAR_DEV_L_I2S1 __BIT(11)
308 1.1 jmcneill #define CAR_DEV_L_SPDIF __BIT(10)
309 1.1 jmcneill #define CAR_DEV_L_SDMMC2 __BIT(9)
310 1.1 jmcneill #define CAR_DEV_L_GPIO __BIT(8)
311 1.1 jmcneill #define CAR_DEV_L_UARTB __BIT(7)
312 1.1 jmcneill #define CAR_DEV_L_UARTA __BIT(6)
313 1.1 jmcneill #define CAR_DEV_L_TMR __BIT(5
314 1.1 jmcneill #define CAR_DEV_L_RTC __BIT(4)
315 1.1 jmcneill #define CAR_DEV_L_ISPB __BIT(3)
316 1.1 jmcneill #define CAR_DEV_L_CPU __BIT(0)
317 1.1 jmcneill
318 1.1 jmcneill #define CAR_DEV_U_XUSB_DEV __BIT(31)
319 1.1 jmcneill #define CAR_DEV_U_DEV1_OUT __BIT(30)
320 1.1 jmcneill #define CAR_DEV_U_DEV2_OUT __BIT(29)
321 1.1 jmcneill #define CAR_DEV_U_SUS_OUT __BIT(28)
322 1.1 jmcneill #define CAR_DEV_U_MSENC __BIT(27)
323 1.1 jmcneill #define CAR_DEV_U_XUSB_HOST __BIT(25)
324 1.1 jmcneill #define CAR_DEV_U_CRAM2 __BIT(24)
325 1.1 jmcneill #define CAR_DEV_U_IRAMD __BIT(23)
326 1.1 jmcneill #define CAR_DEV_U_IRAMC __BIT(22)
327 1.1 jmcneill #define CAR_DEV_U_IRAMB __BIT(21)
328 1.1 jmcneill #define CAR_DEV_U_IRAMA __BIT(20)
329 1.1 jmcneill #define CAR_DEV_U_TSEC __BIT(19)
330 1.1 jmcneill #define CAR_DEV_U_DSIB __BIT(18)
331 1.1 jmcneill #define CAR_DEV_U_I2C_SLOW __BIT(17)
332 1.1 jmcneill #define CAR_DEV_U_DTV __BIT(15)
333 1.1 jmcneill #define CAR_DEV_U_SOC_THERM __BIT(14)
334 1.1 jmcneill #define CAR_DEV_U_TRACECLKIN __BIT(13)
335 1.1 jmcneill #define CAR_DEV_U_AVPUCQ __BIT(11)
336 1.1 jmcneill #define CAR_DEV_U_CSITE __BIT(9)
337 1.1 jmcneill #define CAR_DEV_U_AFI __BIT(8)
338 1.1 jmcneill #define CAR_DEV_U_OWR __BIT(7)
339 1.1 jmcneill #define CAR_DEV_U_PCIE __BIT(6)
340 1.1 jmcneill #define CAR_DEV_U_SDMMC3 __BIT(5)
341 1.1 jmcneill #define CAR_DEV_U_SPI4 __BIT(4)
342 1.1 jmcneill #define CAR_DEV_U_I2C3 __BIT(3)
343 1.1 jmcneill #define CAR_DEV_U_UARTD __BIT(1)
344 1.1 jmcneill
345 1.1 jmcneill #define CAR_DEV_H_BSEV __BIT(31)
346 1.1 jmcneill #define CAR_DEV_H_BSEA __BIT(30)
347 1.1 jmcneill #define CAR_DEV_H_VDE __BIT(29)
348 1.1 jmcneill #define CAR_DEV_H_USB3 __BIT(27)
349 1.1 jmcneill #define CAR_DEV_H_USB2 __BIT(26)
350 1.1 jmcneill #define CAR_DEV_H_EMC __BIT(25)
351 1.1 jmcneill #define CAR_DEV_H_MIPI_CAL __BIT(24)
352 1.1 jmcneill #define CAR_DEV_H_UARTC __BIT(23)
353 1.1 jmcneill #define CAR_DEV_H_I2C2 __BIT(22)
354 1.1 jmcneill #define CAR_DEV_H_CSI __BIT(20)
355 1.1 jmcneill #define CAR_DEV_H_HDMI __BIT(19)
356 1.1 jmcneill #define CAR_DEV_H_HSI __BIT(18)
357 1.1 jmcneill #define CAR_DEV_H_DSI __BIT(16)
358 1.1 jmcneill #define CAR_DEV_H_I2C5 __BIT(15)
359 1.1 jmcneill #define CAR_DEV_H_SPI3 __BIT(14)
360 1.1 jmcneill #define CAR_DEV_H_SPI2 __BIT(12)
361 1.1 jmcneill #define CAR_DEV_H_JTAG2TBC __BIT(11)
362 1.1 jmcneill #define CAR_DEV_H_SNOR __BIT(10)
363 1.1 jmcneill #define CAR_DEV_H_SPI1 __BIT(9)
364 1.1 jmcneill #define CAR_DEV_H_KFUSE __BIT(8)
365 1.1 jmcneill #define CAR_DEV_H_FUSE __BIT(7)
366 1.1 jmcneill #define CAR_DEV_H_PMC __BIT(6)
367 1.1 jmcneill #define CAR_DEV_H_STAT_MON __BIT(5)
368 1.1 jmcneill #define CAR_DEV_H_KBC __BIT(4)
369 1.1 jmcneill #define CAR_DEV_H_APBDMA __BIT(2)
370 1.1 jmcneill #define CAR_DEV_H_AHBDMA __BIT(1)
371 1.1 jmcneill #define CAR_DEV_H_MEM __BIT(0)
372 1.1 jmcneill
373 1.1 jmcneill #define CAR_DEV_V_HDA __BIT(29)
374 1.1 jmcneill #define CAR_DEV_V_SATA __BIT(28)
375 1.1 jmcneill #define CAR_DEV_V_SATA_OOB __BIT(27)
376 1.1 jmcneill #define CAR_DEV_V_ACTMON __BIT(23)
377 1.1 jmcneill #define CAR_DEV_V_ATOMICS __BIT(16)
378 1.1 jmcneill #define CAR_DEV_V_HDA2CODEC_2X __BIT(15)
379 1.1 jmcneill #define CAR_DEV_V_DAM2 __BIT(14)
380 1.1 jmcneill #define CAR_DEV_V_DAM1 __BIT(13)
381 1.1 jmcneill #define CAR_DEV_V_DAM0 __BIT(12)
382 1.1 jmcneill #define CAR_DEV_V_APBIF __BIT(11)
383 1.1 jmcneill #define CAR_DEV_V_AUDIO __BIT(10)
384 1.1 jmcneill #define CAR_DEV_V_SPI6 __BIT(9)
385 1.1 jmcneill #define CAR_DEV_V_SPI5 __BIT(8)
386 1.1 jmcneill #define CAR_DEV_V_I2C4 __BIT(7)
387 1.1 jmcneill #define CAR_DEV_V_I2S4 __BIT(6)
388 1.1 jmcneill #define CAR_DEV_V_I2S3 __BIT(5)
389 1.1 jmcneill #define CAR_DEV_V_TSENSOR __BIT(4)
390 1.1 jmcneill #define CAR_DEV_V_MSELECT __BIT(3)
391 1.1 jmcneill #define CAR_DEV_V_CPULP __BIT(1)
392 1.1 jmcneill #define CAR_DEV_V_CPUG __BIT(0)
393 1.1 jmcneill
394 1.1 jmcneill #define CAR_DEV_W_XUSB_SS __BIT(28)
395 1.1 jmcneill #define CAR_DEV_W_DVFS __BIT(27)
396 1.1 jmcneill #define CAR_DEV_W_ADX0 __BIT(26)
397 1.1 jmcneill #define CAR_DEV_W_AMX0 __BIT(25)
398 1.1 jmcneill #define CAR_DEV_W_ENTROPY __BIT(21)
399 1.3 jakllsch #define CAR_DEV_W_XUSB __BIT(15)
400 1.1 jmcneill #define CAR_DEV_W_XUSB_PADCTL __BIT(14)
401 1.1 jmcneill #define CAR_DEV_W_CEC __BIT(8)
402 1.1 jmcneill #define CAR_DEV_W_SATACOLD __BIT(1)
403 1.1 jmcneill #define CAR_DEV_W_HDA2HDMICODEC __BIT(0)
404 1.1 jmcneill
405 1.1 jmcneill #define CAR_DEV_X_AMX1 __BIT(25)
406 1.1 jmcneill #define CAR_DEV_X_GPU __BIT(24)
407 1.1 jmcneill #define CAR_DEV_X_SOR0 __BIT(22)
408 1.1 jmcneill #define CAR_DEV_X_DPAUX __BIT(21)
409 1.1 jmcneill #define CAR_DEV_X_ADX1 __BIT(20)
410 1.1 jmcneill #define CAR_DEV_X_VIC __BIT(18)
411 1.1 jmcneill #define CAR_DEV_X_CLK72MHZ __BIT(17)
412 1.1 jmcneill #define CAR_DEV_X_HDMI_AUDIO __BIT(16)
413 1.1 jmcneill #define CAR_DEV_X_EMC_DLL __BIT(14)
414 1.1 jmcneill #define CAR_DEV_X_VIM2_CLK __BIT(11)
415 1.1 jmcneill #define CAR_DEV_X_I2C6 __BIT(6)
416 1.1 jmcneill #define CAR_DEV_X_CAM_MCLK2 __BIT(5)
417 1.1 jmcneill #define CAR_DEV_X_CAM_MCLK __BIT(4)
418 1.1 jmcneill #define CAR_DEV_X_SPARE __BIT(0)
419 1.1 jmcneill
420 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_REG 0x368
421 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CPU_STATE __BITS(31,28)
422 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CPU_STATE_IDLE 1
423 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CPU_STATE_RUN 2
424 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CWAKEUP_IDLE_SOURCE __BITS(3,0)
425 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CWAKEUP_SOURCE_CLKM 0
426 1.1 jmcneill #define CAR_CCLKG_BURST_POLICY_CWAKEUP_SOURCE_PLLX_OUT0_LJ 8
427 1.1 jmcneill
428 1.1 jmcneill #define CAR_CLKSRC_TSENSOR_REG 0x3b8
429 1.1 jmcneill #define CAR_CLKSRC_TSENSOR_SRC __BITS(31,29)
430 1.1 jmcneill #define CAR_CLKSRC_TSENSOR_SRC_CLK_M 4
431 1.1 jmcneill #define CAR_CLKSRC_TSENSOR_DIV __BITS(7,0)
432 1.1 jmcneill
433 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_REG 0x3e4
434 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC __BITS(31,29)
435 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_PLLP_OUT0 0
436 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_PLLC2_OUT0 1
437 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_PLLC_OUT0 2
438 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_PLLC3_OUT0 3
439 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_PLLM_OUT0 4
440 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_SRC_CLKM 6
441 1.1 jmcneill #define CAR_CLKSRC_HDA2CODEC_2X_DIV __BITS(7,0)
442 1.1 jmcneill
443 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_REG 0x420
444 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_SRC __BITS(31,29)
445 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_SRC_PLLP_OUT0 0
446 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_SRC_PLLC_OUT0 2
447 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_SRC_PLLM_OUT0 4
448 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_SRC_CLKM 6
449 1.1 jmcneill #define CAR_CLKSRC_SATA_OOB_DIV __BITS(7,0)
450 1.1 jmcneill
451 1.1 jmcneill #define CAR_CLKSRC_SATA_REG 0x424
452 1.1 jmcneill #define CAR_CLKSRC_SATA_SRC __BITS(31,29)
453 1.1 jmcneill #define CAR_CLKSRC_SATA_SRC_PLLP_OUT0 0
454 1.1 jmcneill #define CAR_CLKSRC_SATA_SRC_PLLC_OUT0 2
455 1.1 jmcneill #define CAR_CLKSRC_SATA_SRC_PLLM_OUT0 4
456 1.1 jmcneill #define CAR_CLKSRC_SATA_SRC_CLKM 6
457 1.1 jmcneill #define CAR_CLKSRC_SATA_AUX_CLK_ENB __BIT(24)
458 1.1 jmcneill #define CAR_CLKSRC_SATA_DIV __BITS(7,0)
459 1.1 jmcneill
460 1.1 jmcneill #define CAR_CLKSRC_HDA_REG 0x428
461 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC __BITS(31,29)
462 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_PLLP_OUT0 0
463 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_PLLC2_OUT0 1
464 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_PLLC_OUT0 2
465 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_PLLC3_OUT0 3
466 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_PLLM_OUT0 4
467 1.1 jmcneill #define CAR_CLKSRC_HDA_SRC_CLKM 6
468 1.1 jmcneill #define CAR_CLKSRC_HDA_DIV __BITS(7,0)
469 1.1 jmcneill
470 1.1 jmcneill #define CAR_UTMIP_PLL_CFG0_REG 0x480
471 1.1 jmcneill
472 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_REG 0x484
473 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_ENABLE_DLY_COUNT __BITS(31,27)
474 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_PLLU_POWERUP __BIT(17)
475 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_PLLU_POWERDOWN __BIT(16)
476 1.5 jakllsch #define CAR_UTMIP_PLL_CFG1_PLL_ENABLE_POWERUP __BIT(15)
477 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_PLL_ENABLE_POWERDOWN __BIT(14)
478 1.1 jmcneill #define CAR_UTMIP_PLL_CFG1_XTAL_FREQ_COUNT __BITS(11,0)
479 1.1 jmcneill
480 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_REG 0x488
481 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_ACTIVE_DLY_COUNT __BITS(23,18)
482 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_STABLE_COUNT __BITS(17,6)
483 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_C_POWERUP __BIT(5)
484 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_C_POWERDOWN __BIT(4)
485 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_B_POWERUP __BIT(3)
486 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_B_POWERDOWN __BIT(2)
487 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_A_POWERUP __BIT(1)
488 1.1 jmcneill #define CAR_UTMIP_PLL_CFG2_PD_SAMP_A_POWERDOWN __BIT(0)
489 1.1 jmcneill
490 1.1 jmcneill #define CAR_PLLE_AUX_REG 0x48c
491 1.1 jmcneill #define CAR_PLLE_AUX_SS_SEQ_INCLUDE __BIT(31)
492 1.1 jmcneill #define CAR_PLLE_AUX_REF_SEL_PLLREFE __BIT(28)
493 1.1 jmcneill #define CAR_PLLE_AUX_SEQ_STATE __BITS(27,26)
494 1.1 jmcneill #define CAR_PLLE_AUX_SEQ_START_STATE __BIT(25)
495 1.1 jmcneill #define CAR_PLLE_AUX_SEQ_ENABLE __BIT(24)
496 1.1 jmcneill #define CAR_PLLE_AUX_SS_DLY __BITS(23,16)
497 1.1 jmcneill #define CAR_PLLE_AUX_LOCK_DLY __BITS(15,8)
498 1.1 jmcneill #define CAR_PLLE_AUX_FAST_PT __BIT(7)
499 1.1 jmcneill #define CAR_PLLE_AUX_SS_SWCTL __BIT(6)
500 1.1 jmcneill #define CAR_PLLE_AUX_CONFIG_SWCTL __BIT(5)
501 1.1 jmcneill #define CAR_PLLE_AUX_ENABLE_SWCTL __BIT(4)
502 1.1 jmcneill #define CAR_PLLE_AUX_USE_LOCKDET __BIT(3)
503 1.1 jmcneill #define CAR_PLLE_AUX_REF_SRC __BIT(2)
504 1.1 jmcneill #define CAR_PLLE_AUX_CML1_OEN __BIT(1)
505 1.1 jmcneill #define CAR_PLLE_AUX_CML0_OEN __BIT(0)
506 1.1 jmcneill
507 1.1 jmcneill #define CAR_SATA_PLL_CFG0_REG 0x490
508 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_STATE __BITS(27,26)
509 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_START_STATE __BIT(25)
510 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_ENABLE __BIT(24)
511 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_PADPLL_PD_INPUT_VALUE __BIT(7)
512 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_LANE_PD_INPUT_VALUE __BIT(6)
513 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_RESET_INPUT_VALUE __BIT(5)
514 1.1 jmcneill #define CAR_SATA_PLL_CFG0_SEQ_IN_SWCTL __BIT(4)
515 1.1 jmcneill #define CAR_SATA_PLL_CFG0_PADPLL_USE_LOCKDET __BIT(2)
516 1.1 jmcneill #define CAR_SATA_PLL_CFG0_PADPLL_RESET_OVERRIDE_VALUE __BIT(1)
517 1.1 jmcneill #define CAR_SATA_PLL_CFG0_PADPLL_RESET_SWCTL __BIT(0)
518 1.1 jmcneill
519 1.1 jmcneill #define CAR_SATA_PLL_CFG1_REG 0x494
520 1.1 jmcneill #define CAR_SATA_PLL_CFG1_LANE_IDDQ2_PADPLL_RESET_DLY __BITS(31,24)
521 1.1 jmcneill #define CAR_SATA_PLL_CFG1_PADPLL_IDDQ2LANE_SLUMBER_DLY __BITS(23,16)
522 1.1 jmcneill #define CAR_SATA_PLL_CFG1_PADPLL_PU_POST_DLY __BITS(15,8)
523 1.1 jmcneill #define CAR_SATA_PLL_CFG1_LANE_IDDQ2_PADPLL_IDDQ_DLY __BITS(7,0)
524 1.1 jmcneill
525 1.3 jakllsch #define CAR_PLLREFE_BASE_REG 0x4c4
526 1.3 jakllsch #define CAR_PLLREFE_BASE_BYPASS __BIT(31)
527 1.3 jakllsch #define CAR_PLLREFE_BASE_ENABLE __BIT(30)
528 1.3 jakllsch #define CAR_PLLREFE_BASE_REF_DIS __BIT(29)
529 1.3 jakllsch #define CAR_PLLREFE_BASE_KCP __BITS(28,27)
530 1.3 jakllsch #define CAR_PLLREFE_BASE_KVCO __BIT(26)
531 1.3 jakllsch #define CAR_PLLREFE_BASE_DIVP __BITS(19,16)
532 1.3 jakllsch #define CAR_PLLREFE_BASE_DIVN __BITS(15,8)
533 1.3 jakllsch #define CAR_PLLREFE_BASE_DIVM __BITS(7,0)
534 1.3 jakllsch
535 1.3 jakllsch #define CAR_PLLREFE_MISC_REG 0x4c8
536 1.3 jakllsch #define CAR_PLLREFE_MISC_LOCK_ENABLE __BIT(30)
537 1.3 jakllsch #define CAR_PLLREFE_MISC_LOCK_OVERRIDE __BIT(29)
538 1.3 jakllsch #define CAR_PLLREFE_MISC_LOCK __BIT(24)
539 1.3 jakllsch #define CAR_PLLREFE_MISC_IDDQ __BIT(16)
540 1.3 jakllsch
541 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_REG 0x51c
542 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_SEQ_STATE __BITS(27,26)
543 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_SEQ_START_STATE __BIT(25)
544 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_SEQ_ENABLE __BIT(24)
545 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_PADPLL_USE_LOCKDET __BIT(6)
546 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_SEQ_RESET_INPUT_VALUE __BIT(5)
547 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_SEQ_IN_SWCTL __BIT(4)
548 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_CLK_ENABLE_OVERRIDE __BIT(3)
549 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_CLK_ENABLE_SWCTL __BIT(2)
550 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_PADPLL_RESET_OVERRIDE_VALUE __BIT(1)
551 1.3 jakllsch #define CAR_XUSBIO_PLL_CFG0_PADPLL_RESET_SWCTL __BIT(0)
552 1.3 jakllsch
553 1.3 jakllsch #define CAR_CLKSRC_XUSB_HOST_REG 0x600
554 1.3 jakllsch #define CAR_CLKSRC_XUSB_HOST_SRC __BITS(31,29)
555 1.3 jakllsch #define CAR_CLKSRC_XUSB_HOST_DIV __BITS(7,0)
556 1.3 jakllsch
557 1.3 jakllsch #define CAR_CLKSRC_XUSB_FALCON_REG 0x604
558 1.3 jakllsch #define CAR_CLKSRC_XUSB_FALCON_SRC __BITS(31,29)
559 1.3 jakllsch #define CAR_CLKSRC_XUSB_FALCON_DIV __BITS(7,0)
560 1.3 jakllsch
561 1.3 jakllsch #define CAR_CLKSRC_XUSB_FS_REG 0x608
562 1.3 jakllsch #define CAR_CLKSRC_XUSB_FS_SRC __BITS(31,29)
563 1.3 jakllsch #define CAR_CLKSRC_XUSB_FS_DIV __BITS(7,0)
564 1.3 jakllsch
565 1.3 jakllsch #define CAR_CLKSRC_XUSB_SS_REG 0x610
566 1.3 jakllsch #define CAR_CLKSRC_XUSB_SS_SRC __BITS(31,29)
567 1.3 jakllsch #define CAR_CLKSRC_XUSB_SS_HS_CLK_BYPASS __BIT(25)
568 1.3 jakllsch #define CAR_CLKSRC_XUSB_SS_SS_CLK_BYPASS __BIT(24)
569 1.3 jakllsch #define CAR_CLKSRC_XUSB_SS_DIV __BITS(7,0)
570 1.3 jakllsch
571 1.1 jmcneill #define CAR_CLKSRC_SOC_THERM_REG 0x644
572 1.1 jmcneill #define CAR_CLKSRC_SOC_THERM_SRC __BITS(31,29)
573 1.1 jmcneill #define CAR_CLKSRC_SOC_THERM_SRC_PLLP_OUT0 2
574 1.1 jmcneill #define CAR_CLKSRC_SOC_THERM_DIV __BITS(7,0)
575 1.1 jmcneill
576 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_REG 0x668
577 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_SRC __BITS(31,29)
578 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_SRC_PLLP_OUT0 0
579 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_SRC_PLLC_OUT0 1
580 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_SRC_PLLC2_OUT0 2
581 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_SRC_CLKM 3
582 1.1 jmcneill #define CAR_CLKSRC_HDMI_AUDIO_DIV __BITS(7,0)
583 1.1 jmcneill
584 1.1 jmcneill #endif /* _ARM_TEGRA124_CARREG_H */
585