From d005f78d292f65506debb5546f085657f3e80237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 7 Jul 2014 18:16:55 +0300 Subject: AGESA fam15: Fix entry to cimx/sb900 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move SB900 call to match comments and changes already made for family14 et al. Change-Id: I22aa0bbeeabf9cff929c49c23014005bc3d53ccb Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/6238 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/cpu/amd/agesa/amd_late_init.c | 3 --- src/northbridge/amd/agesa/family15/northbridge.c | 5 +++++ src/southbridge/amd/cimx/sb700/sb_cimx.h | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cpu/amd/agesa/amd_late_init.c b/src/cpu/amd/agesa/amd_late_init.c index 83e9ed83cb..0453006b0f 100644 --- a/src/cpu/amd/agesa/amd_late_init.c +++ b/src/cpu/amd/agesa/amd_late_init.c @@ -40,9 +40,6 @@ static void agesawrapper_post_device(void *unused) /* Preparation for write_tables(). */ get_bus_conf(); -#if CONFIG_AMD_SB_CIMX && CONFIG_NORTHBRIDGE_AMD_AGESA_FAMILY15 - sb_After_Pci_Init(); -#endif #if CONFIG_AMD_SB_CIMX sb_Late_Post(); #endif diff --git a/src/northbridge/amd/agesa/family15/northbridge.c b/src/northbridge/amd/agesa/family15/northbridge.c index 34f58d33a2..34d7ea3765 100644 --- a/src/northbridge/amd/agesa/family15/northbridge.c +++ b/src/northbridge/amd/agesa/family15/northbridge.c @@ -42,6 +42,7 @@ #include "agesawrapper.h" #include #include "northbridge.h" +#include "sb_cimx.h" #define MAX_NODE_NUMS (MAX_NODES * MAX_DIES) @@ -591,6 +592,10 @@ static void domain_enable_resources(device_t dev) { /* Must be called after PCI enumeration and resource allocation */ printk(BIOS_DEBUG, "\nFam15 - %s: AmdInitMid.\n", __func__); + +#if CONFIG_AMD_SB_CIMX + sb_After_Pci_Init(); +#endif AGESAWRAPPER(amdinitmid); printk(BIOS_DEBUG, " Fam15 - leaving %s.\n", __func__); } diff --git a/src/southbridge/amd/cimx/sb700/sb_cimx.h b/src/southbridge/amd/cimx/sb700/sb_cimx.h index ebfaca895d..b123c51602 100644 --- a/src/southbridge/amd/cimx/sb700/sb_cimx.h +++ b/src/southbridge/amd/cimx/sb700/sb_cimx.h @@ -34,7 +34,6 @@ void sb_Poweron_Init(void); void sb_Before_Pci_Init(void); void sb_After_Pci_Init(void); -void sb_Mid_Post_Init(void); void sb_Late_Post(void); void sb7xx_51xx_enable_wideio(u8 wio_index, u16 base); -- cgit v1.2.3