mb/amd/birman/update_devicetree_phoenix_opensil: update DDI1 config

Use the now common get_ddi1_type function to update the connector type
of the DDI1 port to match the display output extension card plugged into
the reference board.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I7c51eab0d32e0a1708da415f690689a8ec38dcd3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82583
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2024-05-17 22:28:57 +02:00
parent 84f8b8eb60
commit af42198729

View File

@ -1,8 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
#include <soc/amd/phoenix/chip.h>
#include <soc/soc_util.h>
#include <vendorcode/amd/opensil/chip/mpio/chip.h>
#include "display_card_type.h"
#include "update_devicetree.h"
static void mainboard_update_mpio(void)
@ -39,7 +41,14 @@ static void mainboard_update_mpio(void)
}
}
static void mainboard_update_ddi(void)
{
struct soc_amd_phoenix_config *cfg = config_of_soc();
cfg->ddi[1].connector_type = get_ddi1_type();
}
void mainboard_update_devicetree_opensil(void)
{
mainboard_update_mpio();
mainboard_update_ddi();
}