arch/x86: Rename some mainboard_romstage_entry()
These platforms use different signature for this function, so declare them with different name to make room in global namespace. Change-Id: I77be9099bf20e00ae6770e9ffe12301eda028819 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34909 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
16562cb859
commit
c2741855af
|
@ -28,7 +28,7 @@ void __weak variant_romstage_entry(int s3_resume)
|
||||||
/* By default, don't do anything */
|
/* By default, don't do anything */
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainboard_romstage_entry(int s3_resume)
|
void mainboard_romstage_entry_s3(int s3_resume)
|
||||||
{
|
{
|
||||||
size_t num_gpios;
|
size_t num_gpios;
|
||||||
const struct soc_amd_gpio *gpios;
|
const struct soc_amd_gpio *gpios;
|
||||||
|
|
|
@ -55,7 +55,7 @@ static void *get_spd_pointer(char *spd_file_content, int total_spds, int *dual)
|
||||||
return &spd_file_content[SPD_SIZE * ram_id];
|
return &spd_file_content[SPD_SIZE * ram_id];
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainboard_romstage_entry(struct romstage_params *rp)
|
void mainboard_romstage_entry_rp(struct romstage_params *rp)
|
||||||
{
|
{
|
||||||
void *spd_content;
|
void *spd_content;
|
||||||
int dual_channel = 0;
|
int dual_channel = 0;
|
||||||
|
|
|
@ -16,6 +16,6 @@
|
||||||
#ifndef __PICASSO_ROMSTAGE_H__
|
#ifndef __PICASSO_ROMSTAGE_H__
|
||||||
#define __PICASSO_ROMSTAGE_H__
|
#define __PICASSO_ROMSTAGE_H__
|
||||||
|
|
||||||
void mainboard_romstage_entry(int s3_resume);
|
void mainboard_romstage_entry_s3(int s3_resume);
|
||||||
|
|
||||||
#endif /* __PICASSO_ROMSTAGE_H__ */
|
#endif /* __PICASSO_ROMSTAGE_H__ */
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
void __weak mainboard_romstage_entry(int s3_resume)
|
void __weak mainboard_romstage_entry_s3(int s3_resume)
|
||||||
{
|
{
|
||||||
/* By default, don't do anything */
|
/* By default, don't do anything */
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ asmlinkage void car_stage_entry(void)
|
||||||
|
|
||||||
console_init();
|
console_init();
|
||||||
|
|
||||||
mainboard_romstage_entry(s3_resume);
|
mainboard_romstage_entry_s3(s3_resume);
|
||||||
|
|
||||||
if (!s3_resume) {
|
if (!s3_resume) {
|
||||||
post_code(0x40);
|
post_code(0x40);
|
||||||
|
|
|
@ -16,6 +16,6 @@
|
||||||
#ifndef __STONEYRIDGE_ROMSTAGE_H__
|
#ifndef __STONEYRIDGE_ROMSTAGE_H__
|
||||||
#define __STONEYRIDGE_ROMSTAGE_H__
|
#define __STONEYRIDGE_ROMSTAGE_H__
|
||||||
|
|
||||||
void mainboard_romstage_entry(int s3_resume);
|
void mainboard_romstage_entry_s3(int s3_resume);
|
||||||
|
|
||||||
#endif /* __STONEYRIDGE_ROMSTAGE_H__ */
|
#endif /* __STONEYRIDGE_ROMSTAGE_H__ */
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
void __weak mainboard_romstage_entry(int s3_resume)
|
void __weak mainboard_romstage_entry_s3(int s3_resume)
|
||||||
{
|
{
|
||||||
/* By default, don't do anything */
|
/* By default, don't do anything */
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,7 @@ asmlinkage void car_stage_entry(void)
|
||||||
if (CONFIG(SOC_AMD_PSP_SELECTABLE_SMU_FW))
|
if (CONFIG(SOC_AMD_PSP_SELECTABLE_SMU_FW))
|
||||||
load_smu_fw1();
|
load_smu_fw1();
|
||||||
|
|
||||||
mainboard_romstage_entry(s3_resume);
|
mainboard_romstage_entry_s3(s3_resume);
|
||||||
|
|
||||||
bsp_agesa_call();
|
bsp_agesa_call();
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ struct romstage_params {
|
||||||
struct mrc_params *mrc_params;
|
struct mrc_params *mrc_params;
|
||||||
};
|
};
|
||||||
|
|
||||||
void mainboard_romstage_entry(struct romstage_params *params);
|
void mainboard_romstage_entry_rp(struct romstage_params *params);
|
||||||
void romstage_common(struct romstage_params *params);
|
void romstage_common(struct romstage_params *params);
|
||||||
|
|
||||||
void raminit(struct mrc_params *mp, int prev_sleep_state);
|
void raminit(struct mrc_params *mp, int prev_sleep_state);
|
||||||
|
|
|
@ -146,7 +146,7 @@ static void romstage_main(uint64_t tsc)
|
||||||
gfx_init();
|
gfx_init();
|
||||||
|
|
||||||
/* Call into mainboard. */
|
/* Call into mainboard. */
|
||||||
mainboard_romstage_entry(&rp);
|
mainboard_romstage_entry_rp(&rp);
|
||||||
|
|
||||||
if (CONFIG(SMM_TSEG))
|
if (CONFIG(SMM_TSEG))
|
||||||
smm_list_regions();
|
smm_list_regions();
|
||||||
|
|
Loading…
Reference in New Issue