diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-01 02:08:58 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-01 02:08:58 +0000 |
commit | 9747d578974e0f6dd0e0e99f7708eaf54ff12f6d (patch) | |
tree | c2fd7bff346e61d3433a0c0e2fe66b7173e482de /wbsio_spi.c | |
parent | 526ee2e8dd3cfd4771f808137287fc041ddee46e (diff) | |
download | flashrom-9747d578974e0f6dd0e0e99f7708eaf54ff12f6d.zip flashrom-9747d578974e0f6dd0e0e99f7708eaf54ff12f6d.tar.gz |
Only probe for chips with compatible bus protocols
It doesn't make sense to probe for SPI chips on a LPC host, nor does it
make sense to probe for LPC chips on a Parallel host.
This change is backwards compatible, but adding host protocol info to
chipset init functions will speed up probing.
Once all chipset init functions are updated and the Winbond W29EE011 and
AMIC A49LF040A chip definitions are updated, the W29EE011 workaround can
be deleted as the W29/A49 conflict magically disappears.
Tested on real hardware and
Corresponding to flashrom svn r560.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'wbsio_spi.c')
-rw-r--r-- | wbsio_spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wbsio_spi.c b/wbsio_spi.c index 2df5bdd..045aa0e 100644 --- a/wbsio_spi.c +++ b/wbsio_spi.c @@ -63,7 +63,10 @@ int wbsio_check_for_spi(const char *name) return 1; printf_debug("\nwbsio_spibase = 0x%x\n", wbsio_spibase); + + buses_supported |= CHIP_BUSTYPE_SPI; spi_controller = SPI_CONTROLLER_WBSIO; + return 0; } |