From: Florent Kermarrec Date: Fri, 8 Nov 2019 12:13:54 +0000 (+0100) Subject: software/libbase/spiflash: rename CHIP_ERASE_CMD to CE_CMD (for consistency) X-Git-Tag: 24jan2021_ls180~874 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a12a92d627d6dff4d8f6031c6a9eb01b251c9a2;p=litex.git software/libbase/spiflash: rename CHIP_ERASE_CMD to CE_CMD (for consistency) --- diff --git a/litex/soc/software/libbase/spiflash.c b/litex/soc/software/libbase/spiflash.c index 38a22dce..c1681c08 100644 --- a/litex/soc/software/libbase/spiflash.c +++ b/litex/soc/software/libbase/spiflash.c @@ -8,7 +8,7 @@ #define WRDI_CMD 0x04 #define RDSR_CMD 0x05 #define WREN_CMD 0x06 -#define CHIP_ERASE_CMD 0xc7 +#define CE_CMD 0xc7 #define SE_CMD 0xd8 #define BITBANG_CLK (1 << 1) @@ -99,7 +99,7 @@ void erase_flash(void) flash_write_byte(WREN_CMD); spiflash_bitbang_write(BITBANG_CS_N); - flash_write_byte(CHIP_ERASE_CMD); + flash_write_byte(CE_CMD); spiflash_bitbang_write(BITBANG_CS_N); wait_for_device_ready();