sdram_init: generate ddrx_mr1 only if mr1 is not None

This commit is contained in:
Florent Kermarrec 2019-01-07 22:59:20 +01:00
parent 2483d25f79
commit b4ee95c3e3
1 changed files with 3 additions and 2 deletions

View File

@ -436,8 +436,9 @@ def get_sdram_phy_py_header(phy_settings, timing_settings):
init_sequence, mr1 = get_sdram_phy_init_sequence(phy_settings, timing_settings)
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
r += "\n"
if mr1 is not None:
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
r += "\n"
r += "init_sequence = [\n"
for comment, a, ba, cmd, delay in init_sequence: