fix Python init header generation

This commit is contained in:
Jędrzej Boczar 2021-01-19 13:48:33 +01:00
parent bb85ce8f0f
commit e7ca72b22f
1 changed files with 3 additions and 3 deletions

View File

@ -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"