From 1dfe0ff1745118406f2ca0d03340dd346cc39770 Mon Sep 17 00:00:00 2001 From: Carl-Daniel 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. Corresponding to flashrom svn r556. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Uwe Hermann --- it87spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it87spi.c') diff --git a/it87spi.c b/it87spi.c index da82937..2a7be85 100644 --- a/it87spi.c +++ b/it87spi.c @@ -101,7 +101,7 @@ int it87xx_probe_spi_flash(const char *name) it8716f_flashport = find_ite_spi_flash_port(ITE_SUPERIO_PORT2); if (it8716f_flashport) - flashbus = BUS_TYPE_IT87XX_SPI; + spi_controller = SPI_CONTROLLER_IT87XX; return (!it8716f_flashport); } -- cgit v1.1