phy/a7ddrphy: make reset_n optional

This commit is contained in:
Florent Kermarrec 2018-02-06 14:48:52 +01:00
parent ec9ad2fc39
commit 57c63c1eab
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ class A7DDRPHY(Module, AutoCSR):
i_D5=self.dfi.phases[2].bank[i], i_D6=self.dfi.phases[2].bank[i],
i_D7=self.dfi.phases[3].bank[i], i_D8=self.dfi.phases[3].bank[i]
)
controls = ["ras_n", "cas_n", "we_n", "cke", "odt", "reset_n"]
controls = ["ras_n", "cas_n", "we_n", "cke", "odt"]
if hasattr(pads, "reset_n"):
controls.append("reset_n")
if hasattr(pads, "cs_n"):
controls.append("cs_n")
for name in controls: