spi: Use bus probing for REMS, RES and AT25F
Change-Id: Ic5d2a5283c5fb5e52c58c0b5937922371f56249f
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/417
diff --git a/spi.c b/spi.c
index fee3aee..8d07ed1 100644
--- a/spi.c
+++ b/spi.c
@@ -165,6 +165,11 @@
static const struct bus_probe spi_probes[] = {
/* type function function argument */
{ ID_SPI_RDID, probe_spi_rdid, NULL },
+ { ID_SPI_AT25F, probe_spi_at25f, NULL },
+ { ID_SPI_REMS, probe_spi_rems, NULL },
+ { ID_SPI_RES3, probe_spi_res, NULL },
+ { ID_SPI_RES2, probe_spi_res, NULL },
+ { ID_SPI_RES1, probe_spi_res, NULL },
};
static bool spi_probe_match(const struct flashchip *chip, const struct id_info_ext *found)