diff options
author | Rajat Jain <rajatja@google.com> | 2020-02-26 23:28:02 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-02 11:42:06 +0000 |
commit | 7ef06b0234706455d4f24375a9389d718e34dbbb (patch) | |
tree | fa030e5e8679451a4bff80cebfe90fe69dae457d /src/drivers/gfx/generic/chip.h | |
parent | 310623b2dd192a44caa1a3ee9471127ec3d6cf5e (diff) |
drivers/gfx/generic: Add support for gpio based EPS
Add support to control EPS via a PCH gpio
Change-Id: I6f570fd43e1649fb23255b0890e01086e34f844a
Signed-off-by: Rajat Jain <rajatja@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39154
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'src/drivers/gfx/generic/chip.h')
-rw-r--r-- | src/drivers/gfx/generic/chip.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/gfx/generic/chip.h b/src/drivers/gfx/generic/chip.h index 5e855e3853..714a8aba84 100644 --- a/src/drivers/gfx/generic/chip.h +++ b/src/drivers/gfx/generic/chip.h @@ -16,6 +16,8 @@ #ifndef __DRIVERS_GFX_GENERIC_CHIP_H__ #define __DRIVERS_GFX_GENERIC_CHIP_H__ +#include <arch/acpi_device.h> + /* Config for electronic privacy screen */ struct drivers_gfx_generic_privacy_screen_config { /* Is privacy screen available on this graphics device */ @@ -28,6 +30,12 @@ struct drivers_gfx_generic_privacy_screen_config { const char *enable_function; /* ACPI namespace path to privacy screen disable function */ const char *disable_function; + /* + * GPIO used for controlling the privacy screen. If provided, + * the gpio mechanism takes preference over the functions ptrs + * above, if any (GPIO functions override the function ptrs). + */ + struct acpi_gpio gpio; }; /* Config for an output device as defined in section A.5 of the ACPI spec */ @@ -53,4 +61,6 @@ struct drivers_gfx_generic_config { struct drivers_gfx_generic_device_config device[5]; }; +extern struct device *find_gfx_dev(void); + #endif /* __DRIVERS_GFX_GENERIC_CHIP_H__ */ |