Home | History | Annotate | Line # | Download | only in nvidia
tegra_reg.h revision 1.24.4.1
      1  1.24.4.1  pgoyette /* $NetBSD: tegra_reg.h,v 1.24.4.1 2018/04/07 04:12:12 pgoyette 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_TEGRA_REG_H
     30       1.1  jmcneill #define _ARM_TEGRA_REG_H
     31       1.1  jmcneill 
     32       1.6  jmcneill #define TEGRA_PCIE_OFFSET	0x01000000
     33      1.15  jakllsch #define TEGRA_PCIE_SIZE		0x3f000000
     34      1.16  jakllsch #define TEGRA_PCIE_RPCONF_BASE	0x01000000
     35      1.16  jakllsch #define TEGRA_PCIE_RPCONF_SIZE	0x00002000
     36       1.6  jmcneill #define TEGRA_PCIE_PADS_BASE	0x01003000
     37       1.6  jmcneill #define TEGRA_PCIE_PADS_SIZE	0x00000800
     38       1.6  jmcneill #define TEGRA_PCIE_AFI_BASE	0x01003800
     39       1.6  jmcneill #define TEGRA_PCIE_AFI_SIZE	0x00000800
     40       1.6  jmcneill #define TEGRA_PCIE_A1_BASE	0x01000000
     41      1.16  jakllsch #define TEGRA_PCIE_A1_SIZE	0x01000000
     42       1.6  jmcneill #define TEGRA_PCIE_A2_BASE	0x02000000
     43      1.16  jakllsch #define TEGRA_PCIE_A2_SIZE	0x0e000000
     44      1.16  jakllsch #define TEGRA_PCIE_A3_BASE	0x10000000
     45      1.16  jakllsch #define TEGRA_PCIE_A3_SIZE	0x30000000
     46       1.6  jmcneill 
     47      1.16  jakllsch #define TEGRA_PCIE_CONF_BASE	0x02000000
     48      1.16  jakllsch #define TEGRA_PCIE_CONF_SIZE	0x01000000
     49      1.17  jakllsch #define TEGRA_PCIE_IO_BASE	0x01800000	/* comment in tegra_pcie.c */
     50      1.17  jakllsch #define TEGRA_PCIE_IO_SIZE	0x00800000
     51      1.17  jakllsch #define TEGRA_PCIE_MEM_BASE	0x03000000
     52       1.6  jmcneill #define TEGRA_PCIE_MEM_SIZE	0x0d000000
     53      1.17  jakllsch #define TEGRA_PCIE_EXTC_BASE	0x10000000
     54      1.17  jakllsch #define TEGRA_PCIE_EXTC_SIZE	0x10000000
     55       1.6  jmcneill #define TEGRA_PCIE_PMEM_BASE	0x20000000
     56       1.6  jmcneill #define TEGRA_PCIE_PMEM_SIZE	0x20000000
     57       1.6  jmcneill 
     58       1.1  jmcneill #define TEGRA_HOST1X_BASE	0x50000000
     59      1.11  jmcneill #define TEGRA_HOST1X_SIZE	0x00034000
     60      1.10  jmcneill #define TEGRA_GHOST_BASE	0x54000000
     61      1.10  jmcneill #define TEGRA_GHOST_SIZE	0x01000000
     62      1.14  jmcneill #define TEGRA_GPU_BASE		0x57000000
     63      1.14  jmcneill #define TEGRA_GPU_SIZE		0x02000000
     64       1.1  jmcneill #define TEGRA_PPSB_BASE		0x60000000
     65       1.1  jmcneill #define TEGRA_PPSB_SIZE		0x01000000
     66       1.1  jmcneill #define TEGRA_APB_BASE		0x70000000
     67       1.1  jmcneill #define TEGRA_APB_SIZE		0x01000000
     68       1.1  jmcneill #define TEGRA_AHB_A2_BASE	0x7c000000
     69       1.1  jmcneill #define TEGRA_AHB_A2_SIZE	0x02000000
     70       1.1  jmcneill 
     71       1.1  jmcneill /* APB */
     72       1.8  jmcneill #define TEGRA_MPIO_OFFSET	0x00000000
     73       1.8  jmcneill #define TEGRA_MPIO_SIZE		0x4000
     74       1.1  jmcneill #define TEGRA_UARTA_OFFSET	0x00006000
     75       1.1  jmcneill #define TEGRA_UARTA_SIZE	0x40
     76       1.1  jmcneill #define TEGRA_UARTB_OFFSET	0x00006040
     77       1.1  jmcneill #define TEGRA_UARTB_SIZE	0x40
     78       1.1  jmcneill #define TEGRA_UARTC_OFFSET	0x00006200
     79       1.1  jmcneill #define TEGRA_UARTC_SIZE	0x100
     80       1.1  jmcneill #define TEGRA_UARTD_OFFSET	0x00006300
     81       1.1  jmcneill #define TEGRA_UARTD_SIZE	0x100
     82       1.9  jmcneill #define TEGRA_I2C1_OFFSET	0x0000c000
     83       1.9  jmcneill #define TEGRA_I2C1_SIZE		0x100
     84       1.9  jmcneill #define TEGRA_I2C2_OFFSET	0x0000c400
     85       1.9  jmcneill #define TEGRA_I2C2_SIZE		0x100
     86       1.9  jmcneill #define TEGRA_I2C3_OFFSET	0x0000c500
     87       1.9  jmcneill #define TEGRA_I2C3_SIZE		0x100
     88       1.9  jmcneill #define TEGRA_I2C4_OFFSET	0x0000c700
     89       1.9  jmcneill #define TEGRA_I2C4_SIZE		0x100
     90       1.9  jmcneill #define TEGRA_I2C5_OFFSET	0x0000d000
     91       1.9  jmcneill #define TEGRA_I2C5_SIZE		0x100
     92       1.9  jmcneill #define TEGRA_I2C6_OFFSET	0x0000d100
     93       1.9  jmcneill #define TEGRA_I2C6_SIZE		0x100
     94       1.1  jmcneill #define TEGRA_RTC_OFFSET	0x0000e000
     95       1.1  jmcneill #define TEGRA_RTC_SIZE		0x100
     96       1.1  jmcneill #define TEGRA_KBC_OFFSET	0x0000e200
     97       1.1  jmcneill #define TEGRA_KBC_SIZE		0x100
     98       1.1  jmcneill #define TEGRA_PMC_OFFSET	0x0000e400
     99       1.1  jmcneill #define TEGRA_PMC_SIZE		0x800
    100      1.19  jmcneill #define TEGRA_FUSE_OFFSET	0x0000f800
    101      1.19  jmcneill #define TEGRA_FUSE_SIZE		0x00000400
    102      1.13  jmcneill #define TEGRA_CEC_OFFSET	0x00015000
    103      1.13  jmcneill #define TEGRA_CEC_SIZE		0x1000
    104       1.1  jmcneill #define TEGRA_MC_OFFSET		0x00019000
    105       1.1  jmcneill #define TEGRA_MC_SIZE		0x1000
    106       1.1  jmcneill #define TEGRA_SATA_OFFSET	0x00020000
    107       1.1  jmcneill #define TEGRA_SATA_SIZE		0x10000
    108       1.1  jmcneill #define TEGRA_HDA_OFFSET	0x00030000
    109       1.1  jmcneill #define TEGRA_HDA_SIZE		0x10000
    110       1.1  jmcneill #define TEGRA_XUSB_PADCTL_OFFSET 0x0009f000
    111       1.1  jmcneill #define TEGRA_XUSB_PADCTL_SIZE	0x1000
    112       1.1  jmcneill #define TEGRA_XUSB_HOST_OFFSET	0x00090000
    113       1.1  jmcneill #define TEGRA_XUSB_HOST_SIZE	0xa000
    114       1.1  jmcneill #define TEGRA_SDMMC1_OFFSET	0x000b0000
    115       1.1  jmcneill #define TEGRA_SDMMC1_SIZE	0x200
    116       1.1  jmcneill #define TEGRA_SDMMC2_OFFSET	0x000b0200
    117       1.1  jmcneill #define TEGRA_SDMMC2_SIZE	0x200
    118       1.1  jmcneill #define TEGRA_SDMMC3_OFFSET	0x000b0400
    119       1.1  jmcneill #define TEGRA_SDMMC3_SIZE	0x200
    120       1.1  jmcneill #define TEGRA_SDMMC4_OFFSET	0x000b0600
    121       1.1  jmcneill #define TEGRA_SDMMC4_SIZE	0x200
    122       1.1  jmcneill #define TEGRA_XUSB_DEV_OFFSET	0x000d0000
    123       1.1  jmcneill #define TEGRA_XUSB_DEV_SIZE	0xa000
    124      1.20  jmcneill #define TEGRA_SOC_THERM_OFFSET	0x000e2000
    125      1.20  jmcneill #define TEGRA_SOC_THERM_SIZE	0x1000
    126       1.1  jmcneill 
    127       1.3  jmcneill /* PPSB */
    128      1.12  jmcneill #define TEGRA_TIMER_OFFSET	0x00005000
    129      1.12  jmcneill #define TEGRA_TIMER_SIZE	0x400
    130       1.4  jmcneill #define TEGRA_CAR_OFFSET	0x00006000
    131       1.4  jmcneill #define TEGRA_CAR_SIZE		0x1000
    132       1.5  jmcneill #define TEGRA_GPIO_OFFSET	0x0000d000
    133       1.5  jmcneill #define TEGRA_GPIO_SIZE		0x00000800
    134       1.3  jmcneill #define TEGRA_EVP_OFFSET	0x0000f000
    135       1.3  jmcneill #define TEGRA_EVP_SIZE		0x1000
    136       1.3  jmcneill 
    137       1.1  jmcneill /* AHB_A2 */
    138       1.1  jmcneill #define TEGRA_USB1_OFFSET	0x01000000
    139       1.1  jmcneill #define TEGRA_USB1_SIZE		0x1800
    140       1.1  jmcneill #define TEGRA_USB2_OFFSET	0x01004000
    141       1.1  jmcneill #define TEGRA_USB2_SIZE		0x1800
    142       1.1  jmcneill #define TEGRA_USB3_OFFSET	0x01008000
    143       1.1  jmcneill #define TEGRA_USB3_SIZE		0x1800
    144       1.1  jmcneill 
    145      1.10  jmcneill /* Graphics Host (GHOST) */
    146      1.10  jmcneill #define TEGRA_DISPLAYA_OFFSET	0x00200000
    147      1.10  jmcneill #define TEGRA_DISPLAYA_SIZE	0x00040000
    148      1.10  jmcneill #define TEGRA_DISPLAYB_OFFSET	0x00240000
    149      1.10  jmcneill #define TEGRA_DISPLAYB_SIZE	0x00040000
    150      1.10  jmcneill #define TEGRA_HDMI_OFFSET	0x00280000
    151      1.10  jmcneill #define TEGRA_HDMI_SIZE		0x00040000
    152      1.14  jmcneill #define TEGRA_SOR_OFFSET	0x00540000
    153      1.14  jmcneill #define TEGRA_SOR_SIZE		0x00040000
    154      1.14  jmcneill #define TEGRA_DPAUX_OFFSET	0x005c0000
    155      1.14  jmcneill #define TEGRA_DPAUX_SIZE	0x00040000
    156      1.10  jmcneill 
    157       1.1  jmcneill #endif /* _ARM_TEGRA_REG_H */
    158