
21 Apr
2020
21 Apr
'20
1:14 a.m.
On Mon, Apr 20, 2020 at 8:09 PM Jagan Teki jagan@amarulasolutions.com wrote:
SiFive SPI controller has a proto bit field in frame format register which would be used to configure the SPI I/O protocol lines used on specific transfer.
Right now the driver is configuring this proto using slave->mode which is used for data transfer and opcode, address vary depending on the particular transfer at runtime.
Now the SPI framework supports per transfer I/O protocol lines, so use spi->proto instead of slave-mode.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
drivers/spi/spi-sifive.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
This patch does not apply on top of u-boot/master.
Please rebase and resend.
Regards, Bin