Nick Vaccaro has submitted this change. ( https://review.coreboot.org/c/coreboot/+/58353 )
Change subject: mb/google/brya: add list of gpios to lock ......................................................................
mb/google/brya: add list of gpios to lock
Add a list of gpios to lock for brya. This currently includes GPIOs connected to the FPMCU.
BUG=b:201430600 TEST='emerge-brya coreboot chromeos-bootimage', flash and verify that brya0 boots successfully to kernel.
Change-Id: Idea42a58575c280be0770d38f934acdf5508c45d Signed-off-by: Nick Vaccaro nvaccaro@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/58353 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Karthik Ramasubramanian kramasub@google.com Reviewed-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/mainboard/google/brya/variants/baseboard/brya/gpio.c 1 file changed, 18 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Karthik Ramasubramanian: Looks good to me, approved Tim Wawrzynczak: Looks good to me, approved
diff --git a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c index a28f873..0583930 100644 --- a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c +++ b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c @@ -456,3 +456,21 @@ *num = 0; return NULL; } + +static struct gpio_lock_config lockable_brya_gpios[] = { + { GPP_B6, GPIO_LOCK_CONFIG }, /* PCH_I2C_TPM_SCL */ + { GPP_B7, GPIO_LOCK_CONFIG }, /* PCH_I2C_TPM_SDA */ + { GPP_A13, GPIO_LOCK_CONFIG }, /* GSC_PCH_INT_ODL */ + { GPP_E15, GPIO_LOCK_CONFIG }, /* PCH_WP_OD */ + { GPP_F11, GPIO_LOCK_CONFIG }, /* GSPI_PCH_CLK_FPMCU_R */ + { GPP_F13, GPIO_LOCK_CONFIG }, /* GSPI_PCH_D1_FPMCU_D0 */ + { GPP_F12, GPIO_LOCK_CONFIG }, /* GSPI_PCH_D0_FPMCU_D1_R */ + { GPP_F15, GPIO_LOCK_CONFIG }, /* FPMCU_INT_L */ + { GPP_F16, GPIO_LOCK_CONFIG }, /* GSPI_PCH_CS_FPMCU_R_L */ +}; + +const struct gpio_lock_config *mb_gpio_lock_config(size_t *num) +{ + *num = ARRAY_SIZE(lockable_brya_gpios); + return lockable_brya_gpios; +}
15 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one.