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(0xe0001000)
25 #define DFII_CONTROL_SEL (0x01)
26 #define DFII_CONTROL_CKE (0x02)
28 #define CSR_DFII_COMMAND MMPTR(0xe0001004)
30 #define DFII_COMMAND_CS (0x01)
31 #define DFII_COMMAND_WE (0x02)
32 #define DFII_COMMAND_CAS (0x04)
33 #define DFII_COMMAND_RAS (0x08)
34 #define DFII_COMMAND_RDDATA (0x10)
35 #define DFII_COMMAND_WRDATA (0x20)
37 #define CSR_DFII_AH MMPTR(0xe0001008)
38 #define CSR_DFII_AL MMPTR(0xe000100C)
39 #define CSR_DFII_BA MMPTR(0xe0001010)
41 #define CSR_DFII_RDDELAY MMPTR(0xe0001014)
42 #define CSR_DFII_RDDURATION MMPTR(0xe0001018)
43 #define CSR_DFII_WRDELAY MMPTR(0xe000101C)
44 #define CSR_DFII_WRDURATION MMPTR(0xe0001020)
46 #endif /* __HW_DFII_H */