From e4f3e7a9c656356a92e827d5a39b85106cbdaf3a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 17 Mar 2015 13:25:19 -0500 Subject: romstages: use common run_ramstage() Instead of sprinkling the cbfs calls around (as well as getting return values incorrect) use the common run_ramstage() to perform the necessary work to load and run ramstage. Change-Id: I37b1e94be36ef7a43efe65b2db110742fa105169 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/8710 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- src/mainboard/cubietech/cubieboard/romstage.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mainboard/cubietech') diff --git a/src/mainboard/cubietech/cubieboard/romstage.c b/src/mainboard/cubietech/cubieboard/romstage.c index 6a32c56866..fa660c82f5 100644 --- a/src/mainboard/cubietech/cubieboard/romstage.c +++ b/src/mainboard/cubietech/cubieboard/romstage.c @@ -16,6 +16,7 @@ #include #include #include +#include #define __SIMPLE_DEVICE__ #include #include @@ -70,7 +71,6 @@ static enum cb_err cubieboard_setup_power(void) void main(void) { - void *entry; enum cb_err err; console_init(); @@ -87,8 +87,5 @@ void main(void) a1x_set_cpu_clock(384); } - entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/ramstage"); - printk(BIOS_INFO, "entry is 0x%p, leaving romstage.\n", entry); - - stage_exit(entry); + run_ramstage(); } -- cgit v1.2.3