ivy: Add a possiblity for mainboard early init.
This is needed for stout EC init. Change-Id: I5c73499c17763229840152a473a2d820802ee2f6 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: https://review.coreboot.org/13535 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
bf725b48f7
commit
609bd9445e
|
@ -52,6 +52,9 @@ const struct southbridge_usb_port mainboard_usb_ports[] = {
|
|||
{ 1, 0, -1 },
|
||||
};
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
||||
void mainboard_get_spd(spd_raw_data *spd)
|
||||
{
|
||||
void *spd_file;
|
||||
|
|
|
@ -205,3 +205,6 @@ static void dmi_config(void)
|
|||
DMIBAR32(0x0e2c) = 0x20000000;
|
||||
}
|
||||
#endif
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -115,3 +115,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd (&spd[2], 0x52);
|
||||
read_spd (&spd[3], 0x53);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -128,3 +128,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd(&spd[0], 0x50);
|
||||
read_spd(&spd[2], 0x52);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -67,3 +67,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd(&spd[0], 0x50);
|
||||
read_spd(&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -67,3 +67,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd(&spd[0], 0x50);
|
||||
read_spd(&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -82,3 +82,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd (&spd[0], 0x50);
|
||||
read_spd (&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -69,3 +69,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd (&spd[0], 0x50);
|
||||
read_spd (&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -79,3 +79,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd (&spd[0], 0x50);
|
||||
read_spd (&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -82,3 +82,6 @@ void mainboard_get_spd(spd_raw_data *spd) {
|
|||
read_spd (&spd[0], 0x50);
|
||||
read_spd (&spd[2], 0x51);
|
||||
}
|
||||
|
||||
void mainboard_early_init(int s3resume) {
|
||||
}
|
||||
|
|
|
@ -24,5 +24,6 @@ void read_spd(spd_raw_data *spd, u8 addr);
|
|||
void mainboard_get_spd(spd_raw_data *spd);
|
||||
void rcba_config(void);
|
||||
void pch_enable_lpc(void);
|
||||
void mainboard_early_init(int s3resume);
|
||||
|
||||
#endif /* RAMINIT_H */
|
||||
|
|
|
@ -103,6 +103,9 @@ void main(unsigned long bist)
|
|||
s3resume = southbridge_detect_s3_resume();
|
||||
|
||||
post_code(0x38);
|
||||
|
||||
mainboard_early_init(s3resume);
|
||||
|
||||
/* Enable SPD ROMs and DDR-III DRAM */
|
||||
enable_smbus();
|
||||
|
||||
|
|
|
@ -358,6 +358,10 @@ void rcba_config(void)
|
|||
guessedMap := GuessSPDMap(ctx)
|
||||
|
||||
sb.WriteString(`
|
||||
void mainboard_early_init(int s3resume)
|
||||
{
|
||||
}
|
||||
|
||||
/* FIXME: Put proper SPD map here. */
|
||||
void mainboard_get_spd(spd_raw_data *spd)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue