coreboot/src/soc
David Hendricks 558614d4d3 rk3288: Re-write spi_xfer() to support full duplex
This change re-writes the spi_xfer() function to support full-duplex
transfers.

Even though the code looks much different, the same basic algorithm
for setting up the transfer is used. The main difference is that
reads from rxdr and writes to txdr occur simultaneously and accounting
is more complicated, so I separated the higher-level accounting
portion from the low-level FIFO handling portion to simplify things.

BUG=chrome-os-partner:31850
BRANCH=none
TEST=Loaded content from SPI ROM fine, needs testing w/ EC

Change-Id: Ic109a02daf52ba694b63a73fec1a72b3c5c0fd71
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 6a14f5ff8e
Original-Signed-off-by: David Hendricks <dhendrix@chromium.org>
Original-Change-Id: I33d2f5179360baf94627c86b57d12f032897caf5
Original-Reviewed-on: https://chromium-review.googlesource.com/218881
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/9338
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-08 08:47:57 +02:00
..
imgtec pistachio: Change all SoC headers to <soc/headername.h> system 2015-04-07 19:38:03 +02:00
intel broadwell: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:23:23 +02:00
nvidia tegra132: Provide weak implementation of usb_setup_utmip in funitcfg.c 2015-04-07 22:20:22 +02:00
qualcomm storm: fix CBFS definitions 2015-04-07 23:02:08 +02:00
rockchip rk3288: Re-write spi_xfer() to support full duplex 2015-04-08 08:47:57 +02:00
samsung exynos5420: Change all SoC headers to <soc/headername.h> system 2015-04-07 18:48:30 +02:00
ucb kconfig: drop intermittend forwarder files 2015-04-07 17:40:28 +02:00
Makefile.inc imgtec/danube: Add support for ImgTec Danube SoC 2015-03-21 16:57:08 +01:00