coreboot/src/include
Furquan Shaikh 9a2bc7d727 UPSTREAM: 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.

CQ-DEPEND=CL:417080,CL:417087,CL:417958
BUG=chrome-os-partner:59832
BRANCH=None
TEST=Compiles successfully

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>

Change-Id: Icb2326e3aab1e8f4bef53f553f82b3836358c55e
Reviewed-on: https://chromium-review.googlesource.com/417081
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-08 12:30:16 -08:00
..
boot
console UPSTREAM: drivers/intel/fsp2_0: track end of firmware notifications 2016-11-14 19:59:03 -08:00
cpu UPSTREAM: x86 BIST: Fix missing include 2016-11-30 02:53:12 -08:00
device UPSTREAM: AGESA binaryPI: Fix PCI ID namespace 2016-11-29 17:39:07 -08:00
pc80 UPSTREAM: rtc: Check update-in-progress bit 2016-11-19 03:17:58 -08:00
smp UPSTREAM: src/include: Improve code formatting 2016-09-07 11:31:21 -07:00
superio
sys
tpm_lite UPSTREAM: vboot: TPM2 - report attempts to re-create NVRAM spaces 2016-11-16 07:08:26 -08:00
adainit.h UPSTREAM: Add option to use Ada code in ramstage 2016-11-07 11:02:52 -08:00
antirollback.h UPSTREAM: src/vboot: mark factory_initialze_tpm() as static 2016-11-14 19:58:42 -08:00
assert.h
b64_decode.h
base3.h
bcd.h
boardid.h
boot_device.h UPSTREAM: lib/boot_device: add RW boot device construct 2016-08-19 14:20:23 -07:00
bootblock_common.h
bootmem.h
bootmode.h UPSTREAM: vboot: Add new function for logging recovery mode switches 2016-11-14 19:59:45 -08:00
bootstate.h
cbfs.h UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-10 18:31:17 -08:00
cbmem.h UPSTREAM: arch/x86,lib: make cbmem console work in postcar stage 2016-09-21 19:36:55 -07:00
delay.h
edid.h UPSTREAM: edid: Fix a function signature 2016-09-09 12:33:33 -07:00
elog.h UPSTREAM: soc/intel/common: Add save/restore for variable MRC data 2016-12-01 03:34:00 -08:00
endian.h
fallback.h
fmap.h UPSTREAM: lib/fmap: provide RW region device support 2016-08-22 00:11:45 -07:00
gic.h UPSTREAM: src/include: Capitalize CPU, RAM and ROM 2016-08-04 23:37:08 -07:00
gpio.h UPSTREAM: lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 19:29:24 -07:00
halt.h UPSTREAM: lib: add poweroff() declaration 2016-07-15 16:50:22 -07:00
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h UPSTREAM: lib: remove ulzma() 2016-07-07 01:08:55 -07:00
main_decl.h
memlayout.h UPSTREAM: memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-24 17:40:09 -07:00
memory_info.h
memrange.h
nhlt.h UPSTREAM: lib/nhlt: add support for setting the oem_revision 2016-12-02 14:23:05 -08:00
option.h
program_loading.h UPSTREAM: ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-10 18:31:17 -08:00
reg_script.h
reset.h UPSTREAM: src/include: Improve code formatting 2016-09-07 11:31:21 -07:00
rmodule.h UPSTREAM: src/include: Capitalize CPU, RAM and ROM 2016-08-04 23:37:08 -07:00
romstage_handoff.h UPSTREAM: lib: put romstage_handoff implementation in own compilation unit 2016-12-02 14:23:00 -08:00
rtc.h
rules.h UPSTREAM: arch/arm: Add armv7-r configuration 2016-09-13 22:20:12 -07:00
sdram_mode.h
smbios.h UPSTREAM: src/include: Add space around operators 2016-09-22 08:54:43 -07:00
spd.h UPSTREAM: SPD: Add CAS latency 2 2016-07-12 22:34:24 -07:00
spd_bin.h UPSTREAM: lib: Add library to handle SPD data in CBFS or DIMM 2016-12-01 03:34:21 -08:00
spd_cache.h
spd_ddr2.h UPSTREAM: src/include: Add space around operators 2016-09-22 08:54:43 -07:00
spi-generic.h UPSTREAM: spi: Define and use spi_ctrlr structure 2016-12-08 12:30:16 -08:00
spi_flash.h UPSTREAM: spi_flash: Move spi flash opcodes to spi_flash.h 2016-12-04 01:20:13 -08:00
stage_cache.h UPSTREAM: arch/x86: cache postcar in stage cache 2016-12-02 14:23:02 -08:00
stddef.h
stdlib.h Add DIV_ROUND_CLOSEST 2016-09-08 06:15:05 -07:00
string.h UPSTREAM: string.h: only guard snprintf() with __ROMCC__ 2016-11-10 18:31:10 -08:00
swab.h
symbols.h UPSTREAM: RISCV: Clean up the common architectural code 2016-10-24 23:31:14 -07:00
thread.h
timer.h
timestamp.h
tpm.h
trace.h
types.h
vbe.h UPSTREAM: src/include: Add space around operators 2016-09-22 08:54:43 -07:00
version.h
watchdog.h UPSTREAM: src/include: Improve code formatting 2016-09-07 11:31:21 -07:00
wrdd.h UPSTREAM: Remove extra newlines from the end of all coreboot files. 2016-08-04 23:36:56 -07:00