summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/amd/agesa/family15rl/romstage.c5
-rw-r--r--src/cpu/amd/agesa/family15tn/romstage.c5
-rw-r--r--src/cpu/amd/agesa/family16kb/romstage.c5
-rw-r--r--src/cpu/amd/agesa/romstage.c5
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));