sdram_init: generate ddrx_mr1 only if mr1 is not None
This commit is contained in:
parent
2483d25f79
commit
b4ee95c3e3
|
@ -436,6 +436,7 @@ 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)
|
||||||
|
|
||||||
|
if mr1 is not None:
|
||||||
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
|
r += "ddrx_mr1 = 0x{:x}\n".format(mr1)
|
||||||
r += "\n"
|
r += "\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue