coreboot/src
Nick Vaccaro b6f29c9bf4 soc/intel/common: add generic gpio lock mechanism
For added security, there are some gpios that an SoC will want to lock
once initially configured, such as gpios attached to non-host (x86)
controllers, so that they can't be recofigured at a later point in
time by rogue code.

Likewise, a mainboard may have some gpios connected to secure busses
and/or devices that they want to protect from being changed post
initial configuration.

This change adds a generic gpio locking mechanism that allows the SoC
to export a list of GPIOs to be locked down and allows the mainboard
to export a list of GPIOs that it wants locked down once
initialization is complete.

Use the SOC_INTEL_COMMON_BLOCK_SMM_LOCK_GPIO_PADS Kconfig option to
enable this feature.

BUG=b:201430600
TEST='emerge-brya coreboot chromeos-bootimage', flash and verify
brya0 boots successfully to kernel.

Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Change-Id: I42979fb89567d8bcd9392da4fb8c4113ef427b14
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58351
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2021-12-07 00:17:27 +00:00
..
acpi acpi,Makefile: Add preload_acpi_dsdt 2021-11-29 20:35:33 +00:00
arch arch/{arm,arm64,ppc64,riscv}: Add noop cpu_relax 2021-11-25 10:42:17 +00:00
commonlib cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
console
cpu northbridge/amd/pi/00730F01: enable PARALLEL_MP 2021-12-06 12:38:36 +00:00
device device/pci_device.c: Scan only one device for PCIe 2021-11-29 03:19:51 +00:00
drivers drivers/net/r8168: Add support for Realtek RT8125 2021-12-03 15:49:02 +00:00
ec ec/google/chromeec: Support 5 temperature sensors 2021-11-26 11:19:52 +00:00
include cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
lib cbfs: Remove deprecated APIs 2021-12-06 12:36:45 +00:00
mainboard mb/google/brya/var/gimble: Configure Acoustic noise mitigation 2021-12-06 23:21:10 +00:00
northbridge northbridge/amd/pi/00730F01: enable PARALLEL_MP 2021-12-06 12:38:36 +00:00
security x86_64 assembly: Don't touch %gs 2021-12-06 12:37:48 +00:00
soc soc/intel/common: add generic gpio lock mechanism 2021-12-07 00:17:27 +00:00
southbridge lippert/frontrunner-af: Use common cimx/sb800 ASL 2021-11-28 16:40:03 +00:00
superio superio/smsc/sch5545: Disable PS/2 lines isolation during init 2021-11-27 14:23:08 +00:00
vendorcode vc/mediatek/mt8195: Fix rank1 CKE setting for single-rank DRAM 2021-12-01 09:48:17 +00:00
Kconfig Kconfig: Show console DEBUG_FUNC if OVERRIDE_LOGLEVEL is set 2021-11-13 00:20:11 +00:00