summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorJoshua Roys <roysjosh@gmail.com>2011-05-26 13:30:51 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-26 13:30:51 +0000
commitd172ecdb348a01360bb35624c2945bab3ae219ff (patch)
tree0ac2bbc6450d9ad5b6ecc990459f372c480ef050 /ichspi.c
parent7bcacb1bdb72f60f37a67883f871bbef9ec8c943 (diff)
downloadflashrom-d172ecdb348a01360bb35624c2945bab3ae219ff.tar.gz
flashrom-d172ecdb348a01360bb35624c2945bab3ae219ff.tar.bz2
flashrom-d172ecdb348a01360bb35624c2945bab3ae219ff.zip
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>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ichspi.c b/ichspi.c
index 6370fb6ae..31945decb 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -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;