mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-16 11:54:41 +02:00
flashrom.c: Make 'chip_to_probe' a param to probe_flash()
Apart from the very bespoke case of 'probe_w29ee011()' the override 'chip_to_probe' name is a nature parameter to 'probe_flash()'. However we can deal with w29ee011 by providing a probe specific validation function to check if the chip can indeed be overriden. TEST=`./flashrom -p internal --flash-name`. Change-Id: Ifcdace07ea2135d83dea92cfa5c6bec8d7ddf05d Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67091 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
39b1890773
commit
af76e44752
@@ -195,6 +195,7 @@ int printlock_at49f(struct flashctx *flash);
|
||||
|
||||
/* w29ee011.c */
|
||||
int probe_w29ee011(struct flashctx *flash);
|
||||
bool w29ee011_can_override(const char *const chip_name, const char *const override_chip);
|
||||
|
||||
/* stm50.c */
|
||||
int erase_sector_stm50(struct flashctx *flash, unsigned int block, unsigned int blocksize);
|
||||
|
Reference in New Issue
Block a user