Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Map DDR PHY controls in CSR
- Loading branch information
Sebastien Bourdeauducq
committed
Feb 17, 2012
1 parent
5d1dad5
commit c387ce7
Showing
4 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Milkymist SoC (Software) | ||
* Copyright (C) 2012 Sebastien Bourdeauducq | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3 of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __HW_S6DDRPHY_H | ||
#define __HW_S6DDRPHY_H | ||
|
||
#include <hw/common.h> | ||
|
||
#define CSR_DDRPHY_STATUS MMPTR(0xe0000800) | ||
|
||
#define DDRPHY_STATUS_RESETN (0x1) | ||
#define DDRPHY_STATUS_INIT_DONE (0x2) | ||
#define DDRPHY_STATUS_PHY_CAL_DONE (0x4) | ||
|
||
#define CSR_DDRPHY_REQUESTS MMPTR(0xe0000804) | ||
|
||
#define DDRPHY_REQUEST_READ (0x1) | ||
#define DDRPHY_REQUEST_WRITE (0x2) | ||
|
||
#define CSR_DDRPHY_REQADDR MMPTR(0xe0000808) | ||
|
||
#endif /* __HW_S6DDRPHY_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters