sb/intel/spi: Check for the SPI lock bit during runtime
commit816aaba399537349b068afbd9bde702d00243f54
authorArthur Heymans <arthur@aheymans.xyz>
Tue, 11 Jun 2019 09:10:25 +0000 (11 11:10 +0200)
committerArthur Heymans <arthur@aheymans.xyz>
Tue, 18 Jun 2019 13:11:41 +0000 (18 13:11 +0000)
treea161c4dd3a5bb5f09f5337ce76b1732fd376feaf
parent21c5d43d723d5a52d5b4c0060a94d56bdf297424
sb/intel/spi: Check for the SPI lock bit during runtime

The SPI swseq controller can be locked in other parts of the code, for
instance when it's locked down in the finalize section. The driver
has to be made aware of that. The simpler solution is to not keep
track of the state and simply read out the lock bit on each SPI
transfer.

Change-Id: Ifcd5121b89d6f80fc1c1368786982d0d9fa1bf61
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33388
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
src/southbridge/intel/common/spi.c