ichspi: Align via_init_spi() type-signature with upstream
Allows for importing enable_flash_vt_vx() to add support for:
- VIA VX800/VX820,
- VIA VX855/VX875,
- VIA VX900.
So chipset_enable.c is closer to upstream.
Also correct a physmap to be rphysmap in via_init_spi().
BUG=chromium:478356
BRANCH=none
TEST=none
Change-Id: I9bc91f6f254626eeb68824dbb949a515370f1475
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1837314
Reviewed-by: Sam McNally <sammc@chromium.org>
diff --git a/programmer.h b/programmer.h
index 501fd04..f628042 100644
--- a/programmer.h
+++ b/programmer.h
@@ -620,7 +620,7 @@
extern int ich_dry_run;
extern uint32_t ichspi_bbar;
int ich_init_spi(struct pci_dev *dev, void *spibar, enum ich_chipset ich_generation);
-int via_init_spi(struct pci_dev *dev);
+int via_init_spi(uint32_t mmio_base);
/* ene_lpc.c */
int ene_probe_spi_flash(const char *name);