From 12d31b2764851f119985192419d2c986b48b54e0 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 16 Jun 2021 12:39:23 +0200 Subject: [PATCH] southbridge/amd: Create ACPI MCFG MMCONFIG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These southbridges are paired with MMCONF-enabled northbridges. Change-Id: I0416de6425bb57471856731ad12ce8194ac98be2 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/55572 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Arthur Heymans --- src/southbridge/amd/agesa/hudson/lpc.c | 4 +++- src/southbridge/amd/cimx/sb800/late.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/southbridge/amd/agesa/hudson/lpc.c b/src/southbridge/amd/agesa/hudson/lpc.c index f811302e0c..b80bb6ad35 100644 --- a/src/southbridge/amd/agesa/hudson/lpc.c +++ b/src/southbridge/amd/agesa/hudson/lpc.c @@ -320,7 +320,9 @@ static const char *lpc_acpi_name(const struct device *dev) unsigned long acpi_fill_mcfg(unsigned long current) { - /* Just a dummy */ + current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current, + CONFIG_MMCONF_BASE_ADDRESS, 0, 0, CONFIG_MMCONF_BUS_NUMBER - 1); + return current; } diff --git a/src/southbridge/amd/cimx/sb800/late.c b/src/southbridge/amd/cimx/sb800/late.c index 15e6d67c0c..9fdf596cbd 100644 --- a/src/southbridge/amd/cimx/sb800/late.c +++ b/src/southbridge/amd/cimx/sb800/late.c @@ -123,7 +123,9 @@ static void lpc_init(struct device *dev) unsigned long acpi_fill_mcfg(unsigned long current) { - /* Just a dummy */ + current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current, + CONFIG_MMCONF_BASE_ADDRESS, 0, 0, CONFIG_MMCONF_BUS_NUMBER - 1); + return current; }