u-boot/arch/arm/cpu
Peter Hoyes c48fec6e7c armv8: Initialize CNTFRQ if at highest exception level
CNTFRQ_EL0 is only writable from the highest supported exception
level on the platform. For Armv8-A, this is typically EL3, but
technically EL2 and EL3 are optional so it may need to be
initialized at EL2 or EL1. For Armv8-R, the highest exception
level is always EL2.

This patch moves the initialization outside of the switch_el
block and uses a new macro branch_if_not_highest_el which
dynamically detects whether it is at the highest supported
exception level.

Linux's docs state that CNTFRQ_EL0 should be initialized by the
bootloader. If not set, the the U-Boot prompt countdown hangs.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
2021-07-23 18:53:46 -04:00
..
arm11 common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
arm720t rename symbol: CONFIG_TEGRA -> CONFIG_ARCH_TEGRA 2020-05-15 14:47:35 -04:00
arm920t arm: Remove at91rm9200ek boards 2021-07-07 22:22:42 -04:00
arm926ejs arm: Remove spear600 boards and the rest of SPEAr support 2021-07-07 22:22:42 -04:00
arm946es reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
arm1136 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
arm1176 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armv7 arm: iproc: Add higher speed configurations 2021-07-06 14:07:36 -04:00
armv7m reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
armv8 armv8: Initialize CNTFRQ if at highest exception level 2021-07-23 18:53:46 -04:00
pxa reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
sa1100 reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot-spl.lds spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
u-boot.lds ARM: Specify aligned address for secure section instead of using attributes 2018-09-07 09:11:42 -04:00