From c054dc13d9a14674ba7d0fd35e334f0891b31519 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 8 Feb 2023 10:05:55 +0100 Subject: [PATCH] bios/cmds/cmd_litedram: Fix sdram_spd_handler compilation condition. --- litex/soc/software/bios/cmds/cmd_litedram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/soc/software/bios/cmds/cmd_litedram.c b/litex/soc/software/bios/cmds/cmd_litedram.c index f0c9e46f5..67f4e3bef 100644 --- a/litex/soc/software/bios/cmds/cmd_litedram.c +++ b/litex/soc/software/bios/cmds/cmd_litedram.c @@ -395,7 +395,8 @@ define_command(sdram_mr_write, sdram_mr_write_handler, "Write SDRAM Mode Registe * SPD address is a 3-bit address defined by the pins A0, A1, A2. * */ -#ifdef CONFIG_HAS_I2C +#if defined(CSR_SDRAM_BASE) && defined(CONFIG_HAS_I2C) + static void sdram_spd_handler(int nb_params, char **params) { char *c;