sdram_init: generate ddrx_mr1 only if mr1 is not None
This commit is contained in:
parent
2483d25f79
commit
b4ee95c3e3
|
@ -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)
|
init_sequence, mr1 = get_sdram_phy_init_sequence(phy_settings, timing_settings)
|
||||||
|
|
||||||
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
|
if mr1 is not None:
|
||||||
r += "\n"
|
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
|
||||||
|
r += "\n"
|
||||||
|
|
||||||
r += "init_sequence = [\n"
|
r += "init_sequence = [\n"
|
||||||
for comment, a, ba, cmd, delay in init_sequence:
|
for comment, a, ba, cmd, delay in init_sequence:
|
||||||
|
|
Loading…
Reference in New Issue