From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:42:03 +0000 Subject: [PATCH] disable pwm7 --- u-boot/common/spl/spl.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/u-boot/common/spl/spl.c b/u-boot/common/spl/spl.c index 6836796..bcb37ec 100644 --- a/u-boot/common/spl/spl.c +++ b/u-boot/common/spl/spl.c @@ -17,6 +17,7 @@ #include <version.h> #include <image.h> #include <malloc.h> +#include <mp_boot.h> #include <dm/root.h> #include <linux/compiler.h> #include <fdt_support.h> @@ -547,6 +548,10 @@ memset(&spl_image, '\0', sizeof(spl_image)); +#ifdef CONFIG_MP_BOOT + mpb_init_x(0); +#endif + #if CONFIG_IS_ENABLED(ATF) /* * Bl32 ep is optional, initial it as an invalid value. @@ -574,6 +579,10 @@ } spl_perform_fixups(&spl_image); + +#ifdef CONFIG_MP_BOOT + mpb_init_x(2); +#endif #ifdef CONFIG_CPU_V7M spl_image.entry_point |= 0x1; @@ -710,7 +719,7 @@ /* cleanup before jump to next stage */ void spl_cleanup_before_jump(struct spl_image_info *spl_image) { - ulong us; + ulong us, tt_us; spl_board_prepare_for_jump(spl_image); @@ -738,5 +747,6 @@ isb(); us = (get_ticks() - gd->sys_start_tick) / 24UL; - printf("Total: %ld.%ld ms\n\n", us / 1000, us % 1000); + tt_us = get_ticks() / (COUNTER_FREQUENCY / 1000000); + printf("Total: %ld.%ld/%ld.%ld ms\n\n", us / 1000, us % 1000, tt_us / 1000, tt_us % 1000); } -- Gitblit v1.6.2