From 4ff839900b9073c2e6935fada49f922ec5584463 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 27 Jun 2022 17:49:39 +0200 Subject: [PATCH] bios/cmd_litedram: Enable sdram_init/mr_write commands also for SDRAM. --- litex/soc/software/bios/cmds/cmd_litedram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/software/bios/cmds/cmd_litedram.c b/litex/soc/software/bios/cmds/cmd_litedram.c index 3d6c468ff..132015b17 100644 --- a/litex/soc/software/bios/cmds/cmd_litedram.c +++ b/litex/soc/software/bios/cmds/cmd_litedram.c @@ -23,7 +23,7 @@ * Initialize SDRAM (Init + Calibration) * */ -#if defined(CSR_SDRAM_BASE) && defined(CSR_DDRPHY_BASE) +#if defined(CSR_SDRAM_BASE) define_command(sdram_init, sdram_init, "Initialize SDRAM (Init + Calibration)", LITEDRAM_CMDS); #endif @@ -317,7 +317,7 @@ define_command(sdram_force_bitslip, sdram_force_bitslip_handler, "Force write le * Write SDRAM Mode Register * */ -#if defined(CSR_SDRAM_BASE) && defined(CSR_DDRPHY_BASE) +#if defined(CSR_SDRAM_BASE) static void sdram_mr_write_handler(int nb_params, char **params) { char *c;