Home | History | Annotate | Line # | Download | only in nvidia
tegra210_carreg.h revision 1.8.6.1
      1  1.8.6.1  christos /* $NetBSD: tegra210_carreg.h,v 1.8.6.1 2019/06/10 22:05:55 christos Exp $ */
      2      1.1  jmcneill 
      3      1.1  jmcneill /*-
      4      1.1  jmcneill  * Copyright (c) 2017 Jared 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_TEGRA210_CARREG_H
     30      1.1  jmcneill #define _ARM_TEGRA210_CARREG_H
     31      1.1  jmcneill 
     32      1.5  jmcneill #define	TEGRA210_REF_FREQ	38400000
     33      1.1  jmcneill 
     34      1.5  jmcneill #define	CAR_RST_SOURCE_REG	0x00
     35      1.5  jmcneill #define	CAR_RST_SOURCE_WDT_EN		__BIT(5)
     36      1.5  jmcneill #define	CAR_RST_SOURCE_WDT_SEL		__BIT(4)
     37      1.5  jmcneill #define	CAR_RST_SOURCE_WDT_SYS_RST_EN	__BIT(2)
     38      1.5  jmcneill #define	CAR_RST_SOURCE_WDT_COP_RST_EN	__BIT(1)
     39      1.5  jmcneill #define	CAR_RST_SOURCE_WDT_CPU_RST_EN	__BIT(0)
     40      1.5  jmcneill 
     41      1.5  jmcneill #define	CAR_CLK_OUT_ENB_L_REG	0x10
     42      1.5  jmcneill #define	CAR_CLK_OUT_ENB_H_REG	0x14
     43      1.5  jmcneill #define	CAR_CLK_OUT_ENB_U_REG	0x18
     44      1.1  jmcneill 
     45      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_REG	0x68
     46      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_INTEGOFFSET	__BITS(31,30)
     47      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCINCINTRV	__BITS(29,24)
     48      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCINC		__BITS(23,16)
     49      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCINVERT	__BIT(15)
     50      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCCENTER	__BIT(14)
     51      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCPDMBYP	__BIT(13)
     52      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCBYP		__BIT(12)
     53      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_INTERP_RESET	__BIT(11)
     54      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_BYPASS_SS	__BIT(10)
     55      1.3  jmcneill #define	CAR_PLLE_SS_CNTL_SSCMAX		__BITS(8,0)
     56      1.3  jmcneill 
     57      1.5  jmcneill #define	CAR_PLLP_BASE_REG	0xa0
     58      1.5  jmcneill #define	CAR_PLLP_BASE_BYPASS		__BIT(31)
     59      1.5  jmcneill #define	CAR_PLLP_BASE_ENABLE		__BIT(30)
     60      1.5  jmcneill #define	CAR_PLLP_BASE_REF_DIS		__BIT(29)
     61      1.5  jmcneill #define	CAR_PLLP_BASE_OVERRIDE		__BIT(28)
     62      1.5  jmcneill #define	CAR_PLLP_BASE_LOCK		__BIT(27)
     63      1.5  jmcneill #define	CAR_PLLP_BASE_DIVP		__BITS(24,20)
     64      1.5  jmcneill #define	CAR_PLLP_BASE_DIVN		__BITS(17,10)
     65      1.5  jmcneill #define	CAR_PLLP_BASE_DIVM		__BITS(7,0)
     66      1.5  jmcneill 
     67      1.5  jmcneill #define	CAR_PLLP_OUTA_REG	0xa4
     68      1.5  jmcneill #define	CAR_PLLP_OUTA_OUT1_RATIO	__BITS(15,8)
     69      1.5  jmcneill #define	CAR_PLLP_OUTA_OUT1_OVRRIDE	__BIT(2)
     70      1.5  jmcneill #define	CAR_PLLP_OUTA_OUT1_CLKEN	__BIT(1)
     71      1.5  jmcneill #define	CAR_PLLP_OUTA_OUT1_RSTN		__BIT(0)
     72      1.5  jmcneill #define	CAR_PLLP_OUTB_REG	0xa8
     73      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT4_RATIO	__BITS(31,24)
     74      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT4_OVRRIDE	__BIT(18)
     75      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT4_CLKEN	__BIT(17)
     76      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT4_RSTN		__BIT(16)
     77      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT3_RATIO	__BITS(15,8)
     78      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT3_OVRRIDE	__BIT(2)
     79      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT3_CLKEN	__BIT(1)
     80      1.5  jmcneill #define	CAR_PLLP_OUTB_OUT3_RSTN		__BIT(0)
     81      1.5  jmcneill #define	CAR_PLLP_OUTC_REG	0x67c
     82      1.5  jmcneill #define	CAR_PLLP_OUTC_OUT5_RATIO	__BITS(31,24)
     83      1.5  jmcneill #define	CAR_PLLP_OUTC_OUT5_OVERRIDE	__BIT(18)
     84      1.5  jmcneill #define	CAR_PLLP_OUTC_OUT5_CLKEN	__BIT(17)
     85      1.5  jmcneill #define	CAR_PLLP_OUTC_OUT5_RSTN		__BIT(16)
     86      1.5  jmcneill #define	CAR_PLLP_MISC_REG	0xac
     87      1.5  jmcneill 
     88      1.5  jmcneill #define	CAR_PLLC_BASE_REG	0x80
     89      1.5  jmcneill #define	CAR_PLLC_BASE_BYPASS		__BIT(31)
     90      1.5  jmcneill #define	CAR_PLLC_BASE_ENABLE		__BIT(30)
     91      1.5  jmcneill #define	CAR_PLLC_BASE_REF_DIS		__BIT(29)
     92      1.5  jmcneill #define	CAR_PLLC_BASE_LOCK_OVERRIDE	__BIT(27)
     93      1.5  jmcneill #define	CAR_PLLC_BASE_LOCK		__BIT(26)
     94      1.5  jmcneill #define	CAR_PLLC_BASE_DIVP		__BITS(24,20)
     95      1.5  jmcneill #define	CAR_PLLC_BASE_DIVN		__BITS(17,10)
     96      1.5  jmcneill #define	CAR_PLLC_BASE_DIVM		__BITS(7,0)
     97      1.5  jmcneill 
     98      1.5  jmcneill #define	CAR_PLLU_BASE_REG	0xc0
     99      1.5  jmcneill #define	CAR_PLLU_BASE_BYPASS		__BIT(31)
    100      1.5  jmcneill #define	CAR_PLLU_BASE_ENABLE		__BIT(30)
    101      1.5  jmcneill #define	CAR_PLLU_BASE_REF_DIS		__BIT(29)
    102      1.5  jmcneill #define	CAR_PLLU_BASE_LOCK		__BIT(27)
    103      1.5  jmcneill #define	CAR_PLLU_BASE_CLKENABLE_48M	__BIT(25)
    104      1.5  jmcneill #define	CAR_PLLU_BASE_OVERRIDE		__BIT(24)
    105      1.5  jmcneill #define	CAR_PLLU_BASE_CLKENABLE_ICUSB	__BIT(23)
    106      1.5  jmcneill #define	CAR_PLLU_BASE_CLKENABLE_HSIC	__BIT(22)
    107      1.5  jmcneill #define	CAR_PLLU_BASE_CLKENABLE_USB	__BIT(21)
    108      1.5  jmcneill #define	CAR_PLLU_BASE_DIVP		__BITS(20,16)
    109      1.5  jmcneill #define	CAR_PLLU_BASE_DIVN		__BITS(15,8)
    110      1.5  jmcneill #define	CAR_PLLU_BASE_DIVM		__BITS(4,0)
    111      1.1  jmcneill 
    112      1.2  jmcneill #define	CAR_PLLU_OUTA_REG	0xc4
    113      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT2_RATIO	__BITS(31,24)
    114      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT2_OVRRIDE	__BIT(18)
    115      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT2_CLKEN	__BIT(17)
    116      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT2_RSTN		__BIT(16)
    117      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT1_RATIO	__BITS(15,8)
    118      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT1_OVRRIDE	__BIT(2)
    119      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT1_CLKEN	__BIT(1)
    120      1.2  jmcneill #define	CAR_PLLU_OUTA_OUT1_RSTN		__BIT(0)
    121      1.2  jmcneill 
    122      1.2  jmcneill #define	CAR_PLLU_MISC_REG	0xcc
    123      1.2  jmcneill #define	CAR_PLLU_MISC_IDDQ		__BIT(31)
    124      1.2  jmcneill #define	CAR_PLLU_MISC_FREQLOCK		__BIT(30)
    125      1.2  jmcneill #define	CAR_PLLU_MISC_EN_LCKDET		__BIT(29)
    126      1.2  jmcneill #define	CAR_PLLU_MISC_PTS		__BITS(28,27)
    127      1.2  jmcneill #define	CAR_PLLU_MISC_KCP		__BITS(26,25)
    128      1.2  jmcneill #define	CAR_PLLU_MISC_KVCO		__BIT(24)
    129      1.2  jmcneill #define	CAR_PLLU_MISC_SETUP		__BITS(23,0)
    130      1.2  jmcneill 
    131      1.5  jmcneill #define	CAR_PLLD_BASE_REG	0xd0
    132      1.5  jmcneill #define	CAR_PLLD_BASE_BYPASS		__BIT(31)
    133      1.5  jmcneill #define	CAR_PLLD_BASE_ENABLE		__BIT(30)
    134      1.5  jmcneill #define	CAR_PLLD_BASE_REF_DIS		__BIT(29)
    135      1.5  jmcneill #define	CAR_PLLD_BASE_LOCK		__BIT(27)
    136      1.5  jmcneill #define	CAR_PLLD_BASE_DSIA_CLK_SRC	__BIT(25)
    137      1.5  jmcneill #define	CAR_PLLD_BASE_CSI_CLK_SRC	__BIT(23)
    138      1.5  jmcneill #define	CAR_PLLD_BASE_DIVP		__BITS(22,20)
    139      1.5  jmcneill #define	CAR_PLLD_BASE_DIVN		__BITS(18,11)
    140      1.5  jmcneill #define	CAR_PLLD_BASE_DIVM		__BITS(7,0)
    141      1.5  jmcneill 
    142      1.5  jmcneill #define	CAR_PLLD_MISC_REG	0xdc
    143      1.5  jmcneill 
    144      1.5  jmcneill #define	CAR_PLLX_BASE_REG	0xe0
    145      1.5  jmcneill #define	CAR_PLLX_BASE_BYPASS		__BIT(31)
    146      1.5  jmcneill #define	CAR_PLLX_BASE_ENABLE		__BIT(30)
    147      1.5  jmcneill #define	CAR_PLLX_BASE_REF_DIS		__BIT(29)
    148      1.5  jmcneill #define	CAR_PLLX_BASE_LOCK		__BIT(27)
    149      1.5  jmcneill #define	CAR_PLLX_BASE_DIVP		__BITS(24,20)
    150      1.5  jmcneill #define	CAR_PLLX_BASE_DIVN		__BITS(15,8)
    151      1.5  jmcneill #define	CAR_PLLX_BASE_DIVM		__BITS(7,0)
    152      1.5  jmcneill 
    153      1.5  jmcneill #define	CAR_PLLX_MISC_REG	0xe4
    154      1.5  jmcneill #define	CAR_PLLX_MISC_FO_G_DISABLE	__BIT(28)
    155      1.5  jmcneill #define	CAR_PLLX_MISC_PTS		__BITS(23,22)
    156      1.5  jmcneill #define	CAR_PLLX_MISC_LOCK_ENABLE	__BIT(18)
    157      1.5  jmcneill 
    158      1.5  jmcneill #define	CAR_PLLE_BASE_REG	0xe8
    159      1.5  jmcneill #define	CAR_PLLE_BASE_ENABLE		__BIT(31)
    160      1.5  jmcneill #define	CAR_PLLE_BASE_LOCK_OVERRIDE	__BIT(30)
    161      1.5  jmcneill #define	CAR_PLLE_BASE_FDIV4B		__BIT(29)
    162      1.5  jmcneill #define	CAR_PLLE_BASE_DIVP_CML		__BITS(28,24)
    163      1.5  jmcneill #define	CAR_PLLE_BASE_EXT_SETUP_23_16	__BITS(23,16)
    164      1.5  jmcneill #define	CAR_PLLE_BASE_DIVN		__BITS(15,8)
    165      1.5  jmcneill #define	CAR_PLLE_BASE_DIVM		__BITS(7,0)
    166      1.5  jmcneill 
    167      1.5  jmcneill #define	CAR_PLLE_MISC_REG	0xec
    168      1.5  jmcneill #define	CAR_PLLE_MISC_SETUP		__BITS(31,16)
    169      1.5  jmcneill #define	CAR_PLLE_MISC_ENABLE		__BIT(15)
    170      1.5  jmcneill #define	CAR_PLLE_MISC_IDDQ_SWCTL	__BIT(14)
    171      1.5  jmcneill #define	CAR_PLLE_MISC_IDDQ_OVERRIDE	__BIT(13)
    172      1.5  jmcneill #define	CAR_PLLE_MISC_LOCK		__BIT(11)
    173      1.5  jmcneill #define	CAR_PLLE_MISC_LOCK_ENABLE	__BIT(9)
    174      1.3  jmcneill #define	CAR_PLLE_MISC_PTS		__BIT(8)
    175      1.6  jmcneill #define	CAR_PLLE_MISC_KCP		__BITS(7,6)
    176      1.6  jmcneill #define	CAR_PLLE_MISC_VREG_BG_CTRL	__BITS(5,4)
    177      1.6  jmcneill #define	CAR_PLLE_MISC_VREG_CTRL		__BITS(3,2)
    178      1.6  jmcneill #define	CAR_PLLE_MISC_KVCO		__BIT(0)
    179      1.1  jmcneill 
    180      1.5  jmcneill #define	CAR_PLLD2_BASE_REG	0x4b8
    181      1.5  jmcneill #define	CAR_PLLD2_BASE_BYPASS		__BIT(31)
    182      1.5  jmcneill #define	CAR_PLLD2_BASE_ENABLE		__BIT(30)
    183      1.5  jmcneill #define	CAR_PLLD2_BASE_REF_DIS		__BIT(29)
    184      1.5  jmcneill #define	CAR_PLLD2_BASE_FREQLOCK		__BIT(28)
    185      1.5  jmcneill #define	CAR_PLLD2_BASE_LOCK		__BIT(27)
    186      1.5  jmcneill #define	CAR_PLLD2_BASE_REF_SRC_SEL	__BITS(26,25)
    187      1.5  jmcneill #define	CAR_PLLD2_BASE_REF_SRC_SEL_PLL_D	0
    188      1.5  jmcneill #define	CAR_PLLD2_BASE_REF_SRC_SEL_PLL_D2	1
    189      1.5  jmcneill #define	CAR_PLLD2_BASE_LOCK_OVERRIDE	__BIT(24)
    190      1.5  jmcneill #define	CAR_PLLD2_BASE_DIVP		__BITS(23,19)
    191      1.5  jmcneill #define	CAR_PLLD2_BASE_IDDQ		__BIT(18)
    192      1.5  jmcneill #define	CAR_PLLD2_BASE_PTS		__BIT(16)
    193      1.5  jmcneill #define	CAR_PLLD2_BASE_DIVN		__BITS(15,8)
    194      1.5  jmcneill #define	CAR_PLLD2_BASE_DIVM		__BITS(7,0)
    195      1.5  jmcneill 
    196      1.5  jmcneill #define	CAR_PLLD2_MISC_REG	0x4bc
    197      1.5  jmcneill #define	CAR_PLLD2_MISC_LOCK_ENABLE	__BIT(30)
    198      1.5  jmcneill #define	CAR_PLLD2_MISC_KCP		__BITS(26,25)
    199      1.5  jmcneill #define	CAR_PLLD2_MISC_KVCO		__BIT(24)
    200      1.5  jmcneill #define	CAR_PLLD2_MISC_SETUP		__BITS(23,0)
    201      1.5  jmcneill 
    202      1.5  jmcneill #define	CAR_CLKSRC_I2C1_REG		0x124
    203      1.5  jmcneill #define	CAR_CLKSRC_I2C2_REG		0x198
    204      1.5  jmcneill #define	CAR_CLKSRC_I2C3_REG		0x1b8
    205      1.5  jmcneill #define	CAR_CLKSRC_I2C4_REG		0x3c4
    206      1.5  jmcneill #define	CAR_CLKSRC_I2C5_REG		0x128
    207      1.5  jmcneill #define	CAR_CLKSRC_I2C6_REG		0x65c
    208      1.5  jmcneill 
    209      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC		__BITS(31,29)
    210      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLP_OUT0	0
    211      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLC2_OUT0	1
    212      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLC_OUT0	2
    213      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLC4_OUT0	3
    214      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLC4_OUT1	5
    215      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_CLK_M	6
    216      1.5  jmcneill #define	CAR_CLKSRC_I2C_SRC_PLLC4_OUT2	7
    217      1.5  jmcneill #define	CAR_CLKSRC_I2C_DIV		__BITS(15,0)
    218      1.5  jmcneill 
    219      1.5  jmcneill #define	CAR_CLKSRC_SPI1_REG		0x134
    220      1.5  jmcneill #define	CAR_CLKSRC_SPI2_REG		0x118
    221      1.5  jmcneill #define	CAR_CLKSRC_SPI3_REG		0x11c
    222      1.5  jmcneill #define	CAR_CLKSRC_SPI4_REG		0x1b4
    223      1.5  jmcneill #define	CAR_CLKSRC_SPI5_REG		0x3c8
    224      1.5  jmcneill #define	CAR_CLKSRC_SPI6_REG		0x3cc
    225      1.5  jmcneill 
    226      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC		__BITS(31,29)
    227      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLP_OUT0	0
    228      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLC2_OUT0	1
    229      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLC_OUT0	2
    230      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLC4_OUT0	3
    231      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLC4_OUT1	5
    232      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_CLK_M	6
    233      1.5  jmcneill #define	CAR_CLKSRC_SPI_SRC_PLLC4_OUT2	7
    234      1.5  jmcneill #define	CAR_CLKSRC_SPI_DIV		__BITS(7,0)
    235      1.5  jmcneill 
    236      1.5  jmcneill #define	CAR_CLKSRC_UARTA_REG		0x178
    237      1.5  jmcneill #define	CAR_CLKSRC_UARTB_REG		0x17c
    238      1.5  jmcneill #define	CAR_CLKSRC_UARTC_REG		0x1a0
    239      1.5  jmcneill #define	CAR_CLKSRC_UARTD_REG		0x1c0
    240      1.5  jmcneill 
    241      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC		__BITS(31,29)
    242      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLP_OUT0	0
    243      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLC2_OUT0	1
    244      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLC_OUT0	2
    245      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLC4_OUT0	3
    246      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLC4_OUT1	5
    247      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_CLK_M	6
    248      1.5  jmcneill #define	CAR_CLKSRC_UART_SRC_PLLC4_OUT2	7
    249      1.5  jmcneill #define	CAR_CLKSRC_UART_DIV_ENB		__BIT(24)
    250      1.5  jmcneill #define	CAR_CLKSRC_UART_DIV		__BITS(15,0)
    251      1.5  jmcneill 
    252      1.5  jmcneill #define	CAR_CLKSRC_SDMMC1_REG		0x150
    253      1.5  jmcneill #define	CAR_CLKSRC_SDMMC2_REG		0x154
    254      1.5  jmcneill #define	CAR_CLKSRC_SDMMC4_REG		0x164
    255      1.5  jmcneill #define	CAR_CLKSRC_SDMMC3_REG		0x1bc
    256      1.1  jmcneill 
    257      1.5  jmcneill #define	CAR_CLKSRC_SDMMC_SRC		__BITS(31,29)
    258      1.1  jmcneill /* CAR_CLKSRC_SDMMC_SRC_* differs for each instance */
    259      1.5  jmcneill #define	CAR_CLKSRC_SDMMC_DIV		__BITS(7,0)
    260      1.1  jmcneill 
    261      1.5  jmcneill #define	CAR_CLKSRC_DISP1_REG		0x138
    262      1.5  jmcneill #define	CAR_CLKSRC_DISP2_REG		0x13c
    263      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC		__BITS(31,29)
    264      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC_PLLP_OUT0	0
    265      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC_PLLD_OUT	1
    266      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC_PLLD_OUT0	2	/* DISP1 only */
    267      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC_PLLD2_OUT0	5
    268      1.5  jmcneill #define	CAR_CLKSRC_DISP_SRC_CLK_M	6
    269      1.5  jmcneill 
    270      1.5  jmcneill #define	CAR_CLKSRC_HOST1X_REG		0x180
    271      1.5  jmcneill #define	CAR_CLKSRC_HOST1X_SRC		__BITS(31,29)
    272      1.5  jmcneill #define	CAR_CLKSRC_HOST1X_IDLE_DIVISOR	__BITS(15,8)
    273      1.5  jmcneill #define	CAR_CLKSRC_HOST1X_CLK_DIVISOR	__BITS(7,0)
    274      1.5  jmcneill 
    275      1.5  jmcneill #define	CAR_RST_DEV_L_SET_REG		0x300
    276      1.5  jmcneill #define	CAR_RST_DEV_L_CLR_REG		0x304
    277      1.5  jmcneill #define	CAR_RST_DEV_H_SET_REG		0x308
    278      1.5  jmcneill #define	CAR_RST_DEV_H_CLR_REG		0x30c
    279      1.5  jmcneill #define	CAR_RST_DEV_U_SET_REG		0x310
    280      1.5  jmcneill #define	CAR_RST_DEV_U_CLR_REG		0x314
    281      1.5  jmcneill #define	CAR_RST_DEV_V_SET_REG		0x430
    282      1.5  jmcneill #define	CAR_RST_DEV_V_CLR_REG		0x434
    283      1.5  jmcneill #define	CAR_RST_DEV_W_SET_REG		0x438
    284      1.5  jmcneill #define	CAR_RST_DEV_W_CLR_REG		0x43c
    285      1.5  jmcneill #define	CAR_RST_DEV_X_SET_REG		0x290
    286      1.5  jmcneill #define	CAR_RST_DEV_X_CLR_REG		0x294
    287      1.5  jmcneill #define	CAR_RST_DEV_Y_SET_REG		0x2a8
    288      1.5  jmcneill #define	CAR_RST_DEV_Y_CLR_REG		0x2ac
    289      1.5  jmcneill 
    290      1.5  jmcneill #define	CAR_CLK_ENB_L_SET_REG		0x320
    291      1.5  jmcneill #define	CAR_CLK_ENB_L_CLR_REG		0x324
    292      1.5  jmcneill #define	CAR_CLK_ENB_H_SET_REG		0x328
    293      1.5  jmcneill #define	CAR_CLK_ENB_H_CLR_REG		0x32c
    294      1.5  jmcneill #define	CAR_CLK_ENB_U_SET_REG		0x330
    295      1.5  jmcneill #define	CAR_CLK_ENB_U_CLR_REG		0x334
    296      1.5  jmcneill #define	CAR_CLK_ENB_V_SET_REG		0x440
    297      1.5  jmcneill #define	CAR_CLK_ENB_V_CLR_REG		0x444
    298      1.5  jmcneill #define	CAR_CLK_ENB_W_SET_REG		0x448
    299      1.5  jmcneill #define	CAR_CLK_ENB_W_CLR_REG		0x44c
    300      1.5  jmcneill #define	CAR_CLK_ENB_X_SET_REG		0x284
    301      1.5  jmcneill #define	CAR_CLK_ENB_X_CLR_REG		0x288
    302      1.5  jmcneill #define	CAR_CLK_ENB_Y_SET_REG		0x29c
    303      1.5  jmcneill #define	CAR_CLK_ENB_Y_CLR_REG		0x2a0
    304      1.5  jmcneill 
    305      1.5  jmcneill #define	CAR_DEV_L_CACHE2		__BIT(31)
    306      1.5  jmcneill #define	CAR_DEV_L_I2S1			__BIT(30)
    307      1.5  jmcneill #define	CAR_DEV_L_HOST1X		__BIT(28)
    308      1.5  jmcneill #define	CAR_DEV_L_DISP1			__BIT(27)
    309      1.5  jmcneill #define	CAR_DEV_L_DISP2			__BIT(26)
    310      1.5  jmcneill #define	CAR_DEV_L_ISP			__BIT(23)
    311      1.5  jmcneill #define	CAR_DEV_L_USBD			__BIT(22)
    312      1.5  jmcneill #define	CAR_DEV_L_VI			__BIT(20)
    313      1.5  jmcneill #define	CAR_DEV_L_I2S3			__BIT(18)
    314      1.5  jmcneill #define	CAR_DEV_L_PWM			__BIT(17)
    315      1.5  jmcneill #define	CAR_DEV_L_SDMMC4		__BIT(15)
    316      1.5  jmcneill #define	CAR_DEV_L_SDMMC1		__BIT(14)
    317      1.5  jmcneill #define	CAR_DEV_L_I2C1			__BIT(12)
    318      1.5  jmcneill #define	CAR_DEV_L_I2S2			__BIT(11)
    319      1.5  jmcneill #define	CAR_DEV_L_SPDIF			__BIT(10)
    320      1.5  jmcneill #define	CAR_DEV_L_SDMMC2		__BIT(9)
    321      1.5  jmcneill #define	CAR_DEV_L_GPIO			__BIT(8)
    322      1.5  jmcneill #define	CAR_DEV_L_UARTB			__BIT(7)
    323      1.5  jmcneill #define	CAR_DEV_L_UARTA			__BIT(6)
    324      1.5  jmcneill #define	CAR_DEV_L_TMR			__BIT(5)
    325      1.5  jmcneill #define	CAR_DEV_L_RTC			__BIT(4)
    326      1.5  jmcneill #define	CAR_DEV_L_ISPB			__BIT(3)
    327      1.5  jmcneill #define	CAR_DEV_L_TRIG_SYS		__BIT(2)
    328      1.5  jmcneill #define	CAR_DEV_L_COP			__BIT(1)
    329      1.5  jmcneill #define	CAR_DEV_L_CPU			__BIT(0)
    330      1.5  jmcneill 
    331      1.5  jmcneill #define	CAR_DEV_U_XUSB_DEV		__BIT(31)
    332      1.5  jmcneill #define	CAR_DEV_U_DEV1_OUT		__BIT(30)
    333      1.5  jmcneill #define	CAR_DEV_U_DEV2_OUT		__BIT(29)
    334      1.5  jmcneill #define	CAR_DEV_U_SUS_OUT		__BIT(28)
    335      1.5  jmcneill #define	CAR_DEV_U_MSENC			__BIT(27)
    336      1.5  jmcneill #define	CAR_DEV_U_XUSB_HOST		__BIT(25)
    337      1.5  jmcneill #define	CAR_DEV_U_CRAM2			__BIT(24)
    338      1.5  jmcneill #define	CAR_DEV_U_IRAMD			__BIT(23)
    339      1.5  jmcneill #define	CAR_DEV_U_IRAMC			__BIT(22)
    340      1.5  jmcneill #define	CAR_DEV_U_IRAMB			__BIT(21)
    341      1.5  jmcneill #define	CAR_DEV_U_IRAMA			__BIT(20)
    342      1.5  jmcneill #define	CAR_DEV_U_TSEC			__BIT(19)
    343      1.5  jmcneill #define	CAR_DEV_U_DSIB			__BIT(18)
    344      1.5  jmcneill #define	CAR_DEV_U_I2C_SLOW		__BIT(17)
    345      1.5  jmcneill #define	CAR_DEV_U_DTV			__BIT(15)
    346      1.5  jmcneill #define	CAR_DEV_U_SOC_THERM		__BIT(14)
    347      1.5  jmcneill #define	CAR_DEV_U_PCIEXCLK		__BIT(10)
    348      1.5  jmcneill #define	CAR_DEV_U_CSITE			__BIT(9)
    349      1.5  jmcneill #define	CAR_DEV_U_AFI			__BIT(8)
    350      1.5  jmcneill #define	CAR_DEV_U_PCIE			__BIT(6)
    351      1.5  jmcneill #define	CAR_DEV_U_SDMMC3		__BIT(5)
    352      1.5  jmcneill #define	CAR_DEV_U_SPI4			__BIT(4)
    353      1.5  jmcneill #define	CAR_DEV_U_I2C3			__BIT(3)
    354      1.5  jmcneill #define	CAR_DEV_U_UARTD			__BIT(1)
    355      1.5  jmcneill 
    356      1.5  jmcneill #define	CAR_DEV_H_BSEV			__BIT(31)
    357      1.5  jmcneill #define	CAR_DEV_H_USB2			__BIT(26)
    358      1.5  jmcneill #define	CAR_DEV_H_EMC			__BIT(25)
    359      1.5  jmcneill #define	CAR_DEV_H_MIPI_CAL		__BIT(24)
    360      1.5  jmcneill #define	CAR_DEV_H_UARTC			__BIT(23)
    361      1.5  jmcneill #define	CAR_DEV_H_I2C2			__BIT(22)
    362      1.5  jmcneill #define	CAR_DEV_H_CSI			__BIT(20)
    363      1.5  jmcneill #define	CAR_DEV_H_DSI			__BIT(16)
    364      1.5  jmcneill #define	CAR_DEV_H_I2C5			__BIT(15)
    365      1.5  jmcneill #define	CAR_DEV_H_SPI3			__BIT(14)
    366      1.5  jmcneill #define	CAR_DEV_H_SPI2			__BIT(12)
    367      1.5  jmcneill #define	CAR_DEV_H_SPI1			__BIT(9)
    368      1.5  jmcneill #define	CAR_DEV_H_KFUSE			__BIT(8)
    369      1.5  jmcneill #define	CAR_DEV_H_FUSE			__BIT(7)
    370      1.5  jmcneill #define	CAR_DEV_H_PMC			__BIT(6)
    371      1.5  jmcneill #define	CAR_DEV_H_STAT_MON		__BIT(5)
    372      1.5  jmcneill #define	CAR_DEV_H_APBDMA		__BIT(2)
    373      1.5  jmcneill #define	CAR_DEV_H_AHBDMA		__BIT(1)
    374      1.5  jmcneill #define	CAR_DEV_H_MEM			__BIT(0)
    375      1.5  jmcneill 
    376      1.5  jmcneill #define	CAR_DEV_V_HDA			__BIT(29)
    377      1.5  jmcneill #define	CAR_DEV_V_SATA			__BIT(28)
    378      1.5  jmcneill #define	CAR_DEV_V_SATA_OOB		__BIT(27)
    379      1.5  jmcneill #define	CAR_DEV_V_EXTPERIPH3		__BIT(26)
    380      1.5  jmcneill #define	CAR_DEV_V_EXTPERIPH2		__BIT(25)
    381      1.5  jmcneill #define	CAR_DEV_V_EXTPERIPH1		__BIT(24)
    382      1.5  jmcneill #define	CAR_DEV_V_ACTMON		__BIT(23)
    383      1.5  jmcneill #define	CAR_DEV_V_SPDIF_DOUBLER		__BIT(22)
    384      1.5  jmcneill #define	CAR_DEV_V_ATOMICS		__BIT(16)
    385      1.5  jmcneill #define	CAR_DEV_V_HDA2CODEC_2X		__BIT(15)
    386      1.5  jmcneill #define	CAR_DEV_V_APB2APE		__BIT(11)
    387      1.5  jmcneill #define	CAR_DEV_V_AHUB			__BIT(10)
    388      1.5  jmcneill #define	CAR_DEV_V_I2C4			__BIT(7)
    389      1.5  jmcneill #define	CAR_DEV_V_I2S5			__BIT(6)
    390      1.5  jmcneill #define	CAR_DEV_V_I2S4			__BIT(5)
    391      1.5  jmcneill #define	CAR_DEV_V_TSENSOR		__BIT(4)
    392      1.5  jmcneill #define	CAR_DEV_V_MSELECT		__BIT(3)
    393      1.5  jmcneill #define	CAR_DEV_V_CPULP			__BIT(1)
    394      1.5  jmcneill #define	CAR_DEV_V_CPUG			__BIT(0)
    395      1.5  jmcneill 
    396      1.5  jmcneill #define	CAR_DEV_W_MC1			__BIT(30)
    397      1.5  jmcneill #define	CAR_DEV_W_EMC_DLL		__BIT(29)
    398      1.5  jmcneill #define	CAR_DEV_W_XUSB_SS		__BIT(28)
    399      1.5  jmcneill #define	CAR_DEV_W_DVFS			__BIT(27)
    400      1.5  jmcneill #define	CAR_DEV_W_ENTROPY		__BIT(21)
    401      1.5  jmcneill #define	CAR_DEV_W_DSIB_LP		__BIT(20)
    402      1.5  jmcneill #define	CAR_DEV_W_DSIA_LP		__BIT(19)
    403      1.5  jmcneill #define	CAR_DEV_W_CILEF			__BIT(18)
    404      1.5  jmcneill #define	CAR_DEV_W_CILCD			__BIT(17)
    405      1.5  jmcneill #define	CAR_DEV_W_CILAB			__BIT(16)
    406      1.5  jmcneill #define	CAR_DEV_W_XUSB			__BIT(15)
    407      1.5  jmcneill #define	CAR_DEV_W_XUSB_PADCTL		__BIT(14)
    408      1.5  jmcneill #define	CAR_DEV_W_MIPI_IOBIST		__BIT(13)
    409      1.5  jmcneill #define	CAR_DEV_W_SATA_IOBIST		__BIT(12)
    410      1.5  jmcneill #define	CAR_DEV_W_EMC_IOBIST		__BIT(10)
    411      1.5  jmcneill #define	CAR_DEV_W_PCIE2_IOBIST		__BIT(9)
    412      1.5  jmcneill #define	CAR_DEV_W_CEC			__BIT(8)
    413      1.5  jmcneill #define	CAR_DEV_W_PCIERX5		__BIT(7)
    414      1.5  jmcneill #define	CAR_DEV_W_PCIERX4		__BIT(6)
    415      1.5  jmcneill #define	CAR_DEV_W_PCIERX3		__BIT(5)
    416      1.5  jmcneill #define	CAR_DEV_W_PCIERX2		__BIT(4)
    417      1.5  jmcneill #define	CAR_DEV_W_PCIERX1		__BIT(3)
    418      1.5  jmcneill #define	CAR_DEV_W_PCIERX0		__BIT(2)
    419      1.5  jmcneill #define	CAR_DEV_W_SATACOLD		__BIT(1)
    420      1.5  jmcneill #define	CAR_DEV_W_HDA2HDMICODEC		__BIT(0)
    421      1.5  jmcneill 
    422      1.5  jmcneill #define	CAR_DEV_X_PLLG_REF		__BIT(29)
    423      1.5  jmcneill #define	CAR_DEV_X_PLLA_ADSP		__BIT(28)
    424      1.5  jmcneill #define	CAR_DEV_X_PLLP_ADSP		__BIT(27)
    425      1.5  jmcneill #define	CAR_DEV_X_HPLL_ADSP		__BIT(26)
    426      1.5  jmcneill #define	CAR_DEV_X_DBGAPB		__BIT(25)
    427      1.5  jmcneill #define	CAR_DEV_X_GPU			__BIT(24)
    428      1.5  jmcneill #define	CAR_DEV_X_SOR1			__BIT(23)
    429      1.5  jmcneill #define	CAR_DEV_X_SOR0			__BIT(22)
    430      1.5  jmcneill #define	CAR_DEV_X_DPAUX			__BIT(21)
    431      1.5  jmcneill #define	CAR_DEV_X_VIC			__BIT(18)
    432      1.5  jmcneill #define	CAR_DEV_X_UART_FST_MIPI_CAL	__BIT(17)
    433      1.5  jmcneill #define	CAR_DEV_X_EMC_DLL		__BIT(14)
    434      1.5  jmcneill #define	CAR_DEV_X_VIM2_CLK		__BIT(11)
    435      1.5  jmcneill #define	CAR_DEV_X_MC_BBC		__BIT(10)
    436      1.5  jmcneill #define	CAR_DEV_X_MC_CPU		__BIT(9)
    437      1.5  jmcneill #define	CAR_DEV_X_MC_CBPA		__BIT(8)
    438      1.5  jmcneill #define	CAR_DEV_X_MC_CAPA		__BIT(7)
    439      1.5  jmcneill #define	CAR_DEV_X_I2C6			__BIT(6)
    440      1.5  jmcneill #define	CAR_DEV_X_CAM_MCLK2		__BIT(5)
    441      1.5  jmcneill #define	CAR_DEV_X_CAM_MCLK		__BIT(4)
    442      1.5  jmcneill #define	CAR_DEV_X_ETR			__BIT(3)
    443      1.5  jmcneill #define	CAR_DEV_X_SPARE			__BIT(0)
    444      1.1  jmcneill 
    445      1.4  jmcneill #define	CAR_DEV_Y_PLLP_OUT_CPU		__BIT(31)
    446      1.4  jmcneill #define	CAR_DEV_Y_SOR_SAFE		__BIT(30)
    447      1.4  jmcneill #define	CAR_DEV_Y_IQC1			__BIT(29)
    448      1.4  jmcneill #define	CAR_DEV_Y_IQC2			__BIT(28)
    449      1.4  jmcneill #define	CAR_DEV_Y_NVENC			__BIT(27)
    450      1.4  jmcneill #define	CAR_DEV_Y_ADSPNEON		__BIT(26)
    451      1.4  jmcneill #define	CAR_DEV_Y_ADSPSCU		__BIT(25)
    452      1.4  jmcneill #define	CAR_DEV_Y_ADSPWDT		__BIT(24)
    453      1.4  jmcneill #define	CAR_DEV_Y_ADSPDBG		__BIT(23)
    454      1.4  jmcneill #define	CAR_DEV_Y_ADSPPERIPH		__BIT(22)
    455      1.4  jmcneill #define	CAR_DEV_Y_ADSPINTF		__BIT(21)
    456      1.4  jmcneill #define	CAR_DEV_Y_UARTAPE		__BIT(20)
    457      1.4  jmcneill #define	CAR_DEV_Y_QSPI			__BIT(19)
    458      1.4  jmcneill #define	CAR_DEV_Y_USB2_TRK		__BIT(18)
    459      1.4  jmcneill #define	CAR_DEV_Y_HSIC_TRK		__BIT(17)
    460      1.4  jmcneill #define	CAR_DEV_Y_VI_I2C		__BIT(16)
    461      1.4  jmcneill #define	CAR_DEV_Y_DPAUX			__BIT(15)
    462      1.4  jmcneill #define	CAR_DEV_Y_TSECB			__BIT(14)
    463      1.4  jmcneill #define	CAR_DEV_Y_PEX_USB_UPHY		__BIT(13)
    464      1.4  jmcneill #define	CAR_DEV_Y_SATA_USB_UPHY		__BIT(12)
    465      1.4  jmcneill #define	CAR_DEV_Y_MAUD			__BIT(10)
    466      1.4  jmcneill #define	CAR_DEV_Y_MC_CCPA		__BIT(9)
    467      1.4  jmcneill #define	CAR_DEV_Y_MC_CDPA		__BIT(8)
    468      1.4  jmcneill #define	CAR_DEV_Y_ADSP			__BIT(7)
    469      1.4  jmcneill #define	CAR_DEV_Y_APE			__BIT(6)
    470      1.4  jmcneill #define	CAR_DEV_Y_DMIC3			__BIT(5)
    471      1.4  jmcneill #define	CAR_DEV_Y_AXIAP			__BIT(4)
    472      1.4  jmcneill #define	CAR_DEV_Y_NVJPG			__BIT(3)
    473      1.4  jmcneill #define	CAR_DEV_Y_NVDEC			__BIT(2)
    474      1.4  jmcneill #define	CAR_DEV_Y_SDMMC_LEGACY_TM	__BIT(1)
    475      1.4  jmcneill #define	CAR_DEV_Y_SPARE1		__BIT(0)
    476      1.4  jmcneill 
    477      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_REG	0x368
    478      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CPU_STATE	__BITS(31,28)
    479      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CPU_STATE_IDLE			1
    480      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CPU_STATE_RUN			2
    481      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CWAKEUP_IDLE_SOURCE __BITS(3,0)
    482      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CWAKEUP_SOURCE_CLKM		0
    483      1.5  jmcneill #define	CAR_CCLKG_BURST_POLICY_CWAKEUP_SOURCE_PLLX_OUT0_LJ	8
    484      1.5  jmcneill 
    485      1.8  jmcneill #define	CAR_CLKSRC_MSELECT_REG		0x3b4
    486      1.8  jmcneill #define	CAR_CLKSRC_MSELECT_SRC		__BITS(31,29)
    487      1.8  jmcneill #define	CAR_CLKSRC_MSELECT_DIV		__BITS(7,0)
    488      1.8  jmcneill 
    489      1.5  jmcneill #define	CAR_CLKSRC_TSENSOR_REG		0x3b8
    490      1.5  jmcneill #define	CAR_CLKSRC_TSENSOR_SRC		__BITS(31,29)
    491      1.5  jmcneill #define	CAR_CLKSRC_TSENSOR_SRC_CLK_M	4
    492      1.5  jmcneill #define	CAR_CLKSRC_TSENSOR_DIV		__BITS(7,0)
    493      1.5  jmcneill 
    494      1.5  jmcneill #define	CAR_CLKSRC_HDA2CODEC_2X_REG	0x3e4
    495      1.5  jmcneill #define	CAR_CLKSRC_HDA2CODEC_2X_SRC	__BITS(31,29)
    496      1.5  jmcneill #define	CAR_CLKSRC_HDA2CODEC_2X_DIV	__BITS(7,0)
    497      1.5  jmcneill 
    498      1.5  jmcneill #define	CAR_CLKSRC_SATA_OOB_REG		0x420
    499      1.5  jmcneill #define	CAR_CLKSRC_SATA_OOB_SRC		__BITS(31,29)
    500      1.5  jmcneill #define	CAR_CLKSRC_SATA_OOB_DIV		__BITS(7,0)
    501      1.5  jmcneill 
    502      1.5  jmcneill #define	CAR_CLKSRC_SATA_REG		0x424
    503      1.5  jmcneill #define	CAR_CLKSRC_SATA_SRC		__BITS(31,29)
    504      1.5  jmcneill #define	CAR_CLKSRC_SATA_AUX_CLK_ENB	__BIT(24)
    505      1.5  jmcneill #define	CAR_CLKSRC_SATA_DIV		__BITS(7,0)
    506      1.5  jmcneill 
    507      1.5  jmcneill #define	CAR_CLKSRC_HDA_REG		0x428
    508      1.5  jmcneill #define	CAR_CLKSRC_HDA_SRC		__BITS(31,29)
    509      1.5  jmcneill #define	CAR_CLKSRC_HDA_DIV		__BITS(7,0)
    510      1.5  jmcneill 
    511      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG0_REG		0x480
    512      1.5  jmcneill 
    513      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_REG		0x484
    514      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_ENABLE_DLY_COUNT	__BITS(31,27)
    515      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_PLLU_POWERUP		__BIT(17)
    516      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_PLLU_POWERDOWN	__BIT(16)
    517      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_PLL_ENABLE_POWERUP	__BIT(15)
    518      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_PLL_ENABLE_POWERDOWN	__BIT(14)
    519      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG1_XTAL_FREQ_COUNT	__BITS(11,0)
    520      1.5  jmcneill 
    521      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_REG		0x488
    522      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG2_PHY_XTAL_CLOCKEN	__BIT(30)
    523      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_D_POWERUP	__BIT(25)
    524      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_D_POWERDOWN	__BIT(24)
    525      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_ACTIVE_DLY_COUNT	__BITS(23,18)
    526      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_STABLE_COUNT		__BITS(17,6)
    527      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_C_POWERUP	__BIT(5)
    528      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_C_POWERDOWN	__BIT(4)
    529      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_B_POWERUP	__BIT(3)
    530      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_B_POWERDOWN	__BIT(2)
    531      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_A_POWERUP	__BIT(1)
    532      1.5  jmcneill #define	CAR_UTMIP_PLL_CFG2_PD_SAMP_A_POWERDOWN	__BIT(0)
    533      1.5  jmcneill 
    534      1.5  jmcneill #define	CAR_PLLE_AUX_REG		0x48c
    535      1.5  jmcneill #define	CAR_PLLE_AUX_SS_SEQ_INCLUDE		__BIT(31)
    536      1.5  jmcneill #define	CAR_PLLE_AUX_REF_SEL_PLLREFE		__BIT(28)
    537      1.5  jmcneill #define	CAR_PLLE_AUX_SEQ_STATE			__BITS(27,26)
    538      1.5  jmcneill #define	CAR_PLLE_AUX_SEQ_START_STATE		__BIT(25)
    539      1.5  jmcneill #define	CAR_PLLE_AUX_SEQ_ENABLE			__BIT(24)
    540      1.5  jmcneill #define	CAR_PLLE_AUX_SS_DLY			__BITS(23,16)
    541      1.5  jmcneill #define	CAR_PLLE_AUX_LOCK_DLY			__BITS(15,8)
    542      1.5  jmcneill #define	CAR_PLLE_AUX_FAST_PT			__BIT(7)
    543      1.5  jmcneill #define	CAR_PLLE_AUX_SS_SWCTL			__BIT(6)
    544      1.5  jmcneill #define	CAR_PLLE_AUX_CONFIG_SWCTL		__BIT(5)
    545      1.5  jmcneill #define	CAR_PLLE_AUX_ENABLE_SWCTL		__BIT(4)
    546      1.5  jmcneill #define	CAR_PLLE_AUX_USE_LOCKDET		__BIT(3)
    547      1.5  jmcneill #define	CAR_PLLE_AUX_REF_SRC			__BIT(2)
    548      1.5  jmcneill #define	CAR_PLLE_AUX_CML1_OEN			__BIT(1)
    549      1.5  jmcneill #define	CAR_PLLE_AUX_CML0_OEN			__BIT(0)
    550      1.5  jmcneill 
    551      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_REG		0x490
    552      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_STATE		__BITS(27,26)
    553      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_START_STATE	__BIT(25)
    554      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_ENABLE		__BIT(24)
    555  1.8.6.1  christos #define	CAR_SATA_PLL_CFG0_SEQ_PADPLL_SLEEP_IDDQ	__BIT(13)
    556      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_PADPLL_PD_INPUT_VALUE __BIT(7)
    557      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_LANE_PD_INPUT_VALUE __BIT(6)
    558      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_RESET_INPUT_VALUE	__BIT(5)
    559      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_SEQ_IN_SWCTL		__BIT(4)
    560      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_PADPLL_USE_LOCKDET	__BIT(2)
    561      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_PADPLL_RESET_OVERRIDE_VALUE __BIT(1)
    562      1.5  jmcneill #define	CAR_SATA_PLL_CFG0_PADPLL_RESET_SWCTL	__BIT(0)
    563      1.5  jmcneill 
    564      1.5  jmcneill #define	CAR_SATA_PLL_CFG1_REG		0x494
    565      1.5  jmcneill #define	CAR_SATA_PLL_CFG1_LANE_IDDQ2_PADPLL_RESET_DLY __BITS(31,24)
    566      1.5  jmcneill #define	CAR_SATA_PLL_CFG1_PADPLL_IDDQ2LANE_SLUMBER_DLY __BITS(23,16)
    567      1.5  jmcneill #define	CAR_SATA_PLL_CFG1_PADPLL_PU_POST_DLY	__BITS(15,8)
    568      1.5  jmcneill #define	CAR_SATA_PLL_CFG1_LANE_IDDQ2_PADPLL_IDDQ_DLY __BITS(7,0)
    569      1.5  jmcneill 
    570      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG3_REG		0x4c0
    571      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG3_REF_SRC_SEL		__BIT(26)
    572      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG3_REF_DIS		__BIT(25)
    573      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG3_PTS			__BIT(24)
    574      1.6  jmcneill #define	CAR_UTMIP_PLL_CFG3_SETUP		__BITS(23,0)
    575      1.6  jmcneill 
    576      1.5  jmcneill #define	CAR_PLLREFE_BASE_REG		0x4c4
    577      1.5  jmcneill #define	CAR_PLLREFE_BASE_BYPASS			__BIT(31)
    578      1.5  jmcneill #define	CAR_PLLREFE_BASE_ENABLE			__BIT(30)
    579      1.5  jmcneill #define	CAR_PLLREFE_BASE_REF_DIS		__BIT(29)
    580      1.5  jmcneill #define	CAR_PLLREFE_BASE_KCP			__BITS(28,27)
    581      1.5  jmcneill #define	CAR_PLLREFE_BASE_KVCO			__BIT(26)
    582      1.5  jmcneill #define	CAR_PLLREFE_BASE_DIVP			__BITS(20,16)
    583      1.5  jmcneill #define	CAR_PLLREFE_BASE_DIVN			__BITS(15,8)
    584      1.5  jmcneill #define	CAR_PLLREFE_BASE_DIVM			__BITS(7,0)
    585      1.5  jmcneill 
    586      1.5  jmcneill #define	CAR_PLLREFE_MISC_REG		0x4c8
    587      1.5  jmcneill #define	CAR_PLLREFE_MISC_LOCK_ENABLE		__BIT(30)
    588      1.5  jmcneill #define	CAR_PLLREFE_MISC_LOCK_OVERRIDE		__BIT(29)
    589      1.5  jmcneill #define	CAR_PLLREFE_MISC_FREQLOCK		__BIT(28)
    590      1.5  jmcneill #define	CAR_PLLREFE_MISC_LOCK			__BIT(27)
    591      1.5  jmcneill #define	CAR_PLLREFE_MISC_PTS			__BITS(26,25)
    592      1.5  jmcneill #define	CAR_PLLREFE_MISC_IDDQ			__BIT(24)
    593      1.5  jmcneill #define	CAR_PLLREFE_MISC_SETUP			__BITS(23,0)
    594      1.5  jmcneill 
    595      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_REG		0x51c
    596      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_SEQ_STATE		__BITS(27,26)
    597      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_SEQ_START_STATE	__BIT(25)
    598      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_SEQ_ENABLE		__BIT(24)
    599      1.6  jmcneill #define	CAR_XUSBIO_PLL_CFG0_PADPLL_SLEEP_IDDQ	__BIT(13)
    600      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_PADPLL_USE_LOCKDET	__BIT(6)
    601      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_SEQ_RESET_INPUT_VALUE	__BIT(5)
    602      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_SEQ_IN_SWCTL	__BIT(4)
    603      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_CLK_ENABLE_OVERRIDE	__BIT(3)
    604      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_CLK_ENABLE_SWCTL	__BIT(2)
    605      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_PADPLL_RESET_OVERRIDE_VALUE __BIT(1)
    606      1.5  jmcneill #define	CAR_XUSBIO_PLL_CFG0_PADPLL_RESET_SWCTL	__BIT(0)
    607      1.5  jmcneill 
    608      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_REG	0x52c
    609      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_LOCK		__BIT(31)
    610      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_SEQ_STATE	__BITS(27,26)
    611      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_SEQ_START_STATE __BIT(25)
    612      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_SEQ_ENABLE	__BIT(24)
    613      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_IDDQ_PD_INCLUDE __BIT(7)
    614      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_USE_LOCKDET	__BIT(6)
    615      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_SEQ_RESET_INPUT_VALUE __BIT(5)
    616      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_SEQ_IN_SWCTL	__BIT(4)
    617      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_CLK_ENABLE_OVERRIDE __BIT(3)
    618      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_CLK_ENABLE_SWCTL __BIT(2)
    619      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_IDDQ_OVERRIDE	__BIT(1)
    620      1.6  jmcneill #define	CAR_UTMIPLL_HW_PWRDN_CFG0_IDDQ_SWCTL	__BIT(0)
    621      1.6  jmcneill 
    622      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_REG	0x530
    623      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_IDDQ_PD_INCLUDE	__BIT(28)
    624      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_SEQ_STATE		__BITS(27,26)
    625      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_SEQ_START_STATE	__BIT(25)
    626      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_SEQ_ENABLE	__BIT(24)
    627      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_USE_SWITCH_DETECT	__BIT(7)
    628      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_USE_LOCKDET	__BIT(6)
    629      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_SEQ_RESET_INPUT_VALUE __BIT(5)
    630      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_SEQ_IN_SWCTL	__BIT(4)
    631      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_CLK_ENABLE_OVERRIDE_VALUE __BIT(3)
    632      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_CLK_ENABLE_SWCTL	__BIT(2)
    633      1.7  jmcneill #define	CLK_RST_CONTROLLER_PLLU_HW_PWRDN_CFG0_CLK_SWITCH_SWCTL	__BIT(0)
    634      1.7  jmcneill 
    635      1.6  jmcneill #define	CLK_RST_CONTROLLER_XUSB_PLL_CFG0_REG	0x534
    636      1.6  jmcneill #define	CLK_RST_CONTROLLER_XUSB_PLL_CFG0_PLLU_CLK_SWITCH_DLY	__BITS(31,24)
    637      1.6  jmcneill #define	CLK_RST_CONTROLLER_XUSB_PLL_CFG0_PLLU_LOCK_DLY		__BITS(23,14)
    638      1.6  jmcneill #define	CLK_RST_CONTROLLER_XUSB_PLL_CFG0_UTMIPLL_IDDQ2_ENABLE_DLY __BITS(13,10)
    639      1.6  jmcneill #define	CLK_RST_CONTROLLER_XUSB_PLL_CFG0_UTMIPLL_LOCK_DLY	__BITS(9,0)
    640      1.6  jmcneill 
    641      1.5  jmcneill #define	CAR_CLKSRC_XUSB_HOST_REG	0x600
    642      1.5  jmcneill #define	CAR_CLKSRC_XUSB_HOST_SRC		__BITS(31,29)
    643      1.5  jmcneill #define	CAR_CLKSRC_XUSB_HOST_DIV		__BITS(7,0)
    644      1.5  jmcneill 
    645      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FALCON_REG	0x604
    646      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FALCON_SRC		__BITS(31,29)
    647      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FALCON_DIV		__BITS(7,0)
    648      1.5  jmcneill 
    649      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FS_REG		0x608
    650      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FS_SRC			__BITS(31,29)
    651      1.5  jmcneill #define	CAR_CLKSRC_XUSB_FS_DIV			__BITS(7,0)
    652      1.5  jmcneill 
    653      1.5  jmcneill #define	CAR_CLKSRC_XUSB_SS_REG		0x610
    654      1.5  jmcneill #define	CAR_CLKSRC_XUSB_SS_SRC			__BITS(31,29)
    655      1.5  jmcneill #define	CAR_CLKSRC_XUSB_SS_HS_CLK_BYPASS	__BIT(25)
    656      1.5  jmcneill #define	CAR_CLKSRC_XUSB_SS_SS_CLK_BYPASS	__BIT(24)
    657      1.5  jmcneill #define	CAR_CLKSRC_XUSB_SS_DIV			__BITS(7,0)
    658      1.5  jmcneill 
    659      1.5  jmcneill #define	CAR_CLKSRC_SOC_THERM_REG	0x644
    660      1.5  jmcneill #define	CAR_CLKSRC_SOC_THERM_SRC	__BITS(31,29)
    661      1.5  jmcneill #define	CAR_CLKSRC_SOC_THERM_SRC_PLLP_OUT0	2
    662      1.5  jmcneill #define	CAR_CLKSRC_SOC_THERM_DDLL_SEL	__BITS(11,10)
    663      1.5  jmcneill #define	CAR_CLKSRC_SOC_THERM_DIV	__BITS(7,0)
    664      1.1  jmcneill 
    665      1.4  jmcneill #define	CAR_CLKSRC_USB2_HSIC_TRK_REG	0x6cc
    666      1.4  jmcneill #define	CAR_CLKSRC_USB2_HSIC_TRK_DIV	__BITS(7,0)
    667      1.4  jmcneill 
    668      1.1  jmcneill #endif /* _ARM_TEGRA210_CARREG_H */
    669