ice40: added detect_flash support

This commit is contained in:
Gwenhael Goavec-Merou 2025-05-24 07:48:21 +02:00
parent 10ba59c1ec
commit e135f1820b
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ class Ice40: public Device, SPIInterface {
void program(unsigned int offset, bool unprotect_flash) override;
bool program_cram(const uint8_t *data, uint32_t length);
bool dumpFlash(uint32_t base_addr, uint32_t len) override;
bool detect_flash() override {
return SPIInterface::detect_flash();
}
bool protect_flash(uint32_t len) override;
bool unprotect_flash() override;
bool bulk_erase_flash() override;