flashrom: Fix broken flash chip base address logic
authorPeter Stuge <peter@stuge.se>
Mon, 9 Feb 2009 20:26:14 +0000 (20:26 +0000)
committerPeter Stuge <peter@stuge.se>
Mon, 9 Feb 2009 20:26:14 +0000 (20:26 +0000)
commitcd7e9b55dd9887047555e99ec926a1cf762f52de
treed9bee2d4736fc455f3b786f738446f6f12434e9c
parentc4ddbff70621449606fa3f0a1ad8277fac0f5aeb
flashrom: Fix broken flash chip base address logic

Elan SC520 requries us to deal with flash chip base addresses at locations
other than top of 4GB. The logic for that was incorrectly triggered also when
a board had more than one flash chip. This patch will honor flashbase only when
probing for the first flash chip on the board, and look at top of 4GB for later
chips.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3932 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
util/flashrom/flashrom.c