summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-29 21:43:42 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-30 13:52:48 +0200
commit68f5f62fca990471f6c252f964bf350e35ff68b5 (patch)
tree24f5d920229aece1374fe5333d4df1385b9e0695 /util
parent39e25eceaf054fc70086b178d0d1f34def4cbf2b (diff)
downloadcoreboot-68f5f62fca990471f6c252f964bf350e35ff68b5.tar.xz
autoport/bd82x6x: Fix off-by-one error
Change-Id: Ibd5c8a1364ab183f72e12cc9b450a36200fe3fde Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10371 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
Diffstat (limited to 'util')
-rw-r--r--util/autoport/bd82x6x.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go
index 91538bd0d1..4a0f5031e8 100644
--- a/util/autoport/bd82x6x.go
+++ b/util/autoport/bd82x6x.go
@@ -105,7 +105,7 @@ func ich9GetFlashSize(ctx Context) {
highflkb := uint32(0)
for reg := uint16(0); reg < 5; reg++ {
fl := (inteltool.RCBA[0x3854+4*reg] >> 16) & 0x1fff
- flkb := fl << 2
+ flkb := (fl + 1) << 2
if flkb > highflkb {
highflkb = flkb
}