mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
tree: provide flashrom context into programmer_delay()
Modify the `programmer_delay` function signature to allow passing the flashrom context. Programmers that depend on internal delay should provide NULL as a context. The use of this function parameter will be introduced in CB:67393. TOPIC=programmer_handle_global TEST=builds Change-Id: Ibb0bce26ce2052853ee52158d7ba742967a9e229 Signed-off-by: Alexander Goncharov <chat@joursoir.net> Reviewed-on: https://review.coreboot.org/c/flashrom/+/66373 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:

committed by
Edward O'Callaghan

parent
890d07986b
commit
5c69cde561
4
atavia.c
4
atavia.c
@ -90,7 +90,7 @@ static bool atavia_ready(struct pci_dev *pcidev_dev)
|
||||
ready = true;
|
||||
break;
|
||||
} else {
|
||||
programmer_delay(1);
|
||||
programmer_delay(NULL, 1);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -170,7 +170,7 @@ static int atavia_init(const struct programmer_cfg *cfg)
|
||||
|
||||
/* Test if a flash chip is attached. */
|
||||
pci_write_long(dev, PCI_ROM_ADDRESS, (uint32_t)PCI_ROM_ADDRESS_MASK);
|
||||
programmer_delay(90);
|
||||
programmer_delay(NULL, 90);
|
||||
uint32_t base = pci_read_long(dev, PCI_ROM_ADDRESS);
|
||||
msg_pdbg2("BROM base=0x%08x\n", base);
|
||||
if ((base & PCI_ROM_ADDRESS_MASK) == 0) {
|
||||
|
Reference in New Issue
Block a user