From ce7ec14f36b6be01e93f4845304435d1b6f1d0d0 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Sat, 22 Jan 2022 12:25:41 +0800 Subject: mb/google/guybrush/guybrush: Add variant to disable HDMI For one specific type of APU, it doesn't have HDMI. When we detect this APU, we need to explicitly disable HDMI in DDI settings, otherwise the system would freeze. Please refer src/mainboard/google/guybrush/variants/dewatt/variant.c BUG=b:215432928 Change-Id: I93fca8cf9870533da1bcca5fa28ff22085e65beb Signed-off-by: Zheng Bao Reviewed-on: https://review.coreboot.org/c/coreboot/+/61314 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/mainboard/google/guybrush/variants/guybrush/variant.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/guybrush/variants/guybrush/variant.c b/src/mainboard/google/guybrush/variants/guybrush/variant.c index 54ca6a0a7f..974e357cd9 100644 --- a/src/mainboard/google/guybrush/variants/guybrush/variant.c +++ b/src/mainboard/google/guybrush/variants/guybrush/variant.c @@ -4,6 +4,7 @@ #include #include #include +#include bool variant_has_pcie_wwan(void) { @@ -14,3 +15,9 @@ uint8_t variant_sd_aux_reset_gpio(void) { return board_id() == 1 ? GPIO_70 : GPIO_69; } + +void variant_update_ddi_descriptors(fsp_ddi_descriptor *ddi_descriptors) +{ + if ((get_cpu_count() == 4 && get_threads_per_core() == 2) || get_cpu_count() == 2) + ddi_descriptors[1].connector_type = DDI_UNUSED_TYPE; +} -- cgit v1.2.3