diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-07-17 11:58:06 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2017-08-02 04:46:58 +0000 |
commit | a3d644fcd1e70e5844020eb44d05f58afd11c68e (patch) | |
tree | b5bb3cdfc5a83a66fafb7dbec16af50dd6a6e301 /src/cpu/amd | |
parent | b0931d3d10e65f994cc136d957355f6bdc6a756f (diff) | |
download | coreboot-a3d644fcd1e70e5844020eb44d05f58afd11c68e.tar.xz |
AGESA: Consolidate platform_once() call
Change-Id: I13d8df330db925b2eced7c123ca9926fb259646d
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/20621
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'src/cpu/amd')
-rw-r--r-- | src/cpu/amd/agesa/family15rl/romstage.c | 5 | ||||
-rw-r--r-- | src/cpu/amd/agesa/family15tn/romstage.c | 5 | ||||
-rw-r--r-- | src/cpu/amd/agesa/family16kb/romstage.c | 5 | ||||
-rw-r--r-- | 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 <northbridge/amd/agesa/state_machine.h> #include <northbridge/amd/agesa/agesa_helper.h> -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 <northbridge/amd/agesa/state_machine.h> #include <northbridge/amd/agesa/agesa_helper.h> -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 <northbridge/amd/agesa/state_machine.h> #include <northbridge/amd/agesa/agesa_helper.h> -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)); |