.. | .. |
---|
17 | 17 | #include <version.h> |
---|
18 | 18 | #include <image.h> |
---|
19 | 19 | #include <malloc.h> |
---|
| 20 | +#include <mp_boot.h> |
---|
20 | 21 | #include <dm/root.h> |
---|
21 | 22 | #include <linux/compiler.h> |
---|
22 | 23 | #include <fdt_support.h> |
---|
.. | .. |
---|
547 | 548 | |
---|
548 | 549 | memset(&spl_image, '\0', sizeof(spl_image)); |
---|
549 | 550 | |
---|
| 551 | +#ifdef CONFIG_MP_BOOT |
---|
| 552 | + mpb_init_x(0); |
---|
| 553 | +#endif |
---|
| 554 | + |
---|
550 | 555 | #if CONFIG_IS_ENABLED(ATF) |
---|
551 | 556 | /* |
---|
552 | 557 | * Bl32 ep is optional, initial it as an invalid value. |
---|
.. | .. |
---|
574 | 579 | } |
---|
575 | 580 | |
---|
576 | 581 | spl_perform_fixups(&spl_image); |
---|
| 582 | + |
---|
| 583 | +#ifdef CONFIG_MP_BOOT |
---|
| 584 | + mpb_init_x(2); |
---|
| 585 | +#endif |
---|
577 | 586 | |
---|
578 | 587 | #ifdef CONFIG_CPU_V7M |
---|
579 | 588 | spl_image.entry_point |= 0x1; |
---|
.. | .. |
---|
710 | 719 | /* cleanup before jump to next stage */ |
---|
711 | 720 | void spl_cleanup_before_jump(struct spl_image_info *spl_image) |
---|
712 | 721 | { |
---|
713 | | - ulong us; |
---|
| 722 | + ulong us, tt_us; |
---|
714 | 723 | |
---|
715 | 724 | spl_board_prepare_for_jump(spl_image); |
---|
716 | 725 | |
---|
.. | .. |
---|
738 | 747 | isb(); |
---|
739 | 748 | |
---|
740 | 749 | us = (get_ticks() - gd->sys_start_tick) / 24UL; |
---|
741 | | - printf("Total: %ld.%ld ms\n\n", us / 1000, us % 1000); |
---|
| 750 | + tt_us = get_ticks() / (COUNTER_FREQUENCY / 1000000); |
---|
| 751 | + printf("Total: %ld.%ld/%ld.%ld ms\n\n", us / 1000, us % 1000, tt_us / 1000, tt_us % 1000); |
---|
742 | 752 | } |
---|