coreboot-kgpe-d16/src/soc/mediatek/mt8173
Furquan Shaikh c2973d196d spi: Get rid of SPI_ATOMIC_SEQUENCING
SPI_ATOMIC_SEQUENCING was added to accomodate spi flash controllers with
the ability to perform tx and rx of flash command and response at the
same time. Instead of introducing this notion at SPI flash driver layer,
clean up the interface to SPI used by flash.

Flash uses a command-response kind of communication. Thus, even though
SPI is duplex, flash command needs to be sent out on SPI bus and then
flash response should be received on the bus. Some specialized x86
flash controllers are capable of handling command and response in a
single transaction.

In order to support all the varied cases:
1. Add spi_xfer_vector that takes as input a vector of SPI operations
and calls back into SPI controller driver to process these operations.
2. In order to accomodate flash command-response model, use two vectors
while calling into spi_xfer_vector -- one with dout set to
non-NULL(command) and other with din set to non-NULL(response).
3. For specialized SPI flash controllers combine two successive vectors
if the transactions look like a command-response pair.
4. Provide helper functions for common cases like supporting only 2
vectors at a time, supporting n vectors at a time, default vector
operation to cycle through all SPI op vectors one by one.

BUG=chrome-os-partner:59832
BRANCH=None
TEST=Compiles successfully

Change-Id: I4c9e78c585ad95c40c0d5af078ff8251da286236
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17681
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-23 04:54:55 +01:00
..
include/soc spi: Get rid of flash_programmer_probe in spi_slave structure 2016-11-22 17:37:57 +01:00
bl31_plat_params.c mediatek/mt8173: Remove bl31 board parameters passing mechanism 2016-03-21 23:12:36 +01:00
bootblock.c
cbmem.c
da9212.c
ddp.c mediatek/mt8173: Add display driver 2016-05-09 08:31:49 +02:00
dramc_pi_basic_api.c src/soc: Add required space before opening parenthesis '(' 2016-08-31 20:09:42 +02:00
dramc_pi_calibration_api.c src/soc: Add required space before opening parenthesis '(' 2016-08-31 20:09:42 +02:00
dsi.c meditek/mt8173: dsi: set mipi pin driving control on 2016-07-26 17:48:38 +02:00
emi.c src/soc: Add required space before opening parenthesis '(' 2016-08-31 20:09:42 +02:00
flash_controller.c soc/mediatek/mt8173: Do not initialize static variables to 0 2016-12-07 17:15:56 +01:00
gpio.c
gpio_init.c
i2c.c
Kconfig spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
Makefile.inc mediatek/mt8173: Add display driver 2016-05-09 08:31:49 +02:00
memory.c
mmu_operations.c
mt6311.c
mt6391.c soc/mediatek/mt8173: mt6391: vcore sleep voltage should be 0.7V 2016-05-09 08:36:57 +02:00
mtcmos.c Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
pll.c
pmic_wrap.c src/soc: Remove unnecessary whitespace before "\n" and "\t" 2016-08-28 18:25:14 +02:00
rtc.c
soc.c soc: Remove newline from CHIP_NAME 2016-07-07 17:14:01 +02:00
spi.c spi: Get rid of SPI_ATOMIC_SEQUENCING 2016-12-23 04:54:55 +01:00
timer.c Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
uart.c
usb.c mediatek/mt8173: Check the right set of bits in USB controller 2016-12-16 15:54:39 +01:00
wdt.c google/oak: Log hardware watchdog in eventlog 2016-04-05 13:35:09 +02:00