soc/sifive/fu540: test and fix code of fu540 spi
commit4a8fba9ea5a07f9a0857d299eb5b52d7f88b8784
authorXiang Wang <merle@hardenedlinux.org>
Tue, 27 Aug 2019 07:28:26 +0000 (27 15:28 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 16 Oct 2019 14:12:20 +0000 (16 14:12 +0000)
treeab069bb487ee8386b203ef58fcc6a4067375121e
parentee0b7ad683fabafef228c624348057d31fe1e6d2
soc/sifive/fu540: test and fix code of fu540 spi

I tested the SPI through the SD card and fixed sd card communication problem.
Added two functions (claim_bus and release_bus). Setting CS signal is invalid by
default.

Change-Id: I60033a148c21bbd5b4946580f6cab0b439d346c6
Signed-off-by: Xiang Wang <merle@hardenedlinux.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35117
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
src/soc/sifive/fu540/spi.c