bios/cmd_litedram: Enable sdram_init/mr_write commands also for SDRAM.

This commit is contained in:
Florent Kermarrec 2022-06-27 17:49:39 +02:00
parent c4e3962def
commit 4ff839900b
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
* Initialize SDRAM (Init + Calibration) * 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); define_command(sdram_init, sdram_init, "Initialize SDRAM (Init + Calibration)", LITEDRAM_CMDS);
#endif #endif
@ -317,7 +317,7 @@ define_command(sdram_force_bitslip, sdram_force_bitslip_handler, "Force write le
* Write SDRAM Mode Register * 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) static void sdram_mr_write_handler(int nb_params, char **params)
{ {
char *c; char *c;