AGESA CIMx: Move late init out of get_bus_conf()
Followup deals further with Fam15 case. For unknown reasons calls were commented out for amd/dinar and they remain that way. Change-Id: Ie0a25fbb6f5378019fbf0f19a02acf024d79817e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/6237 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
232ae17718
commit
b6f3da4ddc
|
@ -24,6 +24,10 @@
|
|||
#include "agesawrapper.h"
|
||||
#include <northbridge/amd/agesa/agesawrapper_call.h>
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
void get_bus_conf(void);
|
||||
|
||||
static void agesawrapper_post_device(void *unused)
|
||||
|
@ -36,6 +40,12 @@ 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
|
||||
if (!acpi_s3_resume_allowed())
|
||||
return;
|
||||
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam15.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -116,9 +113,5 @@ void get_bus_conf(void)
|
|||
/* I/O APICs: APIC ID Version State Address */
|
||||
bus_isa = 10;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
// sb_After_Pci_Init();
|
||||
// sb_Late_Post();
|
||||
#endif
|
||||
printk(BIOS_DEBUG, "Mainboard - Get_bus_conf.c - get_bus_conf - End.\n");
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -99,7 +96,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#include <arch/ioapic.h>
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -109,7 +106,4 @@ void get_bus_conf(void)
|
|||
apicid_sb800 = (io_apic_read(IO_APIC_ADDR, 0x00) >> 24);
|
||||
apicver_sb800 = (io_apic_read(IO_APIC_ADDR, 0x01) & 0xFF);
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -102,7 +99,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam12.h>
|
||||
#include "sb_cimx.h"
|
||||
#include "agesawrapper.h"
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -100,6 +99,5 @@ void get_bus_conf(void)
|
|||
/* I/O APICs: APIC ID Version State Address */
|
||||
bus_isa = 10;
|
||||
|
||||
sb_Late_Post();
|
||||
printk(BIOS_DEBUG, "Mainboard - %s - %s - End.\n", __FILE__, __func__);
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -102,7 +99,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -102,7 +99,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#include <cpu/amd/multicore.h>
|
||||
#endif
|
||||
#include <cpu/amd/amdfam10_sysconf.h>
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
* and acpi_tables busnum is default.
|
||||
|
@ -147,7 +144,4 @@ void get_bus_conf(void)
|
|||
#endif
|
||||
apicid_sb800 = apicid_base + 0;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -26,9 +26,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -101,7 +98,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -28,9 +28,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <southbridge/amd/cimx/sb800/sb_cimx.h>
|
||||
|
||||
|
||||
/**
|
||||
* Global variables for mainboard layouts. These are shared by irqtable,
|
||||
* mptable and acpi_tables where busnum is default.
|
||||
|
@ -110,7 +107,4 @@ void get_bus_conf(void)
|
|||
apicid_sb800 = (io_apic_read(IO_APIC_ADDR, 0x00) >> 24);
|
||||
apicver_sb800 = (io_apic_read(IO_APIC_ADDR, 0x01) & 0xFF);
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif /* CONFIG_AMD_SB_CIMX */
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -100,7 +97,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <cpu/amd/amdfam14.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -99,7 +96,4 @@ void get_bus_conf(void)
|
|||
apicid_base = CONFIG_MAX_CPUS;
|
||||
apicid_sb800 = apicid_base;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include "agesawrapper.h"
|
||||
#include <cpu/amd/amdfam10_sysconf.h>
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -108,8 +105,4 @@ void get_bus_conf(void)
|
|||
/* I/O APICs: APIC ID Version State Address */
|
||||
bus_isa = 10;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_After_Pci_Init();
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include <stdlib.h>
|
||||
#include "agesawrapper.h"
|
||||
#include <cpu/amd/amdfam10_sysconf.h>
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -108,8 +105,4 @@ void get_bus_conf(void)
|
|||
/* I/O APICs: APIC ID Version State Address */
|
||||
bus_isa = 10;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_After_Pci_Init();
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include "agesawrapper.h"
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
#include <sb_cimx.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Global variables for MB layouts and these will be shared by irqtable mptable
|
||||
|
@ -109,8 +106,4 @@ void get_bus_conf(void)
|
|||
/* I/O APICs: APIC ID Version State Address */
|
||||
bus_isa = 10;
|
||||
|
||||
#if CONFIG_AMD_SB_CIMX
|
||||
sb_After_Pci_Init();
|
||||
sb_Late_Post();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -100,6 +100,7 @@ void sb_before_pci_init(void)
|
|||
|
||||
void sb_After_Pci_Init(void)
|
||||
{
|
||||
#if !CONFIG_BOARD_AMD_DINAR
|
||||
AMDSBCFG sb_early_cfg;
|
||||
|
||||
printk(BIOS_SPEW, "SB900 - Early.c - sb_After_Pci_Init - Start.\n");
|
||||
|
@ -111,6 +112,7 @@ void sb_After_Pci_Init(void)
|
|||
// VerifyImage() will fail, LocateImage() take minitues to find the image.
|
||||
sbAfterPciInit(&sb_early_cfg);
|
||||
printk(BIOS_SPEW, "SB900 - Early.c - sb_After_Pci_Init - End.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
void sb_Mid_Post_Init(void)
|
||||
|
@ -130,6 +132,7 @@ void sb_Mid_Post_Init(void)
|
|||
|
||||
void sb_Late_Post(void)
|
||||
{
|
||||
#if !CONFIG_BOARD_AMD_DINAR
|
||||
AMDSBCFG sb_early_cfg;
|
||||
u8 data;
|
||||
|
||||
|
@ -160,4 +163,5 @@ void sb_Late_Post(void)
|
|||
}
|
||||
|
||||
printk(BIOS_SPEW, "SB900 - Early.c - sb_Late_Post - End.\n");
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue