summaryrefslogtreecommitdiffstats
path: root/w29ee011.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-06-18 02:08:40 +0000
committerPeter Stuge <peter@stuge.se>2008-06-18 02:08:40 +0000
commit7ffbc6f94d50cdc584913c4f02709ae660664a75 (patch)
tree449704116d9462c2f6a23d0551f1b2dab02e0d42 /w29ee011.c
parent663f17197c861126da1a2c16dba48a2ed8900f49 (diff)
downloadast2050-flashrom-7ffbc6f94d50cdc584913c4f02709ae660664a75.zip
ast2050-flashrom-7ffbc6f94d50cdc584913c4f02709ae660664a75.tar.gz
Force read unknown flash chips
When flash chip detection fails, it is still useful and possible to read the flash chip contents. If no flash chip is found in normal probes and the -f -r -c CHIPNAME options are given, a successful probe for the specified chip is forced, and then flashrom reads the flash chip using either the read function for the specified chip, or if there is none, a simple memcpy(). The patch also moves the global variable int force in flashrom.c into main() and passes it as a parameter to layout.c:show_id(), which was the only other function that used the variable. This is needed to avoid confusion with the new parameter int force which is added to flashrom.c:probe_flash() and used to force probe success for the chip named in char *chip_to_probe. Corresponding to flashrom svn r259 and coreboot v2 svn r3367. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'w29ee011.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud