Show
Ignore:
Timestamp:
06/27/08 18:28:34 (5 months ago)
Author:
stepan
Message:

* ICH7 SPI support
* fix some variable names in ichspi.c (Offset -> offset)
* Dump ICH7 SPI bar with -V
* Improve error message in case IOPL goes wrong. (It might not even be an IOPL)

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Peter Stuge <peter@…>

Files:
1 modified

Legend:

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

    r3386 r3393  
    33 * 
    44 * Copyright (C) 2007, 2008 Carl-Daniel Hailfinger 
     5 * Copyright (C) 2008 coresystems GmbH 
    56 * 
    67 * This program is free software; you can redistribute it and/or modify 
     
    3637        if (it8716f_flashport) 
    3738                return it8716f_spi_command(writecnt, readcnt, writearr, readarr); 
     39       else if (ich7_detected) 
     40               return ich_spi_command(writecnt, readcnt, writearr, readarr); 
    3841        else if (ich9_detected) 
    3942                return ich_spi_command(writecnt, readcnt, writearr, readarr); 
     
    358361        if (it8716f_flashport) 
    359362                return it8716f_spi_chip_read(flash, buf); 
     363       else if (ich7_detected) 
     364               return ich_spi_read(flash, buf); 
    360365        else if (ich9_detected) 
    361366                return ich_spi_read(flash, buf); 
     
    368373        if (it8716f_flashport) 
    369374                return it8716f_spi_chip_write(flash, buf); 
     375       else if (ich7_detected) 
     376               return ich_spi_write(flash, buf); 
    370377        else if (ich9_detected) 
    371378                return ich_spi_write(flash, buf);