summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-06-29 01:30:41 +0000
committerPeter Stuge <peter@stuge.se>2008-06-29 01:30:41 +0000
commit7e2c079367fb2b9eb298b51a102ab40a70e79332 (patch)
treef7110ea3a195ce2a65ec88944798b3ae6ed6a882 /ichspi.c
parenta0a791963b963b96b8017f52c8956878ea0e3f16 (diff)
downloadast2050-flashrom-7e2c079367fb2b9eb298b51a102ab40a70e79332.zip
ast2050-flashrom-7e2c079367fb2b9eb298b51a102ab40a70e79332.tar.gz
Fix ICH7 non-SPI that broke in r3393
r3393 assumed that ICH7 always used SPI. This patch resets ich7_detected back to 0 when BOOT BIOS Straps indicate something else than SPI. Also fixes a build error in ichspi.c with gcc 4.2.2. Corresponding to flashrom svn r280 and coreboot v2 svn r3395. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
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 d6c0157..b6b0f36 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -229,7 +229,7 @@ static int ich7_run_opcode(uint8_t nr, OPCODE op, uint32_t offset,
{
int write_cmd = 0;
int timeout;
- uint32_t temp32;
+ uint32_t temp32 = 0;
uint16_t temp16;
uint32_t a;
OpenPOWER on IntegriCloud