From a3d644fcd1e70e5844020eb44d05f58afd11c68e 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 platform_once() call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I13d8df330db925b2eced7c123ca9926fb259646d Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/20621 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Aaron Durbin Reviewed-by: Philippe Mathieu-Daudé --- src/cpu/amd/agesa/family15rl/romstage.c | 5 ----- src/cpu/amd/agesa/family15tn/romstage.c | 5 ----- src/cpu/amd/agesa/family16kb/romstage.c | 5 ----- src/cpu/amd/agesa/romstage.c | 5 +++++ 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/cpu/amd/agesa/family15rl/romstage.c b/src/cpu/amd/agesa/family15rl/romstage.c index 45543f2255..5c7d972692 100644 --- a/src/cpu/amd/agesa/family15rl/romstage.c +++ b/src/cpu/amd/agesa/family15rl/romstage.c @@ -21,11 +21,6 @@ #include #include -void platform_once(struct sysinfo *cb) -{ - board_BeforeAgesa(cb); -} - void agesa_main(struct sysinfo *cb) { post_code(0x37); diff --git a/src/cpu/amd/agesa/family15tn/romstage.c b/src/cpu/amd/agesa/family15tn/romstage.c index 9ecbf5cc5b..fcf2f17fe5 100644 --- a/src/cpu/amd/agesa/family15tn/romstage.c +++ b/src/cpu/amd/agesa/family15tn/romstage.c @@ -22,11 +22,6 @@ #include #include -void platform_once(struct sysinfo *cb) -{ - board_BeforeAgesa(cb); -} - void agesa_main(struct sysinfo *cb) { post_code(0x37); diff --git a/src/cpu/amd/agesa/family16kb/romstage.c b/src/cpu/amd/agesa/family16kb/romstage.c index 19af28007d..3f9afce080 100644 --- a/src/cpu/amd/agesa/family16kb/romstage.c +++ b/src/cpu/amd/agesa/family16kb/romstage.c @@ -21,11 +21,6 @@ #include #include -void platform_once(struct sysinfo *cb) -{ - board_BeforeAgesa(cb); -} - void agesa_main(struct sysinfo *cb) { post_code(0x37); diff --git a/src/cpu/amd/agesa/romstage.c b/src/cpu/amd/agesa/romstage.c index e390c1899c..fc4a0b488c 100644 --- a/src/cpu/amd/agesa/romstage.c +++ b/src/cpu/amd/agesa/romstage.c @@ -33,6 +33,11 @@ void asmlinkage early_all_cores(void) amd_initmmio(); } +void __attribute__((weak)) platform_once(struct sysinfo *cb) +{ + board_BeforeAgesa(cb); +} + static void fill_sysinfo(struct sysinfo *cb) { memset(cb, 0, sizeof(*cb));