mb/google/sarien: Call EC romstage init function

When in romstage call into the EC init function so it can send a
progress code to the EC before memory training starts.

BUG=b:127875364
TEST=boot with FSP debug and ensure EC does not try to turn off the
system while it is still booting.

Change-Id: I5d99fb16bae250a82b652c530c13977e74c3378b
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32092
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Duncan Laurie 2019-03-27 19:29:14 -07:00 committed by Duncan Laurie
parent 31354676d0
commit 242c9d9f24
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <ec/google/wilco/romstage.h>
#include <soc/cnl_memcfg_init.h> #include <soc/cnl_memcfg_init.h>
#include <soc/romstage.h> #include <soc/romstage.h>
@ -49,5 +50,7 @@ void mainboard_memory_init_params(FSPM_UPD *memupd)
.spd_smbus_address[2] = 0xa4 .spd_smbus_address[2] = 0xa4
}; };
wilco_ec_romstage_init();
cannonlake_memcfg_init(&memupd->FspmConfig, &memcfg, &spd); cannonlake_memcfg_init(&memupd->FspmConfig, &memcfg, &spd);
} }