From b3b17b2a3f1c12ebd4189da9993c97690694eb4b Mon Sep 17 00:00:00 2001 From: Kevin Chiu Date: Sun, 16 Jan 2022 23:42:22 +0800 Subject: [PATCH] mb/google/guybrush/var/nipperkin: Add _HID for privacy screen device BUG=b:204401306 BRANCH=guybrush TEST=emerge-guybrush coreboot dump SSDT, see _HID instead of _ADR Change-Id: I3f45fabac1548cca39379f91cc42fed0cd04f8a3 Signed-off-by: Kevin Chiu Reviewed-on: https://review.coreboot.org/c/coreboot/+/61125 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/mainboard/google/guybrush/Kconfig.name | 1 + .../guybrush/variants/nipperkin/overridetree.cb | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/mainboard/google/guybrush/Kconfig.name b/src/mainboard/google/guybrush/Kconfig.name index e8b1b32a1d..a682c76079 100644 --- a/src/mainboard/google/guybrush/Kconfig.name +++ b/src/mainboard/google/guybrush/Kconfig.name @@ -7,6 +7,7 @@ config BOARD_GOOGLE_GUYBRUSH config BOARD_GOOGLE_NIPPERKIN bool "-> Nipperkin" select BOARD_GOOGLE_BASEBOARD_GUYBRUSH + select DRIVERS_GFX_GENERIC config BOARD_GOOGLE_DEWATT bool "-> Dewatt" diff --git a/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb b/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb index a22f36d6bd..b49c8a6ed7 100644 --- a/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb +++ b/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb @@ -178,6 +178,19 @@ chip soc/amd/cezanne probe STORAGE STORAGE_SSD end # NVMe device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A + device ref gfx on + chip drivers/gfx/generic + register "device_count" = "1" + register "device[0].name" = ""LCD"" + # Use Chrome OS privacy screen _HID + register "device[0].hid" = ""GOOG0010"" + # 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(GPIO_5)" + device generic 0.0 on end + end + end device ref acp on chip drivers/amd/i2s_machine_dev register "hid" = ""10029836""