mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
c9d8c422af
commit
a20ceffa35
@ -816,7 +816,7 @@ static int enable_flash_ich_spi(const struct programmer_cfg *cfg, struct pci_dev
|
||||
void *spibar = rcrb + spibar_offset;
|
||||
|
||||
/* This adds BUS_SPI */
|
||||
int ret_spi = ich_init_spi(spibar, ich_generation);
|
||||
int ret_spi = ich_init_spi(NULL, spibar, ich_generation); /* TODO(quasisec): pass prog_param */
|
||||
if (ret_spi == ERROR_FATAL)
|
||||
return ret_spi;
|
||||
|
||||
@ -960,7 +960,7 @@ static int enable_flash_pch100_or_c620(const struct programmer_cfg *cfg,
|
||||
msg_pdbg("SPIBAR = 0x%0*" PRIxPTR " (phys = 0x%08x)\n", PRIxPTR_WIDTH, (uintptr_t)spibar, phys_spibar);
|
||||
|
||||
/* This adds BUS_SPI */
|
||||
const int ret_spi = ich_init_spi(spibar, pch_generation);
|
||||
const int ret_spi = ich_init_spi(NULL, spibar, pch_generation); /* TODO(quasisec): pass prog_param */
|
||||
if (ret_spi != ERROR_FATAL) {
|
||||
if (ret_bc || ret_spi)
|
||||
ret = ERROR_NONFATAL;
|
||||
@ -1077,7 +1077,7 @@ static int enable_flash_silvermont(const struct programmer_cfg *cfg, struct pci_
|
||||
*/
|
||||
enable_flash_ich_bios_cntl_memmapped(ich_generation, spibar + 0xFC);
|
||||
|
||||
int ret_spi = ich_init_spi(spibar, ich_generation);
|
||||
int ret_spi = ich_init_spi(NULL, spibar, ich_generation); /* TODO(quasisec): pass prog_param */
|
||||
if (ret_spi == ERROR_FATAL)
|
||||
return ret_spi;
|
||||
|
||||
|
Reference in New Issue
Block a user