From 8880df10fae2b399038ce7876d78b8aa9b0836fa Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Sat, 28 Mar 2015 09:31:47 -0500 Subject: pistachio: don't open code ramstage loading Use the run_ramstage() function to load and run ramstage. Change-Id: I783801bf506fa2f9608eefe1cd20257292c80af5 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9148 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- src/mainboard/emulation/imgvp-pistachio/romstage.c | 13 ++----------- src/soc/imgtec/pistachio/romstage.c | 14 ++------------ 2 files changed, 4 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/mainboard/emulation/imgvp-pistachio/romstage.c b/src/mainboard/emulation/imgvp-pistachio/romstage.c index ac0ea5f903..3fcf23d461 100644 --- a/src/mainboard/emulation/imgvp-pistachio/romstage.c +++ b/src/mainboard/emulation/imgvp-pistachio/romstage.c @@ -19,20 +19,11 @@ * MA 02110-1301 USA */ -#include -#include -#include +#include #include void main(void) { - void *entry; - console_init(); - - entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/ramstage"); - if (entry != (void *)-1) - stage_exit(entry); - - hlt(); + run_ramstage(); } diff --git a/src/soc/imgtec/pistachio/romstage.c b/src/soc/imgtec/pistachio/romstage.c index 53ca898fed..3fcf23d461 100644 --- a/src/soc/imgtec/pistachio/romstage.c +++ b/src/soc/imgtec/pistachio/romstage.c @@ -19,21 +19,11 @@ * MA 02110-1301 USA */ -#include -#include -#include +#include #include void main(void) { - void *entry; - console_init(); - - entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, - CONFIG_CBFS_PREFIX "/ramstage"); - if (entry != (void *)-1) - stage_exit(entry); - - hlt(); + run_ramstage(); } -- cgit v1.2.3