summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2014-09-12 18:58:47 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-08 08:47:57 +0200
commit558614d4d38d149865c2186802548eec55a03082 (patch)
treee3ca66bc5efc36e2eef49373cd12e3c0802301cd /payloads
parent0edf419852501583985475ae7084e508dc66eb8f (diff)
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: 6a14f5ff8ed04d62e8de6ad2f468b763ffb8213c 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>
Diffstat (limited to 'payloads')
0 files changed, 0 insertions, 0 deletions