2 * Milkymist SoC (Software)
3 * Copyright (C) 2012 Sebastien Bourdeauducq
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include <hw/common.h>
23 #define CSR_DFII_CONTROL MMPTR(0xe0000800)
25 #define DFII_CONTROL_SEL (0x01)
26 #define DFII_CONTROL_CKE (0x02)
28 #define CSR_DFII_COMMAND_P0 MMPTR(0xe0000804)
29 #define CSR_DFII_AH_P0 MMPTR(0xe0000808)
30 #define CSR_DFII_AL_P0 MMPTR(0xe000080C)
31 #define CSR_DFII_BA_P0 MMPTR(0xe0000810)
32 #define CSR_DFII_WD0_P0 MMPTR(0xe0000814)
33 #define CSR_DFII_WD1_P0 MMPTR(0xe0000818)
34 #define CSR_DFII_WD2_P0 MMPTR(0xe000081C)
35 #define CSR_DFII_WD3_P0 MMPTR(0xe0000820)
36 #define CSR_DFII_WD4_P0 MMPTR(0xe0000824)
37 #define CSR_DFII_WD5_P0 MMPTR(0xe0000828)
38 #define CSR_DFII_WD6_P0 MMPTR(0xe000082C)
39 #define CSR_DFII_WD7_P0 MMPTR(0xe0000830)
40 #define CSR_DFII_RD0_P0 MMPTR(0xe0000834)
41 #define CSR_DFII_RD1_P0 MMPTR(0xe0000838)
42 #define CSR_DFII_RD2_P0 MMPTR(0xe000083C)
43 #define CSR_DFII_RD3_P0 MMPTR(0xe0000840)
44 #define CSR_DFII_RD4_P0 MMPTR(0xe0000844)
45 #define CSR_DFII_RD5_P0 MMPTR(0xe0000848)
46 #define CSR_DFII_RD6_P0 MMPTR(0xe000084C)
47 #define CSR_DFII_RD7_P0 MMPTR(0xe0000850)
49 #define CSR_DFII_COMMAND_P1 MMPTR(0xe0000854)
50 #define CSR_DFII_AH_P1 MMPTR(0xe0000858)
51 #define CSR_DFII_AL_P1 MMPTR(0xe000085C)
52 #define CSR_DFII_BA_P1 MMPTR(0xe0000860)
53 #define CSR_DFII_WD0_P1 MMPTR(0xe0000864)
54 #define CSR_DFII_WD1_P1 MMPTR(0xe0000868)
55 #define CSR_DFII_WD2_P1 MMPTR(0xe000086C)
56 #define CSR_DFII_WD3_P1 MMPTR(0xe0000870)
57 #define CSR_DFII_WD4_P1 MMPTR(0xe0000874)
58 #define CSR_DFII_WD5_P1 MMPTR(0xe0000878)
59 #define CSR_DFII_WD6_P1 MMPTR(0xe000087C)
60 #define CSR_DFII_WD7_P1 MMPTR(0xe0000880)
61 #define CSR_DFII_RD0_P1 MMPTR(0xe0000884)
62 #define CSR_DFII_RD1_P1 MMPTR(0xe0000888)
63 #define CSR_DFII_RD2_P1 MMPTR(0xe000088C)
64 #define CSR_DFII_RD3_P1 MMPTR(0xe0000890)
65 #define CSR_DFII_RD4_P1 MMPTR(0xe0000894)
66 #define CSR_DFII_RD5_P1 MMPTR(0xe0000898)
67 #define CSR_DFII_RD6_P1 MMPTR(0xe000089C)
68 #define CSR_DFII_RD7_P1 MMPTR(0xe00008a0)
70 #define DFII_COMMAND_CS (0x01)
71 #define DFII_COMMAND_WE (0x02)
72 #define DFII_COMMAND_CAS (0x04)
73 #define DFII_COMMAND_RAS (0x08)
74 #define DFII_COMMAND_WRDATA (0x10)
75 #define DFII_COMMAND_RDDATA (0x20)
77 #endif /* __HW_DFII_H */