memory_bus: Turn flashbase into a par_master member `rom_base`
Get rid of the global `flashbase`. Treat overrides for the `rom_base`
similar to `max_rom_decode`: Gather the information in `internal_data`
and then pass it to register_par_master().
Change-Id: Ib9ed7234a849fe3550200fd602226d0036da15f0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/436
diff --git a/satasii.c b/satasii.c
index abb1d4c..c3f7bb2 100644
--- a/satasii.c
+++ b/satasii.c
@@ -98,7 +98,7 @@
if ((id != 0x0680) && (!(pci_mmio_readl(sii_bar) & (1 << 26))))
msg_pwarn("Warning: Flash seems unconnected.\n");
- return register_par_master(&par_master_satasii, BUS_PARALLEL, 0, NULL);
+ return register_par_master(&par_master_satasii, BUS_PARALLEL, 0, 0, NULL);
}
static void satasii_chip_writeb(const struct flashctx *flash, uint8_t val, chipaddr addr)