soc: move mainboard_get_dram_part_num prototype to memory_info.h

BUG=b:169774661, b:168724473
TEST="emerge-volteer coreboot && emerge-nocturne coreboot &&
emerge-dedede coreboot" and verify they build successfully.

Change-Id: I8b228475621ca1035fe13f8311355fc3b926e897
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45879
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Nick Vaccaro 2020-09-30 13:05:09 -07:00
parent 0ed02d00cb
commit 3b24bb6fc8
6 changed files with 6 additions and 10 deletions

View File

@ -108,4 +108,10 @@ struct memory_info {
struct dimm_info dimm[DIMM_INFO_TOTAL];
} __packed;
/*
* mainboard_get_dram_part_num returns a DRAM part number override string
* return NULL = no part number override provided by mainboard
* return non-NULL = pointer to a string terminating in '\0'
*/
const char *mainboard_get_dram_part_num(void);
#endif

View File

@ -6,8 +6,6 @@
#include <fsp/api.h>
#include <stddef.h>
/* Provide a callback to allow mainboard to override the DRAM part number. */
const char *mainboard_get_dram_part_num(void);
void mainboard_memory_init_params(FSPM_UPD *mupd);
void systemagent_early_init(void);
void romstage_pch_init(void);

View File

@ -7,8 +7,6 @@
void mainboard_memory_init_params(FSPM_UPD *mupd);
/* Provide a callback to allow mainboard to override the DRAM part number. */
const char *mainboard_get_dram_part_num(void);
void systemagent_early_init(void);
void romstage_pch_init(void);

View File

@ -5,8 +5,6 @@
#include <fsp/api.h>
/* Provide a callback to allow mainboard to override the DRAM part number. */
const char *mainboard_get_dram_part_num(void);
void mainboard_memory_init_params(FSPM_UPD *mupd);
void systemagent_early_init(void);
void romstage_pch_init(void);

View File

@ -5,8 +5,6 @@
#include <fsp/api.h>
/* Provide a callback to allow mainboard to override the DRAM part number. */
const char *mainboard_get_dram_part_num(void);
void mainboard_memory_init_params(FSPM_UPD *mupd);
void systemagent_early_init(void);
void romstage_pch_init(void);

View File

@ -5,8 +5,6 @@
#include <fsp/api.h>
/* Provide a callback to allow mainboard to override the DRAM part number. */
const char *mainboard_get_dram_part_num(void);
void mainboard_memory_init_params(FSPM_UPD *mupd);
void systemagent_early_init(void);
void romstage_pch_init(void);