coreboot-kgpe-d16/src/drivers/spi
Furquan Shaikh 94f8699d44 spi: Define and use spi_ctrlr structure
1. Define a new structure spi_ctrlr that allows platforms to define
callbacks for spi operations (claim bus, release bus, transfer).
2. Add a new member (pointer to spi_ctrlr structure) in spi_slave
structure which will be initialized by call to spi_setup_slave.
3. Define spi_claim_bus, spi_release_bus and spi_xfer in spi-generic.c
which will make appropriate calls to ctrlr functions.

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

Change-Id: Icb2326e3aab1e8f4bef53f553f82b3836358c55e
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/17684
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-05 03:29:04 +01:00
..
tpm spi: Pass pointer to spi_slave structure in spi_setup_slave 2016-12-05 03:28:06 +01:00
adesto.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
amic.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
atmel.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
boot_device_rw_nommap.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
cbfs_spi.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
eon.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
gigadevice.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
Kconfig spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
macronix.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
Makefile.inc spi: Define and use spi_ctrlr structure 2016-12-05 03:29:04 +01:00
spansion.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
spi-generic.c spi: Define and use spi_ctrlr structure 2016-12-05 03:29:04 +01:00
spi_flash.c spi: Pass pointer to spi_slave structure in spi_setup_slave 2016-12-05 03:28:06 +01:00
spi_flash_internal.h spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
spiconsole.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
sst.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
stmicro.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
winbond.c spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00