Tyler Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69138 )
Change subject: [Test] mb/google/nissa/craask: Disable stylus GPIO pins based on fw_config ......................................................................
[Test] mb/google/nissa/craask: Disable stylus GPIO pins based on fw_config
BUG: none Test: none Change-Id: I7e3a2583187c8a8e2616a5272b5a7a61debe982b --- M src/mainboard/google/brya/variants/craask/fw_config.c 1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/69138/1
diff --git a/src/mainboard/google/brya/variants/craask/fw_config.c b/src/mainboard/google/brya/variants/craask/fw_config.c index 602eeab..5b8f058 100644 --- a/src/mainboard/google/brya/variants/craask/fw_config.c +++ b/src/mainboard/google/brya/variants/craask/fw_config.c @@ -42,6 +42,13 @@ PAD_NC_LOCK(GPP_H13, NONE, LOCK_CONFIG), };
+static const struct pad_config stylus_disable_pads[] = { + /* F13 : SOC_PEN_DETECT_R_ODL */ + PAD_NC_LOCK(GPP_F13, NONE, LOCK_CONFIG), + /* F15 : SOC_PEN_DETECT_ODL */ + PAD_NC_LOCK(GPP_F15, NONE, LOCK_CONFIG), +}; + void fw_config_gpio_padbased_override(struct pad_config *padbased_table) { if (!fw_config_probe(FW_CONFIG(DB_USB, DB_1C_LTE))) { @@ -62,4 +69,9 @@ ARRAY_SIZE(sd_disable_pads)); }
+ if (fw_config_probe(FW_CONFIG(STYLUS, STYLUS_ABSENT))) { + printk(BIOS_INFO, "Disable Stylus GPIO pins.\n"); + gpio_padbased_override(padbased_table, stylus_disable_pads, + ARRAY_SIZE(stylus_disable_pads)); + } }