SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
reg-dram.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __SUN8IW20_REG_DRAM_H__
4#define __SUN8IW20_REG_DRAM_H__
5
6#define MCTL_COM_BASE (0x3102000)
7#define MCTL_COM_WORK_MODE0 (0x00)
8#define MCTL_COM_WORK_MODE1 (0x04)
9#define MCTL_COM_DBGCR (0x08)
10#define MCTL_COM_TMR (0x0c)
11#define MCTL_COM_CCCR (0x14)
12#define MCTL_COM_MAER0 (0x20)
13#define MCTL_COM_MAER1 (0x24)
14#define MCTL_COM_MAER2 (0x28)
15#define MCTL_COM_REMAP0 (0x500)
16#define MCTL_COM_REMAP1 (0x504)
17#define MCTL_COM_REMAP2 (0x508)
18#define MCTL_COM_REMAP3 (0x50c)
19
20#define MCTL_PHY_BASE (0x3103000)
21#define MCTL_PHY_PIR (0x00)
22#define MCTL_PHY_PWRCTL (0x04)
23#define MCTL_PHY_MRCTRL0 (0x08)
24#define MCTL_PHY_CLKEN (0x0c)
25#define MCTL_PHY_PGSR0 (0x10)
26#define MCTL_PHY_PGSR1 (0x14)
27#define MCTL_PHY_STATR (0x18)
28#define MCTL_PHY_LP3MR11 (0x2c)
29#define MCTL_PHY_DRAM_MR0 (0x30)
30#define MCTL_PHY_DRAM_MR1 (0x34)
31#define MCTL_PHY_DRAM_MR2 (0x38)
32#define MCTL_PHY_DRAM_MR3 (0x3c)
33#define MCTL_PHY_PTR0 (0x44)
34#define MCTL_PHY_PTR2 (0x4c)
35#define MCTL_PHY_PTR3 (0x50)
36#define MCTL_PHY_PTR4 (0x54)
37#define MCTL_PHY_DRAMTMG0 (0x58)
38#define MCTL_PHY_DRAMTMG1 (0x5c)
39#define MCTL_PHY_DRAMTMG2 (0x60)
40#define MCTL_PHY_DRAMTMG3 (0x64)
41#define MCTL_PHY_DRAMTMG4 (0x68)
42#define MCTL_PHY_DRAMTMG5 (0x6c)
43#define MCTL_PHY_DRAMTMG6 (0x70)
44#define MCTL_PHY_DRAMTMG7 (0x74)
45#define MCTL_PHY_DRAMTMG8 (0x78)
46#define MCTL_PHY_ODTCFG (0x7c)
47#define MCTL_PHY_PITMG0 (0x80)
48#define MCTL_PHY_PITMG1 (0x84)
49#define MCTL_PHY_LPTPR (0x88)
50#define MCTL_PHY_RFSHCTL0 (0x8c)
51#define MCTL_PHY_RFSHTMG (0x90)
52#define MCTL_PHY_RFSHCTL1 (0x94)
53#define MCTL_PHY_PWRTMG (0x98)
54#define MCTL_PHY_ASRC (0x9c)
55#define MCTL_PHY_ASRTC (0xa0)
56#define MCTL_PHY_VTFCR (0xb8)
57#define MCTL_PHY_DQSGMR (0xbc)
58#define MCTL_PHY_DTCR (0xc0)
59#define MCTL_PHY_DTAR0 (0xc4)
60#define MCTL_PHY_PGCR0 (0x100)
61#define MCTL_PHY_PGCR1 (0x104)
62#define MCTL_PHY_PGCR2 (0x108)
63#define MCTL_PHY_PGCR3 (0x10c)
64#define MCTL_PHY_IOVCR0 (0x110)
65#define MCTL_PHY_IOVCR1 (0x114)
66#define MCTL_PHY_DXCCR (0x11c)
67#define MCTL_PHY_ODTMAP (0x120)
68#define MCTL_PHY_ZQCTL0 (0x124)
69#define MCTL_PHY_ZQCTL1 (0x128)
70#define MCTL_PHY_ZQCR (0x140)
71#define MCTL_PHY_ZQSR (0x144)
72#define MCTL_PHY_ZQDR0 (0x148)
73#define MCTL_PHY_ZQDR1 (0x14c)
74#define MCTL_PHY_ZQDR2 (0x150)
75#define MCTL_PHY_SCHED (0x1c0)
76#define MCTL_PHY_PERFHPR0 (0x1c4)
77#define MCTL_PHY_PERFHPR1 (0x1c8)
78#define MCTL_PHY_PERFLPR0 (0x1cc)
79#define MCTL_PHY_PERFLPR1 (0x1d0)
80#define MCTL_PHY_PERFWR0 (0x1d4)
81#define MCTL_PHY_PERFWR1 (0x1d8)
82#define MCTL_PHY_ACMDLR (0x200)
83#define MCTL_PHY_ACLDLR (0x204)
84#define MCTL_PHY_ACIOCR0 (0x208)
85#define MCTL_PHY_ACIOCR1(x) (0x210 + 0x4 * x)
86#define MCTL_PHY_DXnMDLR(x) (0x300 + 0x80 * x)
87#define MCTL_PHY_DXnLDLR0(x) (0x304 + 0x80 * x)
88#define MCTL_PHY_DXnLDLR1(x) (0x308 + 0x80 * x)
89#define MCTL_PHY_DXnLDLR2(x) (0x30c + 0x80 * x)
90#define MCTL_PHY_DXIOCR (0x310)
91#define MCTL_PHY_DATX0IOCR(x) (0x310 + 0x4 * x)
92#define MCTL_PHY_DATX1IOCR(x) (0x390 + 0x4 * x)
93#define MCTL_PHY_DATX2IOCR(x) (0x410 + 0x4 * x)
94#define MCTL_PHY_DATX3IOCR(x) (0x490 + 0x4 * x)
95#define MCTL_PHY_DXnSDLR6(x) (0x33c + 0x80 * x)
96#define MCTL_PHY_DXnGTR(x) (0x340 + 0x80 * x)
97#define MCTL_PHY_DXnGCR0(x) (0x344 + 0x80 * x)
98#define MCTL_PHY_DXnGSR0(x) (0x348 + 0x80 * x)
99
100#define SYS_CONTROL_REG_BASE (0x3000000)
101#define LDO_CTAL_REG (0x150)
102#define ZQ_CAL_CTRL_REG (0x160)
103#define ZQ_RES_CTRL_REG (0x168)
104#define ZQ_RES_STATUS_REG (0x16c)
105
106#define SYS_SID_BASE (0x3006000)
107#define SYS_CHIP_ID (0x200)
108#define SYS_EFUSE_REG (0x228)
109#define SYS_LDOB_SID (0x21c)
110
111#define SUNXI_R_CPUCFG_BASE (0x7000400)
112#define SUNXI_R_CPUCFG_SUP_STAN_FLAG (0x1d4)
113
114#define R_PRCM_BASE (0x7010000)
115#define VDD_SYS_PWROFF_GATING_REG (0x250)
116#define ANALOG_PWROFF_GATING_REG (0x254)
117
118#endif /* __SUN8IW20_REG_DRAM_H__ */