coreboot/src
David Hendricks f101bbe4f0 spi_flash: Differentiate between atomic/manual sequencing
This adds a wrapper function and a Kconfig variable to differentiate
between SPI controllers which use atomic cycle sequencing versus
those where the transaction sequence is controlled manually. Currently
this boils down to x86 vs. non-x86.

Yes, it's hideous. The current API only worked because, for better or
worse, x86 platforms have been homogeneous in this regard since they
started using SPI as an alternative to FWH for boot flash. Now that
we have non-x86 platforms which use general purpose SPI controllers,
we should overhaul the entire SPI infrastructure to be more adaptable.

BUG=none
BRANCH=none
TEST=tested on nyan and link
Signed-off-by: David Hendricks <dhendrix@chromium.org>

Original-Change-Id: If8ccc9400a9d04772a195941a42bc82d5ecc1958
Original-Reviewed-on: https://chromium-review.googlesource.com/195283
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
Original-Commit-Queue: David Hendricks <dhendrix@chromium.org>
Original-Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 4170c59d06)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: I54e2d3d9f9a0153a56f7a51b80f6ee6d997ad358
Reviewed-on: http://review.coreboot.org/7828
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2014-12-17 04:51:21 +01:00
..
arch arm: Add support for a preram_cbmem_console symbol. 2014-12-15 23:27:53 +01:00
console ipq8064: prepare UART driver for use in coreboot 2014-12-05 20:22:47 +01:00
cpu Drop SC520 and related boards 2014-12-16 21:18:43 +01:00
device ddr3: Plumber DIMM type to parsed structure. 2014-12-07 15:18:41 +01:00
drivers spi_flash: Differentiate between atomic/manual sequencing 2014-12-17 04:51:21 +01:00
ec i2c: Replace the i2c API. 2014-12-16 00:02:43 +01:00
include elog: Do not attempt to init SPI 2014-12-17 02:12:03 +01:00
lib edid: initialize has_valid_detailed_blocks as 1 2014-12-17 04:51:10 +01:00
mainboard blaze: Change samsung RAMCODE to samsung-2GB-204/samsung-4GB-204 2014-12-16 23:31:29 +01:00
northbridge Drop GX1, CS5330 and related boards 2014-12-16 21:17:36 +01:00
soc tegra124: change PLLD VCO calculation algorithm 2014-12-17 01:07:53 +01:00
southbridge southbridge/sis: Spelling/comment fixes 2014-12-17 02:30:12 +01:00
superio Drop obsolete SuperIOs used by GX1 systems only 2014-12-16 21:18:07 +01:00
vendorcode amd/agesa/f*/Lib/amdlib.c: Integer overflow in loop construct 2014-12-16 17:21:44 +01:00
Kconfig Kconfig: Remove ACPI_SSDTX_NUM. 2014-12-07 21:06:34 +01:00