diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-08-12 14:16:14 +1000 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-09-07 02:57:00 +0000 |
commit | a20ceffa352f790f14361211a1c9931475ec7ac7 (patch) | |
tree | fb8194e124a36151ec8fa66acef45c657f0dbcb1 /include | |
parent | c9d8c422af0bdbe24f21d30919df728ab7c35c17 (diff) | |
download | flashrom-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')
-rw-r--r-- | include/programmer.h | 2 |
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 */ |