mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user