Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litedram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kestrel Collaboration
Kestrel LiteX
litedram
Commits
bb85ce8f
Commit
bb85ce8f
authored
Jan 28, 2021
by
Jędrzej Boczar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: make the write leveling MR bit configurable
parent
5a114be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
litedram/init.py
litedram/init.py
+7
-5
No files found.
litedram/init.py
View file @
bb85ce8f
...
...
@@ -220,7 +220,7 @@ def get_ddr3_phy_init_sequence(phy_settings, timing_settings):
(
"ZQ Calibration"
,
0x0400
,
0
,
"DFII_COMMAND_WE|DFII_COMMAND_CS"
,
200
),
]
return
init_sequence
,
mr1
return
init_sequence
,
{
1
:
mr1
}
# DDR4 ---------------------------------------------------------------------------------------------
...
...
@@ -443,7 +443,7 @@ def get_ddr4_phy_init_sequence(phy_settings, timing_settings):
(
"ZQ Calibration"
,
0x0400
,
0
,
"DFII_COMMAND_WE|DFII_COMMAND_CS"
,
200
),
]
return
init_sequence
,
mr1
return
init_sequence
,
{
1
:
mr1
}
# Init Sequence ------------------------------------------------------------------------------------
...
...
@@ -568,11 +568,13 @@ const unsigned long sdram_dfii_pix_rddata_addr[SDRAM_PHY_PHASES] = {{
"""
.
format
(
sdram_dfii_pix_rddata_addr
=
",
\
n
\
t
"
.
join
(
sdram_dfii_pix_rddata_addr
))
r
+=
"
\
n
"
init_sequence
,
mr
1
=
get_sdram_phy_init_sequence
(
phy_settings
,
timing_settings
)
init_sequence
,
mr
=
get_sdram_phy_init_sequence
(
phy_settings
,
timing_settings
)
if
phy_settings
.
memtype
in
[
"DDR3"
,
"DDR4"
]:
# The value of MR1 needs to be modified during write leveling
r
+=
"#define DDRX_MR1 {}
\
n
\
n
"
.
format
(
mr1
)
# The value of MR1[7] needs to be modified during write leveling
r
+=
"#define DDRX_MR_WRLVL_ADDRESS {}
\
n
\
n
"
.
format
(
1
)
r
+=
"#define DDRX_MR_WRLVL_RESET {}
\
n
\
n
"
.
format
(
mr
[
1
])
r
+=
"#define DDRX_MR_WRLVL_BIT {}
\
n
\
n
"
.
format
(
7
)
r
+=
"static void init_sequence(void)
\
n
{
\
n
"
for
comment
,
a
,
ba
,
cmd
,
delay
in
init_sequence
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment