summaryrefslogtreecommitdiffstats
path: root/wbsio_spi.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-12-27 10:33:38 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2023-04-02 01:00:13 +0000
commit40cc15f55db5bf68c38be5a5cb695c38e75ffb37 (patch)
tree7772e0789e1de3eec836a966e00a99f0cc09596a /wbsio_spi.c
parent73e47091103891f2e3c12c5c51840faf9b57e436 (diff)
downloadflashrom-40cc15f55db5bf68c38be5a5cb695c38e75ffb37.tar.gz
flashrom-40cc15f55db5bf68c38be5a5cb695c38e75ffb37.tar.bz2
flashrom-40cc15f55db5bf68c38be5a5cb695c38e75ffb37.zip
board_enables: Allow for prog cfg coupling with board cfg
Some boards need to configure the programmer in specific ways. For example, a programmer such as internal may need to be configured either as laptop or not type and as such the board enable needs the ability to feed state back into the programmer configuration. Plumb this though by creating a board_cfg structure that can be packed. Change-Id: I7058a693e714a6966a842ae97cc8da7296e63e5e Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/71623 Reviewed-by: Sam McNally <sammc@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'wbsio_spi.c')
-rw-r--r--wbsio_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wbsio_spi.c b/wbsio_spi.c
index febe6ed26..9f33b18de 100644
--- a/wbsio_spi.c
+++ b/wbsio_spi.c
@@ -194,7 +194,7 @@ static const struct spi_master spi_master_wbsio = {
.shutdown = wbsio_spi_shutdown,
};
-int wbsio_check_for_spi(void)
+int wbsio_check_for_spi(struct board_cfg *cfg)
{
uint16_t wbsio_spibase = 0;