Show
Ignore:
Timestamp:
06/29/08 03:30:41 (5 months ago)
Author:
stuge
Message:

flashrom: 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.

Signed-off-by: Peter Stuge <peter@…>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/util/flashrom/ichspi.c

    r3393 r3395  
    230230        int write_cmd = 0; 
    231231        int timeout; 
    232         uint32_t temp32; 
     232        uint32_t temp32 = 0; 
    233233        uint16_t temp16; 
    234234        uint32_t a;