From 4a1793728bed6338243447d7e06f24f7c3e9e95a Mon Sep 17 00:00:00 2001 From: hailfinger Date: Sun, 31 May 2009 17:57:34 +0000 Subject: 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 Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@556 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- dummyflasher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dummyflasher.c') diff --git a/dummyflasher.c b/dummyflasher.c index c03aead..edcaf7a 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -29,7 +29,7 @@ int dummy_init(void) { printf_debug("%s\n", __func__); - flashbus = BUS_TYPE_DUMMY_SPI; + spi_controller = SPI_CONTROLLER_DUMMY; return 0; } -- cgit v1.2.1