1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

ichspi: fix detection of unused regions

Corresponding to flashrom svn r1319.

Signed-off-by: Joshua Roys <roysjosh@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Joshua Roys 2011-05-26 13:30:51 +00:00 committed by Stefan Tauner
parent 7bcacb1bdb
commit d172ecdb34

View File

@ -1045,7 +1045,7 @@ static void do_ich9_spi_frap(uint32_t frap, int i)
base = ICH_FREG_BASE(freg);
limit = ICH_FREG_LIMIT(freg);
if (base == 0x1fff && limit == 0) {
if (base > limit) {
/* this FREG is disabled */
msg_pdbg("%s region is unused.\n", region_names[i]);
return;