coreboot-kgpe-d16/src/drivers
David Hendricks 1101a71219 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.

Signed-off-by: David Hendricks <dhendrix@chromium.org>

Old-Change-Id: I31d23bfedd91521d719378ec573e33b381ebd2c5
Reviewed-on: https://chromium-review.googlesource.com/177834
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit de6869a3350041c6823427787971efc9fcf469b8)

tegra124: implement x2 mode for SPI transfers on CBFS media

This implements x2 mode when reading CBFS media over SPI.

In theory this effectively doubles our throughput, though the initial
results were almost negligibly better. Using a logic analyzer we see
a pattern of 12 clocks, ~70ns delay, 4 clocks, ~310ns delay. So if we
want to see further gains here then we'll probably need to tune AHB
arbitration and utilization to eliminate bubbles/stalls when copying
from APB DMA.

Signed-off-by: David Hendricks <dhendrix@chromium.org>

Old-Change-Id: I33d6ae30923fc42b4dc7103d029085985472cf3e
Reviewed-on: https://chromium-review.googlesource.com/177835
Reviewed-by: Tom Warren <twarren@nvidia.com>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 29289223362b12e84da5cbb130f285c6b9d314cc)

nyan: turn on dual-output reads for SPI flash

Nyan's SPI chip is capable of dual-output reads, so let's use it.

Signed-off-by: David Hendricks <dhendrix@chromium.org>

Old-Change-Id: I51a97c05aa25442d8ddcc4e3e35a2507d91a64df
Reviewed-on: https://chromium-review.googlesource.com/177836
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit 62de0889a9cfc5686800645d05e21e272e4beb5c)

Squashed three commits to enable dual output spi reads for nyan.
Also fixed the spi_xfer interface that has been updated to use bytes
instead of bits.

Change-Id: I750a177576175b297f61e1b10eac6db15e75aa6e
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6909
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2014-09-17 19:56:16 +02:00
..
ati drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
dec drivers,Makefile.inc: Trivial - drop trailing blank lines at EOF 2014-07-17 02:19:46 +02:00
elog spi: Remove unused parameters from spi_flash_probe and setup_spi_slave. 2014-07-05 11:36:11 +02:00
emulation qemu: fix cirrus build 2014-08-28 07:50:53 +02:00
generic Drop drivers/generic/debug 2014-04-22 13:42:48 +02:00
i2c tpm: Clean up I2C TPM driver 2014-09-10 19:37:49 +02:00
ics Get rid of drivers class 2012-11-27 22:00:49 +01:00
intel intel/gma: consolidate vbt code 2014-09-13 14:27:03 +02:00
ipmi Get rid of drivers class 2012-11-27 22:00:49 +01:00
lenovo lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00
maxim max77802: update header 2013-12-21 13:29:42 +01:00
net drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
parade Pit: move parade writes to mainboard.c 2013-12-21 08:06:52 +01:00
pc80 tpm: Clean up I2C TPM driver 2014-09-10 19:37:49 +02:00
sil Get rid of drivers class 2012-11-27 22:00:49 +01:00
spi spi: add Kconfig variable for dual-output read enable 2014-09-17 19:56:16 +02:00
ti [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
trident drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
uart ARM: Generalize armv7 as arm. 2014-09-08 18:59:23 +02:00
usb drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
xpowers xpowers/axp209: Add helper to set voltages from devicetree config 2014-01-13 06:24:54 +01:00
Kconfig lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00
Makefile.inc lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00