Show
Ignore:
Timestamp:
07/01/08 01:45:22 (5 months ago)
Author:
stepan
Message:

First attempt to clean up SPI probing and create a common
construct: the flash bus.

At some point the flash bus will be part of struct flashchip.

Pardon me for pushing this in, but I think it is important to beware of further
decay and it will improve things for other developers in the short run.

Carl-Daniel, I will consider your suggestions in another patch. I want to keep
things from getting too much for now. The patch includes Rudolf's VIA SPI
changes though.

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@…>

Files:
1 modified

Legend:

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

    r3344 r3401  
    44 * Copyright (C) 2007, 2008 Carl-Daniel Hailfinger 
    55 * Copyright (C) 2008 Ronald Hoogenboom <ronald@zonnet.nl> 
     6 * Copyright (C) 2008 coresystems GmbH 
    67 * 
    78 * This program is free software; you can redistribute it and/or modify 
     
    113114{ 
    114115        it8716f_flashport = find_ite_spi_flash_port(ITE_SUPERIO_PORT1); 
     116 
    115117        if (!it8716f_flashport) 
    116118                it8716f_flashport = find_ite_spi_flash_port(ITE_SUPERIO_PORT2); 
     119 
     120        if (it8716f_flashport) 
     121                flashbus = BUS_TYPE_IT87XX_SPI; 
     122 
    117123        return (!it8716f_flashport); 
    118124}