diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2022-01-22 12:25:41 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-01-31 10:31:09 +0000 |
commit | ce7ec14f36b6be01e93f4845304435d1b6f1d0d0 (patch) | |
tree | d1101d69eaf56a25112847904904e243e3a41f70 /src/mainboard/google/guybrush | |
parent | 5561468eebb277a0e6e1cec43e3f783c9f46c50f (diff) |
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 <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61314
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/google/guybrush')
-rw-r--r-- | src/mainboard/google/guybrush/variants/guybrush/variant.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <boardid.h> #include <device/device.h> #include <soc/gpio.h> +#include <amdblocks/cpu.h> 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; +} |