From 13cf13587192ff82fbb3d060fe49fc677464c83b Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 21 Nov 2016 07:37:13 +0200 Subject: AGESA: Move amd_initmmio() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function enables PCI MMCONF and XIP cache, it needs to be called before giving platform any chance of calling any PCI access functions. Change-Id: Ic044d4df7b93667fa987c29c810d0bd826af87ad Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/18623 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Aaron Durbin --- src/cpu/amd/agesa/family15/romstage.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cpu/amd/agesa/family15') diff --git a/src/cpu/amd/agesa/family15/romstage.c b/src/cpu/amd/agesa/family15/romstage.c index fb02b4fbd0..02495b0dd7 100644 --- a/src/cpu/amd/agesa/family15/romstage.c +++ b/src/cpu/amd/agesa/family15/romstage.c @@ -30,13 +30,16 @@ #include #include +void asmlinkage early_all_cores(void) +{ + amd_initmmio(); +} + void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) { struct sysinfo *cb = NULL; u32 val; - post_code(0x30); - amd_initmmio(); post_code(0x31); /* Halt if there was a built in self test failure */ -- cgit v1.2.3