mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
gowin: added detect_flash/erase_flash for gw2a FPGAs
This commit is contained in:
+3
-3
@@ -30,9 +30,9 @@ class Gowin: public Device, SPIInterface {
|
||||
|
||||
/* spi interface */
|
||||
bool detect_flash() override {
|
||||
if (is_gw5a)
|
||||
if (is_gw5a || is_gw2a)
|
||||
return SPIInterface::detect_flash();
|
||||
printError("protect flash not supported"); return false;}
|
||||
printError("detect flash not supported"); return false;}
|
||||
bool protect_flash(uint32_t len) override {
|
||||
(void) len;
|
||||
printError("protect flash not supported"); return false;}
|
||||
@@ -41,7 +41,7 @@ class Gowin: public Device, SPIInterface {
|
||||
return SPIInterface::unprotect_flash();
|
||||
printError("unprotect flash not supported"); return false;}
|
||||
bool bulk_erase_flash() override {
|
||||
if (is_gw5a)
|
||||
if (is_gw5a || is_gw2a)
|
||||
return SPIInterface::bulk_erase_flash();
|
||||
printError("bulk erase flash not supported"); return false;}
|
||||
bool dumpFlash(uint32_t base_addr, uint32_t len) override;
|
||||
|
||||
Reference in New Issue
Block a user