gowin: added detect_flash/erase_flash for gw2a FPGAs
This commit is contained in:
parent
a7cb7ec050
commit
768c6efcce
|
|
@ -30,9 +30,9 @@ class Gowin: public Device, SPIInterface {
|
||||||
|
|
||||||
/* spi interface */
|
/* spi interface */
|
||||||
bool detect_flash() override {
|
bool detect_flash() override {
|
||||||
if (is_gw5a)
|
if (is_gw5a || is_gw2a)
|
||||||
return SPIInterface::detect_flash();
|
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 {
|
bool protect_flash(uint32_t len) override {
|
||||||
(void) len;
|
(void) len;
|
||||||
printError("protect flash not supported"); return false;}
|
printError("protect flash not supported"); return false;}
|
||||||
|
|
@ -41,7 +41,7 @@ class Gowin: public Device, SPIInterface {
|
||||||
return SPIInterface::unprotect_flash();
|
return SPIInterface::unprotect_flash();
|
||||||
printError("unprotect flash not supported"); return false;}
|
printError("unprotect flash not supported"); return false;}
|
||||||
bool bulk_erase_flash() override {
|
bool bulk_erase_flash() override {
|
||||||
if (is_gw5a)
|
if (is_gw5a || is_gw2a)
|
||||||
return SPIInterface::bulk_erase_flash();
|
return SPIInterface::bulk_erase_flash();
|
||||||
printError("bulk erase flash not supported"); return false;}
|
printError("bulk erase flash not supported"); return false;}
|
||||||
bool dumpFlash(uint32_t base_addr, uint32_t len) override;
|
bool dumpFlash(uint32_t base_addr, uint32_t len) override;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue