From d19d27ac3f5b45572092e84dc9ff0bf9d169c20f Mon Sep 17 00:00:00 2001 From: Wisley Chen Date: Tue, 31 Aug 2021 19:07:19 +0600 Subject: mb/google/brya/var/redrix: Add privacy screen Add privacy screen support. BUG=b:198188272 TEST=build and check SSDT Signed-off-by: Wisley Chen Change-Id: Ied9d9138f68ba45c4d746aed1cd3f828d4ab7fae Reviewed-on: https://review.coreboot.org/c/coreboot/+/57289 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/Kconfig.name | 1 + .../google/brya/variants/redrix/overridetree.cb | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name index 902d13ff88..c549bb021f 100644 --- a/src/mainboard/google/brya/Kconfig.name +++ b/src/mainboard/google/brya/Kconfig.name @@ -34,6 +34,7 @@ config BOARD_GOOGLE_REDRIX select DRIVERS_INTEL_MIPI_CAMERA select SOC_INTEL_COMMON_BLOCK_IPU select DRIVERS_GENESYSLOGIC_GL9755 + select DRIVERS_GFX_GENERIC config BOARD_GOOGLE_KANO bool "-> Kano" diff --git a/src/mainboard/google/brya/variants/redrix/overridetree.cb b/src/mainboard/google/brya/variants/redrix/overridetree.cb index 450cef8fff..9f28dc2d42 100644 --- a/src/mainboard/google/brya/variants/redrix/overridetree.cb +++ b/src/mainboard/google/brya/variants/redrix/overridetree.cb @@ -16,6 +16,10 @@ fw_config option LTE_USB 1 option LTE_PCIE 2 end + field EPS 10 10 + option PRIVACY_SCREEN_ABSENT 0 + option PRIVACY_SCREEN 1 + end end chip soc/intel/alderlake register "SaGv" = "SaGv_Enabled" @@ -52,6 +56,19 @@ chip soc/intel/alderlake }, }" device domain 0 on + device ref igpu on + chip drivers/gfx/generic + register "device_count" = "1" + register "device[0].name" = ""LCD"" + # Internal panel on the first port of the graphics chip + register "device[0].addr" = "0x80010400" + register "device[0].privacy.enabled" = "1" + register "device[0].privacy.gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H21)" + device generic 0 on + probe EPS PRIVACY_SCREEN + end + end + end # Integrated Graphics Device device ref dtt on chip drivers/intel/dptf ## sensor information -- cgit v1.2.3