summaryrefslogtreecommitdiff
path: root/src/drivers/spi/spi_flash.c
diff options
context:
space:
mode:
authorIdwer Vollering <vidwer@gmail.com>2014-02-16 00:32:13 +0000
committerIdwer Vollering <vidwer@gmail.com>2014-02-17 10:21:48 +0100
commit73a1018ce33a85c0b55633410225162e1bf3fe2c (patch)
tree4c7c4db138bc9126c66e27af67728a43cd452851 /src/drivers/spi/spi_flash.c
parenta4c7b7a46b16de7dfa2c3f2fe1e1ce071328fa77 (diff)
src/drivers/spi: introduce AMIC support
Add support for the AMIC A25L032 flash chip. Change-Id: Ie8d441a923c6fbd18c16440b4571321652d934d5 Signed-off-by: Idwer Vollering <vidwer@gmail.com> Reviewed-on: http://review.coreboot.org/5252 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/drivers/spi/spi_flash.c')
-rw-r--r--src/drivers/spi/spi_flash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index ada4f3a42b..63093d2c1a 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -218,6 +218,9 @@ static struct {
struct spi_flash *(*probe) (struct spi_slave *spi, u8 *idcode);
} flashes[] = {
/* Keep it sorted by define name */
+#if CONFIG_SPI_FLASH_AMIC
+ { 0, 0x37, spi_flash_probe_amic, },
+#endif
#if CONFIG_SPI_FLASH_EON
{ 0, 0x1c, spi_flash_probe_eon, },
#endif