SyterKit
0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
include
drivers
chips
sun8iw22
reg-ncat.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0+ */
2
/*
3
* (C) Copyright 2013-2025
4
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
5
*
6
* original from bsp uboot defines
7
*/
8
9
#ifndef __SUN8IW22_REG_NCAT_H__
10
#define __SUN8IW22_REG_NCAT_H__
11
12
#define SUNXI_FIXS_BROM_BASE 0x00000000
13
#define SUNXI_HS_BROM_BASE 0x00010000
14
#define SUNXI_NS_BROM_BASE 0x00015000
15
#define SUNXI_SRAM_C_BASE 0x00040000
16
#define SUNXI_DE_SHARE_SRAM_BASE 0x00068000
17
#define SUNXI_CCMU_BASE 0x02002000
18
#define SUNXI_SPC_BASE 0x02006000
19
#define SUNXI_WDG_BASE 0x02050000
20
#define SUNXI_IRTX_BASE 0x02080000
21
#define SUNXI_IRRX0_BASE 0x02081000
22
#define SUNXI_IRRX1_BASE 0x02082000
23
#define SUNXI_IRRX2_BASE 0x02083000
24
#define SUNXI_IRRX3_BASE 0x02084000
25
#define SUNXI_LEDC_BASE 0x02085000
26
#define SUNXI_THS_BASE 0x02086000
27
#define SUNXI_GPADC0_BASE 0x02087000
28
#define SUNXI_GPADC1_BASE 0x02088000
29
#define SUNXI_GPADC2_BASE 0x02089000
30
#define SUNXI_GPADC3_BASE 0x0208A000
31
#define SUNXI_TPADC_BASE 0x0208C000
32
#define SUNXI_PWM0_BASE 0x02090000
33
#define SUNXI_PWM1_BASE 0x02091000
34
#define SUNXI_PWM2_BASE 0x02092000
35
#define SUNXI_AXI_MONITOR_RISCV_BASE 0x02093000
36
#define SUNXI_AHB_MONITOR_CPU_BASE 0x02094000
37
#define SUNXI_AHB_MONITOR_DCU_BASE 0x02095000
38
#define SUNXI_ADDA_BASE 0x02030000
39
#define SUNXI_DMIC_BASE 0x02031000
40
#define SUNXI_I2S0_BASE 0x02032000
41
#define SUNXI_I2S1_BASE 0x02033000
42
#define SUNXI_I2S2_BASE 0x02034000
43
#define SUNXI_OWA_BASE 0x02036000
44
#define SUNXI_TWI0_BASE 0x02510000
45
#define SUNXI_TWI1_BASE 0x02511000
46
#define SUNXI_TWI2_BASE 0x02512000
47
#define SUNXI_TWI3_BASE 0x02513000
48
#define SUNXI_TWI4_BASE 0x02514000
49
#define SUNXI_TWI5_BASE 0x02515000
50
#define SUNXI_UART0_BASE 0x02600000
51
#define SUNXI_UART1_BASE 0x02601000
52
#define SUNXI_UART2_BASE 0x02602000
53
#define SUNXI_UART3_BASE 0x02603000
54
#define SUNXI_UART4_BASE 0x02604000
55
#define SUNXI_UART5_BASE 0x02605000
56
#define SUNXI_UART6_BASE 0x02606000
57
#define SUNXI_UART7_BASE 0x02607000
58
#define SUNXI_UART8_BASE 0x02608000
59
#define SUNXI_UART9_BASE 0x02609000
60
#define SUNXI_SYSCTRL_BASE 0x03000000
61
#define SUNXI_DMAC0_BASE 0x03001000
62
#define SUNXI_CPUX_MSGBOX_BASE 0x03003000
63
#define SUNXI_SPINLOCK_BASE 0x03005000
64
#define SUNXI_SID_BASE 0x03006000
65
#define SUNXI_SID_BASE 0x03006000
66
#define SUNXI_SECURE_DEBUG_CFG_BASE 0x03006800
67
#define SUNXI_TIMER_BASE 0x03008000
68
#define SUNXI_DCU_BASE 0x03010000
69
#define SUNXI_CE_BASE 0x03040000
70
#define SUNXI_CE_NS_BASE 0x03040000
71
#define SUNXI_CE_S_BASE 0x03040800
72
#define SUNXI_MEMC_BASE 0x03102000
73
#define SUNXI_MEMC_COMMON_BASE 0x03110000
74
#define SUNXI_MEMC_DDRC_BASE 0x03120000
75
#define SUNXI_MEMC_PHY_BASE 0x03130000
76
#define SUNXI_CPU_GIC400_BASE 0x03400000
77
#define SUNXI_MBOX_CORE0_BASE 0x03600000
78
#define SUNXI_MBOX_CORE1_BASE 0x03601000
79
#define SUNXI_MBOX_CORE2_BASE 0x03602000
80
#define SUNXI_MBOX_CORE3_BASE 0x03603000
81
#define SUNXI_GPIO_BASE 0x03604000
82
#define SUNXI_MSI_BASE 0x03606000
83
#define SUNXI_SMC_BASE 0x03607000
84
#define SUNXI_DMAC1_BASE 0x04000000
85
#define SUNXI_SMHC0_BASE 0x04020000
86
#define SUNXI_SMHC1_BASE 0x04021000
87
#define SUNXI_SMHC2_BASE 0x04022000
88
#define SUNXI_SMHC3_BASE 0x04023000
89
#define SUNXI_SPI0_BASE 0x04025000
90
#define SUNXI_SPI1_BASE 0x04026000
91
#define SUNXI_SPI2_BASE 0x04027000
92
#define SUNXI_SPI3_BASE 0x04028000
93
#define SUNXI_USB0_BASE 0x04200000
94
#define SUNXI_USB1_BASE 0x04300000
95
#define SUNXI_GMAC0_BASE 0x04500000
96
#define SUNXI_GMAC1_BASE 0x04510000
97
#define SUNXI_GMAC2_BASE 0x04520000
98
#define SUNXI_DE_BASE 0x05000000
99
#define SUNXI_G2D_TOP_BASE 0x05000000
100
#define SUNXI_MIXER_GLB_BASE 0x05000100
101
#define SUNXI_BLD_BASE 0x05000400
102
#define SUNXI_LAY0_V_CH0_BASE 0x05000800
103
#define SUNXI_LAY0_UI_CH1_BASE 0x05001000
104
#define SUNXI_LAY0_UI_CH2_BASE 0x05001800
105
#define SUNXI_LAY0_UI_CH3_BASE 0x05002000
106
#define SUNXI_WB_BASE 0x05003000
107
#define SUNXI_VIDEO_SCALER_CH0_BASE 0x05008000
108
#define SUNXI_ROTATE_BASE 0x05028000
109
#define SUNXI_UI_SCALER1_CH1_BASE 0x05030000
110
#define SUNXI_G2D_BASE 0x05440000
111
#define SUNXI_DISPLAY_TOP_BASE 0x05500000
112
#define SUNXI_TCON_LCD0_BASE 0x05501000
113
#define SUNXI_DSI0_BASE 0x05506000
114
#define SUNXI_CSI_BASE 0x05800000
115
#define SUNXI_CSIC_CCU_BASE 0x05800000
116
#define SUNXI_CSIC_TOP_BASE 0x05800800
117
#define SUNXI_CSIC_PARSER0_BASE 0x05820000
118
#define SUNXI_CSIC_PARSER1_BASE 0x05821000
119
#define SUNXI_CSIC_PARSER2_BASE 0x05822000
120
#define SUNXI_CSIC_DMA0_BASE 0x05830000
121
#define SUNXI_CSIC_DMA1_BASE 0x05831000
122
#define SUNXI_CSIC_DMA2_BASE 0x05832000
123
#define SUNXI_ISP_BASE 0x05900000
124
#define SUNXI_RESERVE_BASE 0x05A00000
125
#define SUNXI_LOCALBUS_REG_BASE 0x02810000
126
#define SUNXI_LOCALBUS_DAT_BASE 0x10000000
127
#define SUNXI_R_SPC_BASE 0x07002000
128
#define SUNXI_R_PRCM_BASE 0x07010000
129
#define SUNXI_R_TWD_BASE 0x07022000
130
#define SUNXI_CPUIDLE_BASE 0x07050000
131
#define SUNXI_PCK600_QCHANNEL_BASE 0x07060000
132
#define SUNXI_R_GPIO_BASE 0x07096000
133
#define SUNXI_RTC_BASE 0x07090000
134
#define SUNXI_CPU_CS_BASE 0x08000000
135
#define SUNXI_CPU_SUBSYS_CTRL_BASE 0x08100000
136
#define SUNXI_TIMESTAMP_STA_BASE 0x08110000
137
#define SUNXI_TIMESTAMP_CTRL_BASE 0x08120000
138
#define SUNXI_CPU_IDC_BASE 0x08130000
139
#define SUNXI_CPUX_PLL_CFG_BASE 0x08140000
140
#define SUNXI_C0_CPUX_CFG_BASE 0x09010000
141
#define SUNXI_CLUSTER0_MBIST_BASE 0x09020000
142
#define SUNXI_SPI_FLASH_BASE 0x02800000
143
#define SUNXI_SPI_FLASH_XIP_BASE 0x0E000000
144
#define SUNXI_MCU_CFG_BASE 0x01A00000
145
#define SUNXI_MCU_WDG_BASE 0x01A02000
146
#define SUNXI_MCU_LCNT_BASE 0x01A04000
147
#define SUNXI_MCU_MBOX_BASE 0x01A06000
148
#define SUNXI_MCU_TIMER_BASE 0x01A08000
149
#define SUNXI_MCU_CLINT_BASE 0x30000000
150
#define SUNXI_MCU_CLIC_BASE 0x30800000
151
#define SUNXI_MCU_SYSMAP_BASE 0x3FFFF000
152
153
#define SUNXI_PIO_BASE (SUNXI_GPIO_BASE)
154
#define SUNXI_RPIO_BASE (SUNXI_R_GPIO_BASE)
155
#define SUNXI_CCM_BASE (SUNXI_CCMU_BASE)
156
#define SUNXI_RTC_DATA_BASE (SUNXI_RTC_BASE + 0x100)
157
#define SUNXI_DMA_BASE (SUNXI_DMAC0_BASE)
158
#define SUNXI_GPADC_BASE (SUNXI_GPADC0_BASE)
159
#define SUNXI_SS_BASE (SUNXI_CE_BASE)
160
#define SUNXI_WDOG_BASE (SUNXI_WDG_BASE)
161
#define SUNXI_RTWI_BASE (SUNXI_TWI0_BASE)
162
#define SUNXI_RTWI_BRG_REG (SUNXI_CCMU_BASE + 0x0E80)
163
164
/* check power off*/
165
#define VCC33_DET_CTRL_REG (0x1f4)
166
#define VCCIO_THRESHOLD_MASK (0xff)
167
#define VCCIO_THRESHOLD_VOLTAGE_2_5 (0 << 4)
168
#define VCCIO_THRESHOLD_VOLTAGE_2_6 (1 << 4)
169
#define VCCIO_THRESHOLD_VOLTAGE_2_7 (2 << 4)
170
#define VCCIO_THRESHOLD_VOLTAGE_2_8 (3 << 4)
171
#define VCCIO_THRESHOLD_VOLTAGE_2_9 (3 << 4)
172
#define VCCIO_THRESHOLD_VOLTAGE_3_0 (4 << 4)
173
#define FORCE_DETECTER_OUTPUT (1 << 7)
174
#define VCCIO_DET_BYPASS_EN (1 << 0)
175
176
#define CCM_UART_PLATFORM_ADDR_OFFSET (SUNXI_UART1_BASE - SUNXI_UART0_BASE)
177
178
#define SUNXI_SID_SRAM_BASE (SUNXI_SID_BASE + 0x200)
179
180
#endif
// __SUN8IW22_REG_NCAT_H__
Generated by
1.9.8