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>
This commit is contained in:
parent
b0931d3d10
commit
a3d644fcd1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue