bios/cmds/cmd_litedram: Fix sdram_spd_handler compilation condition.

This commit is contained in:
Florent Kermarrec 2023-02-08 10:05:55 +01:00
parent a56a178768
commit c054dc13d9
1 changed files with 2 additions and 1 deletions

View File

@ -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;