spi25: Move 4BA preparations into spi_prepare_4ba() hook
These preparations are specific to 4BA SPI chips and don't have to
clutter `flashprog.c`.
Change-Id: I842244c57e575f93b9c505e16f1f20c7afd23733
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/72517
diff --git a/include/chipdrivers.h b/include/chipdrivers.h
index 31afc84..8e2c520 100644
--- a/include/chipdrivers.h
+++ b/include/chipdrivers.h
@@ -61,6 +61,7 @@
int spi_enter_4ba(struct flashctx *flash);
int spi_exit_4ba(struct flashctx *flash);
int spi_set_extended_address(struct flashctx *, uint8_t addr_high);
+int spi_prepare_4ba(struct flashctx *, enum preparation_steps);
/* spi25_statusreg.c */