From f33f61bdb7ca6d5ebe7a78f9d8694b91360279ac Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 04 Dec 2023 07:10:27 +0000
Subject: [PATCH] add gpio
---
u-boot/arch/arm/lib/bootm.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/u-boot/arch/arm/lib/bootm.c b/u-boot/arch/arm/lib/bootm.c
index 53f7444..7a94d79 100644
--- a/u-boot/arch/arm/lib/bootm.c
+++ b/u-boot/arch/arm/lib/bootm.c
@@ -22,6 +22,7 @@
#include <asm/byteorder.h>
#include <linux/libfdt.h>
#include <mapmem.h>
+#include <mp_boot.h>
#include <fdt_support.h>
#include <asm/bootm.h>
#include <asm/secure.h>
@@ -80,7 +81,7 @@
*/
static void announce_and_cleanup(bootm_headers_t *images, int fake)
{
- ulong us;
+ ulong us, tt_us;
bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
#ifdef CONFIG_BOOTSTAGE_FDT
@@ -108,8 +109,12 @@
cleanup_before_linux();
+#ifdef CONFIG_MP_BOOT
+ mpb_post(4);
+#endif
us = (get_ticks() - gd->sys_start_tick) / (COUNTER_FREQUENCY / 1000000);
- printf("Total: %ld.%ld ms\n", us / 1000, us % 1000);
+ tt_us = get_ticks() / (COUNTER_FREQUENCY / 1000000);
+ printf("Total: %ld.%ld/%ld.%ld ms\n", us / 1000, us % 1000, tt_us / 1000, tt_us % 1000);
printf("\nStarting kernel ...%s\n\n", fake ?
"(fake run for tracing)" : "");
--
Gitblit v1.6.2