all devices / spiInterface / main: added method / infra to detect flash chip with --detect -f

This commit is contained in:
Gwenhael Goavec-Merou
2024-06-09 09:28:52 +02:00
parent d0dd71a28a
commit c468a69fc9
11 changed files with 126 additions and 2 deletions
+6
View File
@@ -46,6 +46,12 @@ class Altera: public Device, SPIInterface {
/* spi interface */
/*************************/
/*!
* \brief display SPI flash ID and status register
*/
bool detect_flash() override {
return SPIInterface::detect_flash();
}
/*!
* \brief protect SPI flash blocks
*/