blob: 860d04e38140deab71aa9a0e31c3fca416720630 [file] [log] [blame]
Masahiro Yamada063eb1e2016-04-21 14:43:18 +09001/*
2 * Copyright (C) 2016 Socionext Inc.
3 */
4
5#ifndef UMC_LD20_REGS_H
6#define UMC_LD20_REGS_H
7
8#define UMC_CMDCTLA 0x00000000
9#define UMC_CMDCTLB 0x00000004
10#define UMC_CMDCTLC 0x00000008
11#define UMC_INITCTLA 0x00000020
12#define UMC_INITCTLB 0x00000024
13#define UMC_INITCTLC 0x00000028
14#define UMC_DRMMR0 0x00000030
15#define UMC_DRMMR1 0x00000034
16#define UMC_DRMMR2 0x00000038
17#define UMC_DRMMR3 0x0000003C
18#define UMC_INITSET 0x00000040
19#define UMC_INITSTAT 0x00000044
20#define UMC_CMDCTLE 0x00000050
Masahiro Yamada8bbbcbd2016-05-24 21:14:01 +090021#define UMC_CMDCTLF 0x00000054
22#define UMC_CMDCTLG 0x00000058
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090023#define UMC_SPCSETB 0x00000084
24#define UMC_SPCSETB_AREFMD_MASK (0x3) /* Auto Refresh Mode */
25#define UMC_SPCSETB_AREFMD_ARB (0x0) /* control by arbitor */
26#define UMC_SPCSETB_AREFMD_CONT (0x1) /* control by DRAMCONT */
27#define UMC_SPCSETB_AREFMD_REG (0x2) /* control by register */
Masahiro Yamadafc678cb2016-05-24 21:14:00 +090028#define UMC_ACSSETA 0x000000C0
29#define UMC_ACSSETB 0x000000C4
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090030#define UMC_MEMCONF0A 0x00000200
31#define UMC_MEMCONF0B 0x00000204
32#define UMC_MEMCONFCH 0x00000240
33#define UMC_MEMMAPSET 0x00000250
34#define UMC_FLOWCTLA 0x00000400
35#define UMC_FLOWCTLB 0x00000404
36#define UMC_FLOWCTLC 0x00000408
Masahiro Yamada8bbbcbd2016-05-24 21:14:01 +090037#define UMC_ACFETCHCTRL 0x00000460
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090038#define UMC_FLOWCTLG 0x00000508
39#define UMC_RDATACTL_D0 0x00000600
40#define UMC_WDATACTL_D0 0x00000604
41#define UMC_RDATACTL_D1 0x00000608
42#define UMC_WDATACTL_D1 0x0000060C
43#define UMC_DATASET 0x00000610
44#define UMC_ODTCTL_D0 0x00000618
45#define UMC_ODTCTL_D1 0x0000061C
46#define UMC_RESPCTL 0x00000624
47#define UMC_DIRECTBUSCTRLA 0x00000680
Masahiro Yamada8bbbcbd2016-05-24 21:14:01 +090048#define UMC_DEBUGC 0x00000718
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090049#define UMC_DCCGCTL 0x00000720
50#define UMC_DICGCTLA 0x00000724
51#define UMC_DICGCTLB 0x00000728
52#define UMC_ERRMASKA 0x00000958
53#define UMC_ERRMASKB 0x0000095C
54#define UMC_BSICMAPSET 0x00000988
55#define UMC_DIOCTLA 0x00000C00
56#define UMC_DIOCTLA_CTL_NRST BIT(8) /* ctl_rst_n */
57#define UMC_DIOCTLA_CFG_NRST BIT(0) /* cfg_rst_n */
58#define UMC_DFISTCTLC 0x00000C18
59#define UMC_DFICUPDCTLA 0x00000C20
60#define UMC_DFIPUPDCTLA 0x00000C30
61#define UMC_DFICSOVRRD 0x00000C84
62#define UMC_DFITURNOFF 0x00000C88
63
64/* UM registers */
65#define UMC_MBUS0 0x00080004
66#define UMC_MBUS1 0x00081004
67#define UMC_MBUS2 0x00082004
68#define UMC_MBUS3 0x00000C78
69#define UMC_MBUS4 0x00000CF8
70#define UMC_MBUS5 0x00000E78
71#define UMC_MBUS6 0x00000EF8
72#define UMC_MBUS7 0x00001278
73#define UMC_MBUS8 0x000012F8
74#define UMC_MBUS9 0x00002478
75#define UMC_MBUS10 0x000024F8
76
Masahiro Yamada8bbbcbd2016-05-24 21:14:01 +090077/* UMC1 register */
78#define UMC_SIORST 0x00000728
79#define UMC_VO0RST 0x0000073c
80#define UMC_VPERST 0x00000744
81#define UMC_RGLRST 0x00000750
82#define UMC_A2DRST 0x00000764
83#define UMC_DMDRST 0x00000770
84
Masahiro Yamada063eb1e2016-04-21 14:43:18 +090085#endif /* UMC_LD20_REGS_H */