SyterKit
0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
include
drivers
chips
sun50iw10
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 __SUN50IW10_REG_NCAT_H__
10
#define __SUN50IW10_REG_NCAT_H__
11
12
#define SUNXI_SRAM_A1_BASE (0x00020000)
13
#define SUNXI_SRAM_A2_BASE (0x00100000)
14
#define SUNXI_SRAM_C_BASE (0x00024000)
15
#define SUNXI_CE_BASE (0x01904000)
16
#define SUNXI_SS_BASE SUNXI_CE_BASE
17
18
//CPUX
19
#define SUNXI_CPUXCFG_BASE (0x08100000)
20
#define SUNXI_CPU_SUBSYS_CTRL_BASE (0x08100000)
21
22
//sys ctrl
23
#define SUNXI_SYSCRL_BASE (0x03000000)
24
#define SUNXI_CCM_BASE (0x03001000)
25
#define SUNXI_DMA_BASE (0x03002000)
26
#define SUNXI_MSGBOX_BASE (0x03003000)
27
#define SUNXI_SPINLOCK_BASE (0x03004000)
28
#define SUNXI_HSTMR_BASE (0x03005000)
29
#define SUNXI_SID_BASE (0x03006000)
30
#define SUNXI_SID_SRAM_BASE 0x03006200
31
#define SUNXI_SMC_BASE (0x04800000)
32
#define SUNXI_SPC_BASE (0x03008000)
33
#define SUNXI_TIMER_BASE (0x03009000)
34
#define SUNXI_WDOG_BASE (0x030090A0)
35
#define SUNXI_CNT64_BASE (0x03009C00)
36
#define SUNXI_PWM_BASE (0x0300A000)
37
#define SUNXI_PIO_BASE (0x0300B000)
38
#define SUNXI_PSI_BASE (0x0300C000)
39
#define SUNXI_DCU_BASE (0x03010000)
40
#define SUNXI_GIC_BASE (0x03020000)
41
#define SUNXI_IOMMU_BASE (0x030F0000)
42
43
//storage
44
#define SUNXI_DRAMCTL0_BASE (0x04002000)
45
#define SUNXI_NFC_BASE (0x04011000)
46
#define SUNXI_SMHC0_BASE (0x04020000)
47
#define SUNXI_SMHC1_BASE (0x04021000)
48
#define SUNXI_SMHC2_BASE (0x04022000)
49
50
#define SUNXI_UART0_BASE (0x05000000)
51
#define SUNXI_UART1_BASE (0x05000400)
52
#define SUNXI_UART2_BASE (0x05000800)
53
#define SUNXI_UART3_BASE (0x05000c00)
54
#define SUNXI_UART4_BASE (0x05001000)
55
56
#define SUNXI_TWI0_BASE (0x05002000)
57
#define SUNXI_TWI1_BASE (0x05002400)
58
#define SUNXI_TWI2_BASE (0x05002800)
59
#define SUNXI_SCR0_BASE (0x05005000)
60
61
#define SUNXI_SPI0_BASE (0x05010000)
62
#define SUNXI_SPI1_BASE (0x05011000)
63
#define SUNXI_GMAC_BASE (0x05020000)
64
65
#define SUNXI_GPADC_BASE (0x05070000)
66
#define SUNXI_LRADC_BASE (0x05070800)
67
#define SUNXI_KEYADC_BASE SUNXI_LRADC_BASE
68
69
#define SUNXI_USBOTG_BASE (0x05100000)
70
#define SUNXI_EHCI0_BASE (0x05310000)
71
#define SUNXI_EHCI1_BASE (0x05311000)
72
73
#define ARMV7_GIC_BASE (SUNXI_GIC_BASE + 0x1000)
74
#define ARMV7_CPUIF_BASE (SUNXI_GIC_BASE + 0x2000)
75
76
// cpus
77
#define SUNXI_RTC_BASE (0x07000000)
78
#define SUNXI_CPUS_CFG_BASE (0x07000400)
79
#define SUNXI_RCPUCFG_BASE (SUNXI_CPUS_CFG_BASE)
80
#define SUNXI_RPRCM_BASE (0x07010000)
81
#define SUNXI_RPWM_BASE (0x07020c00)
82
#define SUNXI_RPIO_BASE (0x07022000)
83
#define SUNXI_R_PIO_BASE (0x07022000)
84
#define SUNXI_RTWI_BASE (0x07081400)
85
#define SUNXI_RRSB_BASE (0x07083000)
86
#define SUNXI_RSB_BASE (0x07083000)
87
#define SUNXI_RTWI_BRG_REG (SUNXI_RPRCM_BASE + 0x019c)
88
#define SUNXI_RTWI0_RST_BIT (16)
89
#define SUNXI_RTWI0_GATING_BIT (0)
90
91
#define SUNXI_RTC_DATA_BASE (SUNXI_RTC_BASE + 0x100)
92
93
/* use for usb correct */
94
#define ANALOG_SYS_PWROFF_GATING_REG (SUNXI_RPRCM_BASE + 0x254)
95
#define VDD_SYS_PWROFF_GATING_REG ANALOG_SYS_PWROFF_GATING_REG
96
#define RES_CAL_CTRL_REG (SUNXI_SYSCRL_BASE + 0x160)
97
#define VDD_ADDA_OFF_GATING (1)
98
#define CAL_ANA_EN (1)
99
#define CAL_EN (0)
100
101
#define RVBARADDR0_L (SUNXI_CPUXCFG_BASE + 0x40)
102
#define RVBARADDR0_H (SUNXI_CPUXCFG_BASE + 0x44)
103
#define SRAM_CONTRL_REG0 (SUNXI_SYSCRL_BASE + 0x0)
104
#define SRAM_CONTRL_REG1 (SUNXI_SYSCRL_BASE + 0x4)
105
106
#define GPIO_BIAS_MAX_LEN (32)
107
#define GPIO_BIAS_MAIN_NAME "gpio_bias"
108
#define GPIO_POW_MODE_REG (0x0340)
109
#define GPIO_POW_MODE_VAL_REG (0x0348)
110
#define GPIO_3_3V_MODE 0
111
#define GPIO_1_8V_MODE 1
112
113
/* sram layout*/
114
#define CONFIG_SYS_SRAM_BASE (0x20000)
115
#define CONFIG_SYS_SRAM_SIZE (0x4000)
116
#define CONFIG_SYS_SRAMA2_BASE (0x100000)
117
#define CONFIG_SYS_SRAMA2_SIZE (0x14000)
118
#define CONFIG_SYS_SRAMC_BASE (0x24000)
119
#define CONFIG_SYS_SRAMC_SIZE (0x21000)
120
121
/* scp mem layout */
122
#define SCP_DRAM_SIZE (0x0000)
/* no cpus dram code on sun50iw10 */
123
#define SCP_DTS_SIZE (0x40000)
124
#define SCP_CODE_DRAM_OFFSET (0x14000)
125
#define SCP_SRAM_BASE (CONFIG_SYS_SRAMA2_BASE)
126
#define SCP_SRAM_SIZE (CONFIG_SYS_SRAMA2_SIZE)
127
#define HEADER_OFFSET (0x4000)
128
129
#endif
// __SUN50IW10_REG_NCAT_H__
Generated by
1.9.8