SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
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 __SUN300IW1_REG_NCAT_H__
10#define __SUN300IW1_REG_NCAT_H__
11
12#define SUNXI_BROM_BASE 0x00000000
13#define SUNXI_SRAM_C_BASE 0x02000000
14#define SUNXI_VE_BASE 0x41C0E000
15#define SUNXI_GPIO_BASE 0x42000000
16#define SUNXI_PWM_BASE 0x42000C00
17#define SUNXI_CCU_APP_BASE 0x42001000
18#define SUNXI_GPADC_BASE 0x42009000
19#define SUNXI_THS_BASE 0x42009400
20#define SUNXI_ADDA_BASE 0x42030000
21#define SUNXI_I2S_BASE 0x42032000
22#define SUNXI_TIMER_BASE 0x42050000
23#define SUNXI_TRNG_BASE 0x42059000
24#define SUNXI_UART0_BASE 0x42500000
25#define SUNXI_UART1_BASE 0x42500400
26#define SUNXI_UART2_BASE 0x42500800
27#define SUNXI_UART3_BASE 0x42500C00
28#define SUNXI_TWI0_BASE 0x42502000
29#define SUNXI_TWI1_BASE 0x42502400
30#define SUNXI_TWI2_BASE 0x42502800
31#define SUNXI_SYSCTRL_BASE 0x43000000
32#define SUNXI_DMAC1_BASE 0x43001000
33#define SUNXI_DMAC0__SGDMA__BASE 0x43002000
34#define SUNXI_SPINLOCK_BASE 0x43005000
35#define SUNXI_SID_BASE 0x43006000
36#define SUNXI_SID_SRAM_BASE (SUNXI_SID_BASE + 0x200)
37#define SUNXI_HSTIMER_BASE 0x43008000
38#define SUNXI_DCU_BASE 0x43010000
39#define SUNXI_E907_CFG_BASE 0x43030000
40#define SUNXI_E907_WDG_BASE 0x43031000
41#define SUNXI_E907_TIMESTAMP_BASE 0x43032000
42#define SUNXI_E907_MSGBOX_BASE 0x43033000
43#define SUNXI_WLAN_CTRL_BASE 0x43043000
44#define SUNXI_CE_BASE 0x43044000
45#define SUNXI_PWR_REQ_BASE 0x43045000
46#define SUNXI_MSI_MEMC_BASE 0x43102000
47#define SUNXI_A27L2_CFG_BASE 0x49100000
48#define SUNXI_A27L2_WDG_BASE 0x49101000
49#define SUNXI_A27L2_MSGBOX_BASE 0x49102000
50#define SUNXI_SMHC0_BASE 0x44020000
51#define SUNXI_SMHC1_BASE 0x44021000
52#define SUNXI_SPI0_BASE 0x44025000
53#define SUNXI_SPI1_BASE 0x44026000
54#define SUNXI_SPI2_BASE 0x44027000
55#define SUNXI_USB0_BASE 0x44100000
56#define SUNXI_GMAC_BASE 0x44500000
57#define SUNXI_SPI_FLASH_BASE 0x44F00000
58#define SUNXI_DE_BASE 0x45000000
59#define SUNXI_G2D_BASE 0x45410000
60#define SUNXI_DISPLAY_TOP_BASE 0x45460000
61#define SUNXI_TCON_LCD0_BASE 0x45461000
62#define SUNXI_CSI_BASE 0x45800000
63#define SUNXI_ISP_BASE 0x45900000
64#define SUNXI_PRCM_BASE 0x4A000000
65#define SUNXI_RTC_TIMER_BASE 0x4A000400
66#define SUNXI_PMU_RTC_BASE 0x4A000800
67#define SUNXI_SYSRTC_BASE 0x4A000C00
68#define SUNXI_RTC_WDG_BASE 0x4A001000
69#define SUNXI_CCU_AON_BASE 0x4A010000
70#define SUNXI_PMU_AON_BASE 0x4A011000
71#define SUNXI_RCCAL_BASE 0x4A011400
72#define SUNXI_WIFI_SRAM_BASE 0x68000000
73#define SUNXI_WIFI_PERI_BASE 0x79C00000
74#define SUNXI_SPI_FLASH_XIP_BASE 0x10000000
75#define SUNXI_DRAM_SPACE_BASE 0x80000000
76#define SUNXI_PLAT_TCIP_BASE_ADDR 0x30000000
77#define SUNXI_RISCV_CLINT_BASE 0x30000000
78#define SUNXI_RISCV_CLIC_BASE 0x30800000
79#define SUNXI_RESERVE_BASE 0x30805000
80#define SUNXI_PLIC_BASE 0x48000000
81#define SUNXI_PLMT_BASE 0x48400000
82#define SUNXI_PLIC_SW_BASE 0x48800000
83#define SUNXI_PLDM_BASE 0x48C00000
84#define SUNXI_L2C_BASE 0x49000000
85
86#define SUNXI_RTC_DATA_BASE (SUNXI_PRCM_BASE + 0x200)
87#define SUNXI_RTC_BOOT_FLAG_ADDR (SUNXI_PRCM_BASE + 0x1c0)
88#define SUNXI_WDOG_BASE (SUNXI_E907_WDG_BASE)
89#define SUNXI_PIO_BASE (SUNXI_GPIO_BASE)
90#define SUNXI_RPIO_BASE (0x42000540)
91#define SUNXI_RTWI_BASE (SUNXI_TWI0_BASE)
92#define SUNXI_SPIF_BASE (SUNXI_SPI_FLASH_BASE)
93#define SUNXI_DMA_BASE (SUNXI_DMAC0__SGDMA__BASE)
94#define SUNXI_RTC_BASE (SUNXI_PMU_RTC_BASE)
95
96/* check power off*/
97#define VCC33_DET_CTRL_REG (0x64)
98#define VCCIO_THRESHOLD_MASK (0x7)
99#define VCCIO_THRESHOLD_VOLTAGE_2_7 (0 << 8)
100#define VCCIO_THRESHOLD_VOLTAGE_2_6 (1 << 8)
101#define VCCIO_THRESHOLD_VOLTAGE_2_8 (2 << 8)
102#define VCCIO_THRESHOLD_VOLTAGE_2_9 (3 << 8)
103#define VCCIO_THRESHOLD_VOLTAGE_3_0 (4 << 8)
104#define VCCIO_THRESHOLD_VOLTAGE_3_1 (5 << 8)
105#define VCCIO_THRESHOLD_VOLTAGE_3_2 (6 << 8)
106#define VCCIO_THRESHOLD_VOLTAGE_3_3 (7 << 8)
107
108#define POR_RESET_CTRL_REG (0X24)
109#define VCC33_DET_RSTN_ENABLE (1 << 4)
110
111#endif// __SUN300IW1_REG_NCAT_H__