diff options
author | Joshua Roys <roysjosh@gmail.com> | 2011-05-26 13:30:51 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2011-05-26 13:30:51 +0000 |
commit | d172ecdb348a01360bb35624c2945bab3ae219ff (patch) | |
tree | 0ac2bbc6450d9ad5b6ecc990459f372c480ef050 /ichspi.c | |
parent | 7bcacb1bdb72f60f37a67883f871bbef9ec8c943 (diff) | |
download | flashrom-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |