software/bios: rename ef command to fe (for consistency)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 8 Nov 2019 12:14:21 +0000 (13:14 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 8 Nov 2019 12:14:21 +0000 (13:14 +0100)
litex/soc/software/bios/main.c

index c18cccfb1c8604b8710a313311aa589d07ea236c..621d377acaa8ccb81d548622690aeeb4fc89cc23 100644 (file)
@@ -213,7 +213,7 @@ static void fw(char *addr, char *value, char *count)
        for (i=0;i<count2;i++) write_to_flash(addr2 + i * 4, (unsigned char *)&value2, 4);
 }
 
-static void ef(void)
+static void fe(void)
 {
        erase_flash();
        printf("flash erased\n");
@@ -346,8 +346,9 @@ static void help(void)
        puts("mw         - write address space");
        puts("mc         - copy address space");
 #if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE)
+       puts("fe         - erase whole flash");
        puts("fw         - write to flash");
-       puts("ef         - erase whole flash");
+
 #endif
 #ifdef CSR_ETHPHY_MDIO_W_ADDR
        puts("mdiow      - write MDIO register");
@@ -411,7 +412,7 @@ static void do_command(char *c)
        else if(strcmp(token, "mc") == 0) mc(get_token(&c), get_token(&c), get_token(&c));
 #if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE)
        else if(strcmp(token, "fw") == 0) fw(get_token(&c), get_token(&c), get_token(&c));
-       else if(strcmp(token, "ef") == 0) ef();
+       else if(strcmp(token, "fe") == 0) fe();
 #endif
 #ifdef CSR_ETHPHY_MDIO_W_ADDR
        else if(strcmp(token, "mdiow") == 0) mdiow(get_token(&c), get_token(&c), get_token(&c));