aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/usb/acpi/chip.h
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2020-10-05 12:44:18 +0000
committerPatrick Georgi <pgeorgi@google.com>2020-11-09 07:40:52 +0000
commitdf79757a3f3d969b00fa198d50efcdd6517e00fe (patch)
tree81d14c7b16bd7f18241256577167a96506d50740 /src/drivers/usb/acpi/chip.h
parent8af39ff63364e71b142e5ca4ce3d560ac651af08 (diff)
drivers/usb/acpi: Add support for privacy_gpio
Some devices, such as cameras, can implement a physical switch to disable the input on demand. Think of it like the typical privacy sticker on the notebooks, but more elegant. In order to notify the system about the status this feature, a GPIO is typically used. The map between a GPIO and the feature is done via ACPI, the same way as the reset_gpio works. This patch implements an extra field for the described privacy gpio. This gpio does not require any extra handling from the power management. BUG=b:169840271 Change-Id: Idcc65c9a13eca6f076ac3c68aaa1bed3c481df3d Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46961 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/usb/acpi/chip.h')
-rw-r--r--src/drivers/usb/acpi/chip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/usb/acpi/chip.h b/src/drivers/usb/acpi/chip.h
index 8afdf6fc8e..73c69cc89f 100644
--- a/src/drivers/usb/acpi/chip.h
+++ b/src/drivers/usb/acpi/chip.h
@@ -59,6 +59,13 @@ struct drivers_usb_acpi_config {
unsigned int enable_delay_ms;
/* Delay to be inserted after device is disabled. */
unsigned int enable_off_delay_ms;
+
+ /*
+ * Define a GPIO that shows the privacy status of the USB device.
+ * E.g. On a camera: if it is one, it is recording black frames.
+ * E.g. On a mic: if it is one, it is recording white-noise.
+ */
+ struct acpi_gpio privacy_gpio;
};
#endif /* __USB_ACPI_CHIP_H__ */