coreboot/src/include
Rizwan Qureshi f9f5093644 drivers/spi: Add controller protection type
Some SPI controllers support both READ and WRITE protection
add a variable to the protect API for the callers to specify
the kind of protection they want (Read/Write/Both).
Also, update the callers and protect API implementation.

BUG=None
BRANCH=None
TEST=test that the mrc cache is protected as expected on soraka.
Also tried if the read protection is applied correctly.

Change-Id: I093884c4768b08a378f21242ac82e430ac013d15
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/c/30559
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
2019-01-21 13:25:31 +00:00
..
boot write_tables: return a pointer to the table 2018-07-20 03:26:46 +00:00
console buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
cpu cpu/intel/car: Prepare for C_ENVIRONMENT_BOOTBLOCK 2019-01-08 15:33:47 +00:00
device buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
pc80 src: Add missing include <stdint.h> 2018-10-30 09:41:08 +00:00
smp
superio
sys
adainit.h
assert.h
b64_decode.h
base3.h
bcd.h
boardid.h ec/google/chromeec: Update google_chromeec_get_board_version prototype 2018-09-20 17:15:26 +00:00
boot_device.h
bootblock_common.h bootblock: Move function prototype 2018-12-30 11:32:08 +00:00
bootmem.h selfboot: remove bounce buffers 2018-10-11 17:42:41 +00:00
bootmode.h
bootstate.h buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
cbfs.h cbfs: Add cbfs_boot_load_file() 2018-04-17 10:46:13 +00:00
cbmem.h buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
cper.h include/cper.h: Add max of enum 2018-09-07 14:49:51 +00:00
delay.h
device_tree.h device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
dimm_info_util.h src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
edid.h
elog.h elog: make elog's SMM handler code follow everything else 2018-12-05 13:31:10 +00:00
endian.h
fallback.h
fit.h device_tree/fit: Constify data structures 2018-08-24 11:38:28 +00:00
fit_payload.h lib: Add FIT payload support 2018-06-19 18:10:05 +00:00
fmap.h
gic.h
gpio.h gpio: Change gpio_baseX_value() function return types to unsigned 2018-08-03 18:10:02 +00:00
halt.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
imd.h
inttypes.h
ip_checksum.h
kconfig.h
lib.h
list.h lib/devicetree: Integrate flattened devicetree support 2018-04-30 09:33:32 +00:00
main_decl.h
memlayout.h buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
memory_info.h SMBIOS: Remove duplicated smbios_memory_type enum 2018-11-16 15:48:04 +00:00
memrange.h lib/memrange: Introduce method to clone memrange 2018-04-11 15:11:04 +00:00
mrc_cache.h drivers/mrc_cache: Add missing include file to mrc_cache.h 2017-12-18 16:07:09 +00:00
nhlt.h lib/nhlt: add support for passing subsystem_id to endpoint's structure 2018-05-09 10:06:04 +00:00
option.h
program_loading.h include/program_loading: Add POSTCAR prog type 2018-11-09 12:00:40 +00:00
random.h
reg_script.h src: Get rid of device_t 2019-01-04 12:11:18 +00:00
region_file.h
reset.h reset: Finalize move to new API 2018-10-31 15:29:42 +00:00
rmodule.h src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
romstage_handoff.h src/*: normalize Google copyright headers 2018-09-28 07:13:00 +00:00
rtc.h
rules.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
sar.h vendorcode/google: support multiple SAR filenames 2018-12-17 14:26:10 +00:00
sdram_mode.h
smbios.h SMBIOS: Remove duplicated smbios_memory_type enum 2018-11-16 15:48:04 +00:00
smmstore.h smmstore: make smmstore's SMM handler code follow everything else 2018-12-05 13:31:22 +00:00
spd.h src/lib/dimm_info_util.c: Add methods to convert from SMBIOS to SPD 2018-04-11 14:41:59 +00:00
spd_bin.h
spd_ddr2.h
spi-generic.h drivers/spi: Add controller protection type 2019-01-21 13:25:31 +00:00
spi_bitbang.h spi: Add helper functions for bit-banging 2018-04-03 00:34:52 +00:00
spi_flash.h drivers/spi: Add controller protection type 2019-01-21 13:25:31 +00:00
stage_cache.h lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
stddef.h buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
stdlib.h src: Remove duplicated round up function 2018-11-29 12:17:45 +00:00
string.h string.h: Add isprint() 2019-01-16 16:47:20 +00:00
swab.h src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
symbols.h Introduce bootblock self-decompression 2018-05-22 02:44:14 +00:00
thread.h
timer.h timer: Add wait_us/wait_ms helper macros to wait for conditions 2018-11-07 06:17:37 +00:00
timestamp.h arch/x86 cbmem: Drop tests for LATE_CBMEM_INIT 2018-12-22 11:48:37 +00:00
trace.h
types.h src/include: Fix typo 2018-08-09 15:56:52 +00:00
uuid.h src/include: Introduce guid_t type 2018-09-06 10:24:09 +00:00
vbe.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
version.h
watchdog.h
wrdd.h