From 40cc15f55db5bf68c38be5a5cb695c38e75ffb37 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 27 Dec 2022 10:33:38 +1100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/71623 Reviewed-by: Sam McNally Tested-by: build bot (Jenkins) --- wbsio_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wbsio_spi.c') 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; -- cgit v1.2.3