spiFlash: Add --bulk-erase command line option

Adds a --bulk-erase command line option for bulk erasure of SPI flash.
This commit is contained in:
Rod Whitby
2022-11-06 18:56:07 +10:30
parent d782877d0a
commit de5aff7a96
14 changed files with 103 additions and 3 deletions
+6
View File
@@ -57,6 +57,12 @@ class Altera: public Device, SPIInterface {
bool unprotect_flash() override {
return SPIInterface::unprotect_flash();
}
/*!
* \brief bulk erase SPI flash
*/
bool bulk_erase_flash() override {
return SPIInterface::bulk_erase_flash();
}
int spi_put(uint8_t cmd, uint8_t *tx, uint8_t *rx,
uint32_t len) override;