SyterKit
0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
include
drivers
chips
sun252iw1
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 __SUN252IW1_REG_NCAT_H__
10
#define __SUN252IW1_REG_NCAT_H__
11
12
#define SUNXI_BROM_BASE 0x00000000
13
#define SUNXI_SRAM_C_BASE 0x00020000
14
#define SUNXI_VE_BASE 0x01C0E000
15
#define SUNXI_GPIO_BASE 0x02000000
16
#define SUNXI_RGPIO_BASE 0x02000540
17
#define SUNXI_PWM_BASE 0x02000C00
18
#define SUNXI_CCU_BASE 0x02001000
19
#define SUNXI_GPADC_BASE 0x02009000
20
#define SUNXI_THS_BASE 0x02009400
21
#define SUNXI_ADDA_BASE 0x02030000
22
#define SUNXI_DMIC_BASE 0x02031000
23
#define SUNXI_I2S0_BASE 0x02032000
24
#define SUNXI_I2S1_BASE 0x02033000
25
#define SUNXI_TIMER_BASE 0x02050000
26
#define SUNXI_UART0_BASE 0x02500000
27
#define SUNXI_UART1_BASE 0x02500400
28
#define SUNXI_UART2_BASE 0x02500800
29
#define SUNXI_UART3_BASE 0x02500C00
30
#define SUNXI_TWI0_BASE 0x02502000
31
#define SUNXI_TWI1_BASE 0x02502400
32
#define SUNXI_TWI2_BASE 0x02502800
33
#define SUNXI_TWI3_BASE 0x02502C00
34
#define SUNXI_SYSCTRL_BASE 0x03000000
35
#define SUNXI_DMA0_SGDMA__BASE 0x03002000
36
#define SUNXI_SPINLOCK_BASE 0x03005000
37
#define SUNXI_HSTIMER_BASE 0x03008000
38
#define SUNXI_DCU_BASE 0x03010000
39
#define SUNXI_CPU_GIC_BASE 0x03020000
40
#define SUNXI_CE_BASE 0x03040000
41
#define SUNXI_CE_KEY_SRAM_BASE 0x03041000
42
#define SUNXI_DMA1_NDMA__BASE 0x03042000
43
#define SUNXI_SQPI_PSRAMC_BASE 0x03043000
44
#define SUNXI_NPU_BASE 0x03050000
45
#define SUNXI_MSI_MEMC_BASE 0x03102000
46
#define SUNXI_SMHC0_BASE 0x04020000
47
#define SUNXI_SMHC1_BASE 0x04021000
48
#define SUNXI_SPI0_BASE 0x04025000
49
#define SUNXI_SPI1_BASE 0x04026000
50
#define SUNXI_USB0_BASE 0x04100000
51
#define SUNXI_EMAC_BASE 0x04500000
52
#define SUNXI_SPI_FLASH_BASE 0x04F00000
53
#define SUNXI_DE_BASE 0x05000000
54
#define SUNXI_G2D_BASE 0x05410000
55
#define SUNXI_DSI0_BASE 0x05450000
56
#define SUNXI_DISPLAY_TOP_BASE 0x05460000
57
#define SUNXI_TCON_LCD0_BASE 0x05461000
58
#define SUNXI_CSI_BASE 0x05800000
59
#define SUNXI_ISP_BASE 0x05900000
60
#define SUNXI_R_CPUCFG_BASE 0x07000400
61
#define SUNXI_R_PPU_BASE 0x07001000
62
#define SUNXI_R_SPC_BASE 0x07002000
63
#define SUNXI_R_PRCM_BASE 0x07010000
64
#define SUNXI_R_TWD_BASE 0x07020800
65
#define SUNXI_RTC_BASE 0x07090000
66
#define SUNXI_SID_BASE 0x07091000
67
#define SUNXI_CPUX_PMC_BASE 0x08000000
68
#define SUNXI_CPUX_CFG_BASE 0x08008000
69
#define SUNXI_CPUX_WDG_BASE 0x08009000
70
#define SUNXI_CPUX_TS_BASE 0x0800A000
71
#define SUNXI_CPUX_MSGBOX_BASE 0x0800B000
72
#define SUNXI_SPI_FLASH_XIP_BASE 0x10000000
73
#define SUNXI_SQPI_PSRAM_XIP_BASE 0x12000000
74
#define SUNXI_RISCV_CLINT_BASE 0x30000000
75
#define SUNXI_RISCV_CLIC_BASE 0x30800000
76
#define SUNXI_RESERVE_BASE 0x30805000
77
#define SUNXI_RISCV_SYSMAP_BASE 0x3FFFF000
78
#define SUNXI_CPUX_PLIC_BASE 0x30000000
79
#define SUNXI_CPUX_CLINT_BASE 0x34000000
80
#define SUNXI_DRAM_SPACE_BASE 0x40000000
81
82
#define SUNXI_PIO_BASE (SUNXI_GPIO_BASE)
83
#define SUNXI_RPIO_BASE (SUNXI_RGPIO_BASE)
84
#define SUNXI_SS_BASE (SUNXI_CE_BASE)
85
#define SUNXI_SYSCRL_BASE (SUNXI_SYSCTRL_BASE)
86
#define SUNXI_RTWI_BASE (SUNXI_TWI0_BASE)
87
#define SUNXI_RTWI_BRG_REG (SUNXI_CCU_BASE + 0x091c)
88
89
#define SUNXI_RST_BIT (16)
90
#define SUNXI_GATING_BIT (0)
91
#define SUNXI_RTC_DATA_BASE (SUNXI_RTC_BASE + 0x100)
92
#define SUNXI_RTC_PMC_BYPASS_STATUS (SUNXI_RTC_BASE + 0x238)
93
#define SUNXI_RTC_IOMODE_CTL (SUNXI_RTC_BASE + 0x240)
94
95
#define SUNXI_CPUS_CFG_BASE (0x07000400U)
96
#define SUNXI_RCPUCFG_BASE (SUNXI_CPUS_CFG_BASE)
97
98
#define SUNXI_SPIF_BASE (SUNXI_SPI_FLASH_BASE)
99
100
#define SRAM_CONTRL_REG0 (SUNXI_SYSCRL_BASE + 0x0)
101
#define SRAM_CONTRL_REG1 (SUNXI_SYSCRL_BASE + 0x4)
102
103
#define SYSRTC_BOOTFLAG_REG 0x02A0
104
#define BOOT_SYS_UPDATE 0x2
105
#define SUNXI_BOOTFLAG_WRITE_KEY 0x429B0000
106
#define SUNXI_WDOG_KEY_FILED 0x16AA0000
107
#define SUNXI_WDOG_MODE_REG 0x18
108
109
/* check power off*/
110
#define VCC33_DET_CTRL_REG (0x1f4)
111
#define VCCIO_THRESHOLD_MASK (0xff)
112
#define VCCIO_THRESHOLD_VOLTAGE_2_5 (0 << 4)
113
#define VCCIO_THRESHOLD_VOLTAGE_2_6 (1 << 4)
114
#define VCCIO_THRESHOLD_VOLTAGE_2_7 (2 << 4)
115
#define VCCIO_THRESHOLD_VOLTAGE_2_8 (3 << 4)
116
#define VCCIO_THRESHOLD_VOLTAGE_2_9 (4 << 4)
117
#define VCCIO_THRESHOLD_VOLTAGE_3_0 (5 << 4)
118
#define FORCE_DETECTER_OUTPUT (1 << 7)
119
#define VCCIO_DET_BYPASS_EN (1 << 0)
120
121
#define SUNXI_PLAT_TCIP_BASE_ADDR (SUNXI_RISCV_CLINT_BASE)
122
#define SUNXI_SID_SRAM_BASE (SUNXI_SID_BASE + 0x200)
123
124
#endif
// __SUN252IW1_REG_NCAT_H__
Generated by
1.9.8