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#ifndef __SUN8IW21_REG_NCAT_H__
4#define __SUN8IW21_REG_NCAT_H__
5
6/*CPUX*/
7#define SUNXI_CPUXCFG_BASE (0x08100000)
8#define SUNXI_CCU_BASE (0x02001000)
9
10/*sys ctrl*/
11#define SUNXI_TIMER_BASE (0x02050000)
12#define SUNXI_CCM_BASE (0x02001000)
13#define SUNXI_PIO_BASE (0x02000000)
14#define SUNXI_SPC_BASE (0x02000800)
15#define SUNXI_SYSCRL_BASE (0x03000000)
16#define SUNXI_DMA_BASE (0x03002000)
17#define SUNXI_SID_BASE (0x03006000)
18#define SUNXI_SID_SRAM_BASE (0x03006200)
19
20#define SUNXI_WDOG_BASE (0x020500A0)
21
22#define SUNXI_CE_BASE (0x03040000)
23#define SUNXI_SS_BASE SUNXI_CE_BASE
24
25#define SUNXI_SMC_BASE (0x03007000)
26
27/*storage*/
28#define SUNXI_SMHC0_BASE (0x04020000)
29#define SUNXI_SMHC1_BASE (0x04021000)
30#define SUNXI_SMHC2_BASE (0x04022000)
31
32/*noraml*/
33#define SUNXI_UART0_BASE (0x02500000)
34#define SUNXI_UART1_BASE (0x02500400)
35#define SUNXI_UART2_BASE (0x02500800)
36#define SUNXI_UART3_BASE (0x02500C00)
37
38#define SUNXI_TWI0_BASE (0x02502000)
39#define SUNXI_TWI1_BASE (0x02502400)
40
41#define SUNXI_GIC_BASE (0x03020000)
42#define SUNXI_USB0_BASE (0x04100000)
43
44#define SUNXI_SPI0_BASE (0x04025000)
45#define SUNXI_SPI1_BASE (0x04026000)
46#define SUNXI_SPIF_BASE (0x04f00000)
47
48/*physical key*/
49#define SUNXI_GPADC_BASE (0x02009000)
50#define SUNXI_LRADC_BASE (0x02009800)
51#define SUNXI_KEYADC_BASE SUNXI_LRADC_BASE
52
53/*cpus*/
54#define SUNXI_RTC_BASE (0x07090000)
55#define SUNXI_AUDIO_CODEC (0x02030000)
56#define SUNXI_CPUS_CFG_BASE (0x07000400)
57#define SUNXI_RCPUCFG_BASE (SUNXI_CPUS_CFG_BASE)
58#define SUNXI_RPRCM_BASE (0x07010000)
59#define SUNXI_RPWM_BASE (0x07020c00)
60#define SUNXI_RPIO_BASE (0x07022000)
61#define SUNXI_R_PIO_BASE SUNXI_RPIO_BASE
62#define SUNXI_RTWI_BASE (0x07020800)
63#define SUNXI_RRSB_BASE (0x07083000)
64#define SUNXI_RSB_BASE SUNXI_RRSB_BASE
65#define SUNXI_RTWI_BRG_REG (SUNXI_RPRCM_BASE + 0x019c)
66#define SUNXI_RTWI0_RST_BIT (16)
67#define SUNXI_RTWI0_GATING_BIT (0)
68#define SUNXI_RST_BIT (16)
69#define SUNXI_GATING_BIT (0)
70
71#define SUNXI_RTC_DATA_BASE (SUNXI_RTC_BASE + 0x100)
72#define AUDIO_CODEC_BIAS_REG (SUNXI_AUDIO_CODEC + 0x320)
73#define AUDIO_POWER_REG (SUNXI_AUDIO_CODEC + 0x348)
74#define SUNXI_VER_REG (SUNXI_SYSCRL_BASE + 0x24)
75
76#define RES_CAL_CTRL_REG (SUNXI_RPRCM_BASE + 0X310)
77#define ANA_PWR_RST_REG (SUNXI_RPRCM_BASE + 0X254)
78
79#define VDD_ADDA_OFF_GATING (9)
80#define CAL_ANA_EN (1)
81#define CAL_EN (0)
82
83#define RVBARADDR0_L (SUNXI_CPUXCFG_BASE + 0x40)
84#define RVBARADDR0_H (SUNXI_CPUXCFG_BASE + 0x44)
85
86#define SRAM_CONTRL_REG0 (SUNXI_SYSCRL_BASE + 0x0)
87#define SRAM_CONTRL_REG1 (SUNXI_SYSCRL_BASE + 0x4)
88
89
90/* rtc check power off */
91#define FORCE_DETECTER_OUTPUT (1 << 7)
92#define VCCIO_THRESHOLD_VOLTAGE_2_5 (0 << 4)
93#define VCCIO_THRESHOLD_VOLTAGE_2_6 (1 << 4)
94#define VCCIO_THRESHOLD_VOLTAGE_2_7 (2 << 4)
95#define VCCIO_THRESHOLD_VOLTAGE_2_8 (3 << 4)
96#define VCCIO_THRESHOLD_VOLTAGE_2_9 (4 << 4)
97#define VCCIO_THRESHOLD_VOLTAGE_3_0 (5 << 4)
98#define VCCIO_DET_BYPASS_EN (1 << 0)
99
100/* IRQ */
101#define AW_IRQ_USB_OTG 61
102#define AW_IRQ_USB_EHCI0 62
103#define AW_IRQ_USB_OHCI0 63
104#define AW_IRQ_DMA 82
105#define AW_IRQ_TIMER0 91
106#define AW_IRQ_TIMER1 92
107#define AW_IRQ_NMI 168
108#define GIC_IRQ_NUM 223
109
110#endif// __SUN8IW21_REG_NCAT_H__