1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

Use the register mapping feature bit

All functions which just call probe_jedec and then map flash registers
are replaced by probe_jedec. All functions which call probe_jedec, map
flash registers and do something else can at least eliminate mapping
flash registers.
Fix logic inversion in probe_jedec to map flash registers on success
instead of on failure.
Change a few TIMING_IGNORED to TIMING_FIXME where probe_jedec is used.

Total savings: One probe function simplified, three probe functions
eliminated.

Corresponding to flashrom svn r839.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Sean Nelson <audiohacked@gmail.com>
This commit is contained in:
Carl-Daniel Hailfinger
2010-01-09 02:24:17 +00:00
parent 3646c8f31f
commit e9404668a1
6 changed files with 29 additions and 51 deletions

View File

@ -36,16 +36,6 @@ void write_lockbits_49fl00x(chipaddr bios, int size,
}
}
int probe_49fl00x(struct flashchip *flash)
{
int ret = probe_jedec(flash);
if (ret == 1)
map_flash_registers(flash);
return ret;
}
int erase_49fl00x(struct flashchip *flash)
{
int i;