Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33055 )
Change subject: soc/sifive/fu540: add code for spi and map flash to memory spaces
......................................................................
Patch Set 12:
(1 comment)
https://review.coreboot.org/c/coreboot/+/33055/9/src/soc/sifive/fu540/spi.c
File src/soc/sifive/fu540/spi.c:
https://review.coreboot.org/c/coreboot/+/33055/9/src/soc/sifive/fu540/spi.c@...
PS9, Line 78: spi_tx(spictrl, out);
I tried to look at the spi-generic.h file, both xfer() and xfer_vector() work in full duplex. […]
I'm sorry that's not what I was trying to explain.
Check the other xfer impementations.
They all transmit "bytesouts" bytes and discard the received byte,
then they receive "bytesin" bytes by transmitting 0.
It's done like in the code below.
It never touches din and dout at the same time.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33055
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I106688c65ac7dd70be7479dc4691797b700682d9
Gerrit-Change-Number: 33055
Gerrit-PatchSet: 12
Gerrit-Owner: Xiang Wang
wxjstz@126.com
Gerrit-Reviewer: Jonathan Neuschäfer
j.neuschaefer@gmx.net
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Philipp Hug
philipp@hug.cx
Gerrit-Reviewer: Xiang Wang
wxjstz@126.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: ron minnich
rminnich@gmail.com
Gerrit-CC: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Thu, 04 Jul 2019 06:53:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Rudolph
patrick.rudolph@9elements.com
Comment-In-Reply-To: Xiang Wang
wxjstz@126.com
Gerrit-MessageType: comment