Show
Ignore:
Timestamp:
06/30/08 23:38:30 (5 months ago)
Author:
ruik
Message:

This patch adds support for VIA SPI controller on VT8237S. It is similar with
few documented exceptions to ICH7 SPI controller.

Signed-off-by: Rudolf Marek <r.marek@…>
Acked-by: Peter Stuge <peter@…>

Files:
1 modified

Legend:

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

    r3393 r3398  
    3737        if (it8716f_flashport) 
    3838                return it8716f_spi_command(writecnt, readcnt, writearr, readarr); 
    39        else if (ich7_detected) 
    40                return ich_spi_command(writecnt, readcnt, writearr, readarr); 
     39        else if ((ich7_detected) || (viaspi_detected)) 
     40                return ich_spi_command(writecnt, readcnt, writearr, readarr); 
    4141        else if (ich9_detected) 
    4242                return ich_spi_command(writecnt, readcnt, writearr, readarr); 
     
    361361        if (it8716f_flashport) 
    362362                return it8716f_spi_chip_read(flash, buf); 
    363        else if (ich7_detected) 
    364                return ich_spi_read(flash, buf); 
     363        else if ((ich7_detected) || (viaspi_detected)) 
     364                return ich_spi_read(flash, buf); 
    365365        else if (ich9_detected) 
    366366                return ich_spi_read(flash, buf); 
     
    373373        if (it8716f_flashport) 
    374374                return it8716f_spi_chip_write(flash, buf); 
    375        else if (ich7_detected) 
    376                return ich_spi_write(flash, buf); 
     375        else if ((ich7_detected) || (viaspi_detected)) 
     376                return ich_spi_write(flash, buf); 
    377377        else if (ich9_detected) 
    378378                return ich_spi_write(flash, buf);