From 7f0747562ed43b8461aae6960f2615d2b84b6387 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 29 Sep 2013 06:32:27 -0700 Subject: tegra124: Add a custom bootblock implementation. This implementation is the same as the general one except that it removes all the things that don't work on an ARMv4. Change-Id: I1108a79cc656b26f7d48df20aef3016cf5ae3182 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/171019 Reviewed-by: Ronald Minnich Commit-Queue: Gabe Black Tested-by: Gabe Black (cherry picked from commit d1436288d3b025af27a8d28ba94b589940ead504) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6713 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/soc/nvidia/tegra124/bootblock.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/soc/nvidia/tegra124/bootblock.c') diff --git a/src/soc/nvidia/tegra124/bootblock.c b/src/soc/nvidia/tegra124/bootblock.c index 66e6b3b6da..97180a0a33 100644 --- a/src/soc/nvidia/tegra124/bootblock.c +++ b/src/soc/nvidia/tegra124/bootblock.c @@ -17,8 +17,20 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include +#include +#include +#include +#include -void bootblock_cpu_init(void) +void main(void) { + void *entry; + + if (CONFIG_BOOTBLOCK_CONSOLE) + console_init(); + + entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/romstage"); + + if (entry) stage_exit(entry); + hlt(); } -- cgit v1.2.3