summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/sun50iw1p1.h
blob: 5f00f1a289cba6a0158d1ab5426bb6ae8700b555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
 * (C) Copyright 2007-2015
 * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
 * Jerry Wang <wangflord@allwinnertech.com>
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 * GNU General Public License for more details.
 *
 * SPDX-License-Identifier:	GPL-2.0
 */

#ifndef __PLATFORM_H
#define __PLATFORM_H

#define SUNXI_SRAM_D_BASE                (0x00010000L)
/* base address of modules */
#define SUNXI_DE_BASE                    (0x01000000L)
#define SUNXI_CORESIGHT_DEBUG_BASE       (0x01400000L)
#define SUNXI_CPU_MBIST_BASE             (0x01502000L)
#define SUNXI_CPUX_CFG_BASE              (0x01700000L)


#define SUNXI_SYSCRL_BASE			 (0x01c00000L)

#define SUNXI_DMA_BASE           		 (0x01c02000L)
#define SUNXI_NFC_BASE			         (0x01c03000L)
#define SUNXI_TSC_BASE			         (0x01c06000L)

#define SUNXI_TCON0_BASE			     (0x01c0c000L)
#define SUNXI_TCON1_BASE			     (0x01c0d000L)
#define SUNXI_VE_BASE				     (0x01c0e000L)

#define SUNXI_SMHC0_BASE			     (0x01c0f000L)
#define SUNXI_SMHC1_BASE			     (0x01c10000L)
#define SUNXI_SMHC2_BASE			     (0x01c11000L)

#define SUNXI_SID_BASE			         (0x01c14000L)
#define SUNXI_SS_BASE				 (0x01c15000L)

#define SUNXI_MSGBOX_BASE			 (0x01c17000L)
#define SUNXI_SPINLOCK_BASE		         (0x01c18000L)

#define SUNXI_USBOTG_BASE			     (0x01c19000L)
#define SUNXI_EHCI0_BASE			     (0x01c1a000L)
#define SUNXI_EHCI1_BASE			     (0x01c1b000L)

#define SUNXI_SMC_BASE			         (0x01c1e000L)

#define SUNXI_CCM_BASE			         (0x01c20000L)
#define SUNXI_PIO_BASE			         (0x01c20800L)
#define SUNXI_TIMER_BASE			     (0x01c20c00L)
#define SUNXI_SPDIF_BASE			     (0x01c21000L)
#define SUNXI_PWM03_BASE			     (0x01c21400L)

#define SUNXI_KEYADC_BASE			     (0x01c21800L)
#define SUNXI_DAUDIO0_BASE			     (0x01c22000L)
#define SUNXI_DAUDIO1_BASE			     (0x01c24000L)
#define SUNXI_DAUDIO2_BASE			     (0x01c28000L)

#define SUNXI_AC_BASE			         (0x01c22c00L)
#define SUNXI_SPC_BASE			         (0x01c23400L)
#define SUNXI_THC_BASE			         (0x01c25000L)

#define SUNXI_UART0_BASE			     0x01c28000
#define SUNXI_UART1_BASE			     0x01c28400
#define SUNXI_UART2_BASE			     0x01c28800
#define SUNXI_UART3_BASE			     0x01c28c00
#define SUNXI_UART4_BASE			     0x01c29000

#define SUNXI_TWI0_BASE			         (0x01c2ac00L)
#define SUNXI_TWI1_BASE			         (0x01c2b000L)
#define SUNXI_TWI2_BASE			         (0x01c2b400L)
#define SUNXI_SCR_BASE			         (0x01c2c400L)

#define SUNXI_EMAC_BASE			         (0x01c30000L)
#define SUNXI_GPU_BASE			         (0x01c40000L)
#define SUNXI_HSTMR_BASE			 (0x01c60000L)

#define SUNXI_DRAMCOM_BASE		         (0x01c62000L)
#define SUNXI_DRAMCTL0_BASE		         (0x01c63000L)
#define SUNXI_DRAMPHY0_BASE		         (0x01c65000L)

#define SUNXI_SPI0_BASE			         (0x01c68000L)
#define SUNXI_SPI1_BASE			         (0x01c69000L)

#define ARMA9_SCU_BASE		             (0x01c80000L)
#define ARMA9_GIC_BASE		             (0x01c81000L)
#define ARMA9_CPUIF_BASE	             (0x01c82000L)

/* Base sunxi compatible GIC memory map */
#define GICD_BASE			ARMA9_GIC_BASE  
#define GICC_BASE			ARMA9_CPUIF_BASE


#define SUNXI_MIPI_DSI0_BASE		     (0x01ca0000L)
#define SUNXI_MIPI_DSIPHY_BASE		     (0x01ca1000L)

#define SUNXI_CSI0_BASE			         (0x01cb0000L)
#define SUNXI_DE_INTERLACED_BASE		 (0x01e00000L)
#define SUNXI_HDMI_BASE			         (0x01ee0000L)
#define HDMI_BASE                                SUNXI_HDMI_BASE

#define SUNXI_RTC_BASE			         (0x01f00000L)
#define SUNXI_RTMR01_BASE		         (0x01f00800L)
#define SUNXI_RINTC_BASE			 (0x01f00C00L)
#define SUNXI_RWDOG_BASE			 (0x01f01000L)
#define SUNXI_RPRCM_BASE			 (0x01f01400L)
#define SUNXI_RTWD_BASE			         (0x01f01800L)
#define SUNXI_RCPUCFG_BASE		         (0x01f01C00L)
#define SUNXI_RCIR_BASE			         (0x01f02000L)
#define SUNXI_RTWI_BASE			         (0x01f02400L)
#define SUNXI_RUART_BASE			 (0x01f02800L)
#define SUNXI_RPIO_BASE			         (0x01f02c00L)
#define SUNXI_RRSB_BASE			         (0x01f03400L)
#define SUNXI_RPWM_BASE			         (0x01f03800L)

#endif