path: root/wbsio_spi.c
diff options
authorCarl-Daniel Hailfinger <>2009-06-01 02:08:58 +0000
committerCarl-Daniel Hailfinger <>2009-06-01 02:08:58 +0000
commitb22918cadc5ba07c037935644f8c6dcef0583e23 (patch)
treec2fd7bff346e61d3433a0c0e2fe66b7173e482de /wbsio_spi.c
parent3504b539bfa33693510d83402a344b1eafd7a592 (diff)
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. Corresponding to flashrom svn r560. Signed-off-by: Carl-Daniel Hailfinger <> Tested on real hardware and Acked-by: Uwe Hermann <>
Diffstat (limited to 'wbsio_spi.c')
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;
OpenPOWER on IntegriCloud