aboutsummaryrefslogtreecommitdiffstats
path: root/include/programmer.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-08-12 14:16:14 +1000
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-07 02:57:00 +0000
commita20ceffa352f790f14361211a1c9931475ec7ac7 (patch)
treefb8194e124a36151ec8fa66acef45c657f0dbcb1 /include/programmer.h
parentc9d8c422af0bdbe24f21d30919df728ab7c35c17 (diff)
downloadflashrom-a20ceffa352f790f14361211a1c9931475ec7ac7.tar.gz
flashrom-a20ceffa352f790f14361211a1c9931475ec7ac7.tar.bz2
flashrom-a20ceffa352f790f14361211a1c9931475ec7ac7.zip
ichspi.c: Allow passing programmer_cfg directly
Modify the type signature of the programmer entry-point xxx_init() functions to allow for the consumption of the programmer parameterisation string data. Also plumb programmer_cfg though get_params. Change-Id: I480589bb50b47fdf5af259d068f49fedfce88ea5 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66661 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'include/programmer.h')
-rw-r--r--include/programmer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/programmer.h b/include/programmer.h
index 9aba60fc..2a4b1181 100644
--- a/include/programmer.h
+++ b/include/programmer.h
@@ -362,7 +362,7 @@ enum ich_chipset {
/* ichspi.c */
#if CONFIG_INTERNAL == 1
-int ich_init_spi(void *spibar, enum ich_chipset ich_generation);
+int ich_init_spi(const struct programmer_cfg *cfg, void *spibar, enum ich_chipset ich_generation);
int via_init_spi(uint32_t mmio_base);
/* amd_imc.c */