diff --git a/litex/soc/software/bios/cmds/cmd_spiflash.c b/litex/soc/software/bios/cmds/cmd_spiflash.c index 07c722934..1038f7a79 100644 --- a/litex/soc/software/bios/cmds/cmd_spiflash.c +++ b/litex/soc/software/bios/cmds/cmd_spiflash.c @@ -9,13 +9,13 @@ #include "../helpers.h" /** - * Command "fw" + * Command "flash_write" * * Write data from a memory buffer to SPI flash * */ #if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE) -static void fw_handler(int nb_params, char **params) +static void flash_write_handler(int nb_params, char **params) { char *c; unsigned int addr; @@ -24,7 +24,7 @@ static void fw_handler(int nb_params, char **params) unsigned int i; if (nb_params < 2) { - printf("fw [count]"); + printf("flash_write [count]"); return; } @@ -54,22 +54,22 @@ static void fw_handler(int nb_params, char **params) write_to_flash(addr + i * 4, (unsigned char *)&value, 4); } -define_command(fw, fw_handler, "Write to flash", SPIFLASH_CMDS); +define_command(flash_write, flash_write_handler, "Write to flash", SPIFLASH_CMDS); #endif /** - * Command "fe" + * Command "flash_erase" * * Flash erase * */ #if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE) -static void fe_handler(int nb_params, char **params) +static void flash_erase_handler(int nb_params, char **params) { erase_flash(); printf("Flash erased\n"); } -define_command(fe, fe_handler, "Erase whole flash", SPIFLASH_CMDS); +define_command(flash_erase, flash_erase_handler, "Erase whole flash", SPIFLASH_CMDS); #endif