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>
diff --git a/ichspi.c b/ichspi.c
index 6370fb6..31945de 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1045,7 +1045,7 @@
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;