diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-31 17:57:34 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-05-31 17:57:34 +0000 |
commit | 4a1793728bed6338243447d7e06f24f7c3e9e95a (patch) | |
tree | 8b0f6db0abbbd38355b6ddf8feadb7b06a4e9bab /wbsio_spi.c | |
parent | 156aa7225b6c01d60c21cec83f45ef15f55545e5 (diff) | |
download | flashrom-4a1793728bed6338243447d7e06f24f7c3e9e95a.tar.gz |
Add bus type annotation to struct flashchips. Right now, the annotation
only differentiates between SPI and non-SPI. Anyone who knows more about
a specific flash chip should feel free to update it.
The existing flashbus variable was abused to denote the SPI controller
type. Use an aptly named variable for that purpose.
Once this patch is merged, the chipset/programmer init functions can set
supported flash chip types and flashrom can automatically select only
matching probe/read/erase/write functions.
A side benefit of that will be the elimination of the Winbond W29EE011
vs. AMIC A49LF040A conflict.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@556 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'wbsio_spi.c')
-rw-r--r-- | wbsio_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wbsio_spi.c b/wbsio_spi.c index 3c8c7a6..2df5bdd 100644 --- a/wbsio_spi.c +++ b/wbsio_spi.c @@ -63,7 +63,7 @@ int wbsio_check_for_spi(const char *name) return 1; printf_debug("\nwbsio_spibase = 0x%x\n", wbsio_spibase); - flashbus = BUS_TYPE_WBSIO_SPI; + spi_controller = SPI_CONTROLLER_WBSIO; return 0; } |