sb/intel/common/spi.c: Add a SPI write protect function
commit11fcb2bcc6293ee7d09cdf234dc92868664d0a22
authorArthur Heymans <arthur@aheymans.xyz>
Sun, 7 Jan 2018 19:46:31 +0000 (7 20:46 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 4 Jun 2018 08:27:08 +0000 (4 08:27 +0000)
treef718ead4b1beffeedd028202fc7b79d69d0bde6d
parenta59333941b7e7d8ab509472807d73b2682bdb2ac
sb/intel/common/spi.c: Add a SPI write protect function

Could be useful to write protect regions like for instance the
MRC_CACHE region.

Tested on Intel DG41WV (i82801gx) and Lenovo Thinkpad X220 (bd82x6x)
to write protect the mrc_cache region.

Change-Id: Id0a9a0de639c5d6761a77a56ceba6d89110a4ea1
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/23146
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/southbridge/intel/common/spi.c