Changeset 1151 for trunk/Makefile


Ignore:
Timestamp:
09/03/10 20:21:21 (21 months ago)
Author:
uwe
Message:

Add Intel Gigabit NIC SPI flashing support.
Tested on a 82541PI (0x8086, 0x107c) using 32-bit hardware.

The last line in nicintel_request_spibus() could be changed so that FL_BUSY
is used instead.

Shortened sample log:
[...]
Found "Intel 82541PI Gigabit Ethernet Controller" (8086:107c, BDF 01:03.0).
Found chip "ST M25P10.RES" (128 KB, SPI) at physical address 0xfffe0000.
Multiple flash chips were detected: M25P05.RES M25P10.RES
Please specify which chip to use with the -c <chipname> option.
[...]

Signed-off-by: Idwer Vollering <vidwer@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1117 r1151  
    122122override CONFIG_BITBANG_SPI = yes 
    123123else 
     124ifeq ($(CONFIG_NICINTEL_SPI), yes) 
     125override CONFIG_BITBANG_SPI = yes 
     126else 
    124127CONFIG_BITBANG_SPI ?= no 
     128endif 
    125129endif 
    126130endif 
     
    153157# Disable National Semiconductor NICs until support is complete and tested. 
    154158CONFIG_NICNATSEMI ?= no 
     159 
     160# Always enable SPI on Intel NICs for now. 
     161CONFIG_NICINTEL_SPI ?= yes 
    155162 
    156163# Always enable Bus Pirate SPI for now. 
     
    242249FEATURE_CFLAGS += -D'CONFIG_NICNATSEMI=1' 
    243250PROGRAMMER_OBJS += nicnatsemi.o 
     251NEED_PCI := yes 
     252endif 
     253 
     254ifeq ($(CONFIG_NICINTEL_SPI), yes) 
     255FEATURE_CFLAGS += -D'CONFIG_NICINTEL_SPI=1' 
     256PROGRAMMER_OBJS += nicintel_spi.o 
    244257NEED_PCI := yes 
    245258endif 
Note: See TracChangeset for help on using the changeset viewer.