init: define SDRAM_PHY_[DDR3|DDR4|...]

Will allow to ifdef code specific to some memory types like SPD reads.

Signed-off-by: Michal Sieron <msieron@antmicro.com>
This commit is contained in:
Michal Sieron 2023-01-09 16:03:09 +01:00
parent 8339f54322
commit 4c9f184566
1 changed files with 1 additions and 0 deletions

View File

@ -937,6 +937,7 @@ def get_sdram_phy_c_header(phy_settings, timing_settings):
if phy_settings.bitslips > 0: if phy_settings.bitslips > 0:
r.define("SDRAM_PHY_BITSLIPS", phy_settings.bitslips) r.define("SDRAM_PHY_BITSLIPS", phy_settings.bitslips)
r.define(f"SDRAM_PHY_{phy_settings.memtype}")
if phy_settings.is_rdimm: if phy_settings.is_rdimm:
assert phy_settings.memtype == "DDR4" assert phy_settings.memtype == "DDR4"
r.define("SDRAM_PHY_DDR4_RDIMM") r.define("SDRAM_PHY_DDR4_RDIMM")