From de6869a3350041c6823427787971efc9fcf469b8 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Fri, 22 Nov 2013 18:41:38 -0800 Subject: [PATCH] spi: add Kconfig variable for dual-output read enable Add a Kconfig variable so that driver code knows whether or not to use dual-output reads. BUG=none BRANCH=none TEST=built and booted on Nyan Signed-off-by: David Hendricks Change-Id: I31d23bfedd91521d719378ec573e33b381ebd2c5 Reviewed-on: https://chromium-review.googlesource.com/177834 Reviewed-by: David Hendricks Commit-Queue: David Hendricks Tested-by: David Hendricks --- src/drivers/spi/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/drivers/spi/Kconfig b/src/drivers/spi/Kconfig index a99199ab76..b4c494e15b 100644 --- a/src/drivers/spi/Kconfig +++ b/src/drivers/spi/Kconfig @@ -94,3 +94,12 @@ config SPI_FLASH_GIGADEVICE help Select this option if your chipset driver needs to store certain data in the SPI flash and your SPI flash is made by Gigadevice. + +config SPI_FLASH_FAST_READ_DUAL_OUTPUT_3B + bool + default n + depends on SPI_FLASH + help + Select this option if your SPI flash supports the fast read dual- + output command (opcode 0x3b) where the opcode and address are sent + to the chip on MOSI and data is received on both MOSI and MISO.