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