From bd0ba391720920afe231a033f0af7383d1511684 Mon Sep 17 00:00:00 2001 From: Frank Wu Date: Mon, 14 Mar 2022 15:52:00 +0800 Subject: mb/google/brya/var/banshee: Add camera privacy setting Using the GPP_F19 as privacy switch for camera in banshee. BUG=b:223712143, b:216110896 TEST=emerge-brya coreboot chromeos-bootimage Signed-off-by: Frank Wu Change-Id: I67d65347ceac7152f1951018a633a2e93ee84e14 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62780 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/mainboard/google/brya/variants/banshee/gpio.c | 4 ++-- src/mainboard/google/brya/variants/banshee/overridetree.cb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/brya/variants/banshee/gpio.c b/src/mainboard/google/brya/variants/banshee/gpio.c index 9bf6518da0..75a274336d 100644 --- a/src/mainboard/google/brya/variants/banshee/gpio.c +++ b/src/mainboard/google/brya/variants/banshee/gpio.c @@ -180,8 +180,8 @@ static const struct pad_config override_gpio_table[] = { PAD_NC_LOCK(GPP_F16, NONE, LOCK_CONFIG), /* F17 : THC1_SPI2_RST# ==> EC_PCH_INT_ODL */ /* F18 : THC1_SPI2_INT# ==> EC_IN_RW_OD */ - /* F19 : SRCCLKREQ6# ==> NC */ - PAD_NC(GPP_F19, NONE), + /* F19 : SRCCLKREQ6# ==> CAM_SW */ + PAD_CFG_GPI_INT(GPP_F19, NONE, PLTRST, EDGE_BOTH), /* F20 : EXT_PWR_GATE# ==> NC */ PAD_NC(GPP_F20, NONE), /* F21 : EXT_PWR_GATE2# ==> NC */ diff --git a/src/mainboard/google/brya/variants/banshee/overridetree.cb b/src/mainboard/google/brya/variants/banshee/overridetree.cb index 8729b3a599..9601d0579b 100644 --- a/src/mainboard/google/brya/variants/banshee/overridetree.cb +++ b/src/mainboard/google/brya/variants/banshee/overridetree.cb @@ -312,6 +312,7 @@ chip soc/intel/alderlake chip drivers/usb/acpi register "desc" = ""USB2 Camera"" register "type" = "UPC_TYPE_INTERNAL" + register "privacy_gpio" = "ACPI_GPIO_INPUT_ACTIVE_LOW(GPP_F19)" device ref usb2_port6 on end end chip drivers/usb/acpi -- cgit v1.2.3