summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRen Kuo <ren.kuo@quanta.corp-partner.google.com>2022-11-11 13:25:45 +0800
committerMartin L Roth <gaumless@gmail.com>2022-11-12 23:09:07 +0000
commitea7c727a9402ea0c9012538d3ba0962700e8a5d6 (patch)
tree09a57b9e88ff24f4e1f138f351ae9cb6e1ae65cc
parent93001ef9b786b5214d47cdf8d3a0c38f79681aa7 (diff)
mb/google/brya/variants/volmar: Disable the unused FP pads
Disable the unused fingerprinter(FP) gpio for zavala by fw_config FPMCU_MASK field. BUG=b:250807253 TEST=build firmware and veriify the FP function on volmar DUT Signed-off-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com> Change-Id: I0af1b7c3e4829ecab98525ead4f078c3eb6485d0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/69465 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/brya/variants/volmar/fw_config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/volmar/fw_config.c b/src/mainboard/google/brya/variants/volmar/fw_config.c
index 375dca2e2a..38b9ace0c9 100644
--- a/src/mainboard/google/brya/variants/volmar/fw_config.c
+++ b/src/mainboard/google/brya/variants/volmar/fw_config.c
@@ -63,6 +63,12 @@ static const struct pad_config bt_i2s_disable_pads[] = {
PAD_NC(GPP_VGPIO_37, NONE),
};
+static const struct pad_config fp_disable_pads[] = {
+ PAD_NC(GPP_D0, NONE), /* D0 : ISH_GP0 ==> PCH_FP_BOOT0 */
+ PAD_NC(GPP_D1, NONE), /* D1 : ISH_GP1 ==> FP_RST_ODL */
+ PAD_NC(GPP_D2, NONE), /* D2 : ISH_GP2 ==> EN_FP_PWR */
+};
+
static void fw_config_handle(void *unused)
{
if (!fw_config_is_provisioned() || fw_config_probe(FW_CONFIG(AUDIO, AUDIO_UNKNOWN))) {
@@ -83,5 +89,10 @@ static void fw_config_handle(void *unused)
printk(BIOS_INFO, "Disabling BT offload\n");
gpio_configure_pads(bt_i2s_disable_pads, ARRAY_SIZE(bt_i2s_disable_pads));
}
+
+ if (fw_config_probe(FW_CONFIG(FPMCU_MASK, FPMCU_DISABLED))) {
+ printk(BIOS_INFO, "Disabling FP pads\n");
+ gpio_configure_pads(fp_disable_pads, ARRAY_SIZE(fp_disable_pads));
+ }
}
BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, fw_config_handle, NULL);