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/flash.h

    r3399 r3401  
    371371int chipset_flash_enable(void); 
    372372void print_supported_chipsets(void); 
    373 extern int ich7_detected; 
    374 extern int viaspi_detected; 
    375 extern int ich9_detected; 
    376 extern void *ich_spibar; 
     373 
     374typedef enum { 
     375        BUS_TYPE_LPC, 
     376        BUS_TYPE_ICH7_SPI, 
     377        BUS_TYPE_ICH9_SPI, 
     378        BUS_TYPE_IT87XX_SPI, 
     379        BUS_TYPE_VIA_SPI 
     380} flashbus_t; 
     381 
     382extern flashbus_t flashbus; 
     383extern void *spibar; 
    377384 
    378385/* Physical memory mapping device */