From b0931d3d10e65f994cc136d957355f6bdc6a756f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 17 Jul 2017 11:58:06 +0300 Subject: [PATCH] AGESA: Consolidate early_all_cores() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7c3af493b9189bb75a58eb322646694b5a712745 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/20620 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/cpu/amd/agesa/family12/romstage.c | 5 ----- src/cpu/amd/agesa/family14/romstage.c | 5 ----- src/cpu/amd/agesa/family15/romstage.c | 5 ----- src/cpu/amd/agesa/family15rl/romstage.c | 5 ----- src/cpu/amd/agesa/family15tn/romstage.c | 6 ------ src/cpu/amd/agesa/family16kb/romstage.c | 5 ----- src/cpu/amd/agesa/romstage.c | 5 +++++ 7 files changed, 5 insertions(+), 31 deletions(-) diff --git a/src/cpu/amd/agesa/family12/romstage.c b/src/cpu/amd/agesa/family12/romstage.c index 8f4e81a9d9..2a183270d7 100644 --- a/src/cpu/amd/agesa/family12/romstage.c +++ b/src/cpu/amd/agesa/family12/romstage.c @@ -25,11 +25,6 @@ #include "SbPlatform.h" #include "platform_cfg.h" -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { gpioEarlyInit(); diff --git a/src/cpu/amd/agesa/family14/romstage.c b/src/cpu/amd/agesa/family14/romstage.c index 23fa008ecf..53e6a1c623 100644 --- a/src/cpu/amd/agesa/family14/romstage.c +++ b/src/cpu/amd/agesa/family14/romstage.c @@ -23,11 +23,6 @@ #include -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { sb_Poweron_Init(); diff --git a/src/cpu/amd/agesa/family15/romstage.c b/src/cpu/amd/agesa/family15/romstage.c index 7b5c0bcfc6..c7101996f5 100644 --- a/src/cpu/amd/agesa/family15/romstage.c +++ b/src/cpu/amd/agesa/family15/romstage.c @@ -28,11 +28,6 @@ #include #include -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { /* diff --git a/src/cpu/amd/agesa/family15rl/romstage.c b/src/cpu/amd/agesa/family15rl/romstage.c index 369ae33c02..45543f2255 100644 --- a/src/cpu/amd/agesa/family15rl/romstage.c +++ b/src/cpu/amd/agesa/family15rl/romstage.c @@ -21,11 +21,6 @@ #include #include -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { board_BeforeAgesa(cb); diff --git a/src/cpu/amd/agesa/family15tn/romstage.c b/src/cpu/amd/agesa/family15tn/romstage.c index fc1aeee576..9ecbf5cc5b 100644 --- a/src/cpu/amd/agesa/family15tn/romstage.c +++ b/src/cpu/amd/agesa/family15tn/romstage.c @@ -22,12 +22,6 @@ #include #include - -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { board_BeforeAgesa(cb); diff --git a/src/cpu/amd/agesa/family16kb/romstage.c b/src/cpu/amd/agesa/family16kb/romstage.c index e0fff35ee3..19af28007d 100644 --- a/src/cpu/amd/agesa/family16kb/romstage.c +++ b/src/cpu/amd/agesa/family16kb/romstage.c @@ -21,11 +21,6 @@ #include #include -void asmlinkage early_all_cores(void) -{ - amd_initmmio(); -} - void platform_once(struct sysinfo *cb) { board_BeforeAgesa(cb); diff --git a/src/cpu/amd/agesa/romstage.c b/src/cpu/amd/agesa/romstage.c index 4422b66bb2..e390c1899c 100644 --- a/src/cpu/amd/agesa/romstage.c +++ b/src/cpu/amd/agesa/romstage.c @@ -28,6 +28,11 @@ #include #include +void asmlinkage early_all_cores(void) +{ + amd_initmmio(); +} + static void fill_sysinfo(struct sysinfo *cb) { memset(cb, 0, sizeof(*cb));