a139c4c842be6ffaa9f5d234522e42d892fb2473
[litex.git] / software / include / hw / s6ddrphy.h
1 /*
2 * Milkymist SoC (Software)
3 * Copyright (C) 2012 Sebastien Bourdeauducq
4 *
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.
8 *
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.
13 *
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/>.
16 */
17
18 #ifndef __HW_S6DDRPHY_H
19 #define __HW_S6DDRPHY_H
20
21 #include <hw/common.h>
22
23 #define CSR_DDRPHY_STATUS MMPTR(0xe0000800)
24
25 #define DDRPHY_STATUS_RESETN (0x1)
26 #define DDRPHY_STATUS_INIT_DONE (0x2)
27 #define DDRPHY_STATUS_PHY_CAL_DONE (0x4)
28
29 #define CSR_DDRPHY_REQUESTS MMPTR(0xe0000804)
30
31 #define DDRPHY_REQUEST_READ (0x1)
32 #define DDRPHY_REQUEST_WRITE (0x2)
33
34 #define CSR_DDRPHY_REQADDR MMPTR(0xe0000808)
35
36 #endif /* __HW_S6DDRPHY_H */