Commit e7ca72b2 authored by Jędrzej Boczar's avatar Jędrzej Boczar

fix Python init header generation

parent bb85ce8f
...@@ -627,10 +627,10 @@ def get_sdram_phy_py_header(phy_settings, timing_settings): ...@@ -627,10 +627,10 @@ def get_sdram_phy_py_header(phy_settings, timing_settings):
r += "dfii_command_rddata = 0x20\n" r += "dfii_command_rddata = 0x20\n"
r += "\n" r += "\n"
init_sequence, mr1 = get_sdram_phy_init_sequence(phy_settings, timing_settings) init_sequence, mr = get_sdram_phy_init_sequence(phy_settings, timing_settings)
if mr1 is not None: if mr is not None and 1 in mr:
r += "ddrx_mr1 = 0x{:x}\n".format(mr1) r += "ddrx_mr1 = 0x{:x}\n".format(mr[1])
r += "\n" r += "\n"
r += "init_sequence = [\n" r += "init_sequence = [\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment