tegra_reg.h revision 1.2 1 1.2 jmcneill /* $NetBSD: tegra_reg.h,v 1.2 2015/04/26 16:24:01 jmcneill 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.1 jmcneill #define CONSADDR_VA (CONSADDR - TEGRA_APB_BASE + TEGRA_APB_VBASE)
33 1.1 jmcneill
34 1.1 jmcneill #define TEGRA_EXTMEM_BASE 0x80000000
35 1.1 jmcneill
36 1.1 jmcneill #define TEGRA_HOST1X_BASE 0x50000000
37 1.1 jmcneill #define TEGRA_HOST1X_SIZE 0x00100000
38 1.1 jmcneill #define TEGRA_PPSB_BASE 0x60000000
39 1.1 jmcneill #define TEGRA_PPSB_SIZE 0x01000000
40 1.1 jmcneill #define TEGRA_APB_BASE 0x70000000
41 1.1 jmcneill #define TEGRA_APB_SIZE 0x01000000
42 1.1 jmcneill #define TEGRA_AHB_A2_BASE 0x7c000000
43 1.1 jmcneill #define TEGRA_AHB_A2_SIZE 0x02000000
44 1.1 jmcneill
45 1.2 jmcneill #define TEGRA_HOST1X_VBASE 0xfb000000
46 1.2 jmcneill #define TEGRA_APB_VBASE 0xfc000000
47 1.2 jmcneill #define TEGRA_AHB_A2_VBASE 0xfd000000
48 1.1 jmcneill
49 1.1 jmcneill #define TEGRA_REF_FREQ 12000000
50 1.1 jmcneill #define TEGRA_UART_FREQ TEGRA_REF_FREQ
51 1.1 jmcneill
52 1.1 jmcneill /* APB */
53 1.1 jmcneill #define TEGRA_UARTA_OFFSET 0x00006000
54 1.1 jmcneill #define TEGRA_UARTA_SIZE 0x40
55 1.1 jmcneill #define TEGRA_UARTB_OFFSET 0x00006040
56 1.1 jmcneill #define TEGRA_UARTB_SIZE 0x40
57 1.1 jmcneill #define TEGRA_UARTC_OFFSET 0x00006200
58 1.1 jmcneill #define TEGRA_UARTC_SIZE 0x100
59 1.1 jmcneill #define TEGRA_UARTD_OFFSET 0x00006300
60 1.1 jmcneill #define TEGRA_UARTD_SIZE 0x100
61 1.1 jmcneill #define TEGRA_RTC_OFFSET 0x0000e000
62 1.1 jmcneill #define TEGRA_RTC_SIZE 0x100
63 1.1 jmcneill #define TEGRA_KBC_OFFSET 0x0000e200
64 1.1 jmcneill #define TEGRA_KBC_SIZE 0x100
65 1.1 jmcneill #define TEGRA_PMC_OFFSET 0x0000e400
66 1.1 jmcneill #define TEGRA_PMC_SIZE 0x800
67 1.1 jmcneill #define TEGRA_MC_OFFSET 0x00019000
68 1.1 jmcneill #define TEGRA_MC_SIZE 0x1000
69 1.1 jmcneill #define TEGRA_SATA_OFFSET 0x00020000
70 1.1 jmcneill #define TEGRA_SATA_SIZE 0x10000
71 1.1 jmcneill #define TEGRA_HDA_OFFSET 0x00030000
72 1.1 jmcneill #define TEGRA_HDA_SIZE 0x10000
73 1.1 jmcneill #define TEGRA_XUSB_PADCTL_OFFSET 0x0009f000
74 1.1 jmcneill #define TEGRA_XUSB_PADCTL_SIZE 0x1000
75 1.1 jmcneill #define TEGRA_XUSB_HOST_OFFSET 0x00090000
76 1.1 jmcneill #define TEGRA_XUSB_HOST_SIZE 0xa000
77 1.1 jmcneill #define TEGRA_SDMMC1_OFFSET 0x000b0000
78 1.1 jmcneill #define TEGRA_SDMMC1_SIZE 0x200
79 1.1 jmcneill #define TEGRA_SDMMC2_OFFSET 0x000b0200
80 1.1 jmcneill #define TEGRA_SDMMC2_SIZE 0x200
81 1.1 jmcneill #define TEGRA_SDMMC3_OFFSET 0x000b0400
82 1.1 jmcneill #define TEGRA_SDMMC3_SIZE 0x200
83 1.1 jmcneill #define TEGRA_SDMMC4_OFFSET 0x000b0600
84 1.1 jmcneill #define TEGRA_SDMMC4_SIZE 0x200
85 1.1 jmcneill #define TEGRA_XUSB_DEV_OFFSET 0x000d0000
86 1.1 jmcneill #define TEGRA_XUSB_DEV_SIZE 0xa000
87 1.1 jmcneill
88 1.1 jmcneill /* AHB_A2 */
89 1.1 jmcneill #define TEGRA_USB1_OFFSET 0x01000000
90 1.1 jmcneill #define TEGRA_USB1_SIZE 0x1800
91 1.1 jmcneill #define TEGRA_USB2_OFFSET 0x01004000
92 1.1 jmcneill #define TEGRA_USB2_SIZE 0x1800
93 1.1 jmcneill #define TEGRA_USB3_OFFSET 0x01008000
94 1.1 jmcneill #define TEGRA_USB3_SIZE 0x1800
95 1.1 jmcneill
96 1.1 jmcneill #endif /* _ARM_TEGRA_REG_H */
97