software/bios: rename ef command to fe (for consistency)

This commit is contained in:
Florent Kermarrec 2019-11-08 13:14:21 +01:00
parent 4a12a92d62
commit c96f31a9ad
1 changed files with 4 additions and 3 deletions

View 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); 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(); erase_flash();
printf("flash erased\n"); printf("flash erased\n");
@ -346,8 +346,9 @@ static void help(void)
puts("mw - write address space"); puts("mw - write address space");
puts("mc - copy address space"); puts("mc - copy address space");
#if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE) #if (defined CSR_SPIFLASH_BASE && defined SPIFLASH_PAGE_SIZE)
puts("fe - erase whole flash");
puts("fw - write to flash"); puts("fw - write to flash");
puts("ef - erase whole flash");
#endif #endif
#ifdef CSR_ETHPHY_MDIO_W_ADDR #ifdef CSR_ETHPHY_MDIO_W_ADDR
puts("mdiow - write MDIO register"); 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)); 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) #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, "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 #endif
#ifdef CSR_ETHPHY_MDIO_W_ADDR #ifdef CSR_ETHPHY_MDIO_W_ADDR
else if(strcmp(token, "mdiow") == 0) mdiow(get_token(&c), get_token(&c), get_token(&c)); else if(strcmp(token, "mdiow") == 0) mdiow(get_token(&c), get_token(&c), get_token(&c));