Changeset 691 for trunk/flash.h


Ignore:
Timestamp:
Aug 19, 2009 3:27:58 PM (4 years ago)
Author:
hailfinger
Message:

If FT2232H SPI is not enabled, it should be compiled out completely. We
can't remove ft2232_spi.o from unconditional OBJS yet due to our
makefile structure (make features), but this patch adds #ifdefs around
all FT2232H code, so the net effect is the same.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/flash.h

    r690 r691  
    8787        PROGRAMMER_SATASII, 
    8888        PROGRAMMER_IT87SPI, 
     89#if FT2232_SPI_SUPPORT == 1 
    8990        PROGRAMMER_FT2232SPI, 
     91#endif 
    9092#if SERPROG_SUPPORT == 1 
    9193        PROGRAMMER_SERPROG, 
     
    437439        SPI_CONTROLLER_VIA, 
    438440        SPI_CONTROLLER_WBSIO, 
     441#if FT2232_SPI_SUPPORT == 1 
    439442        SPI_CONTROLLER_FT2232, 
     443#endif 
    440444        SPI_CONTROLLER_DUMMY, 
    441 }; 
     445        SPI_CONTROLLER_INVALID /* This must always be the last entry. */ 
     446}; 
     447extern const int spi_programmer_count; 
    442448struct spi_command { 
    443449        unsigned int writecnt; 
Note: See TracChangeset for help on using the changeset viewer.