aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2022-04-13 17:47:18 +0800
committerTom Rini <trini@konsulko.com>2022-04-21 14:32:40 -0400
commitbf8c4ced3c324f4b520dfddc818b913213768432 (patch)
tree95a77b073271eddaf395ef36002d50225912c835
parentd8c033a9cdb396975496af96f53ced7ad07fbc97 (diff)
downloadu-boot-bf8c4ced3c324f4b520dfddc818b913213768432.zip
u-boot-bf8c4ced3c324f4b520dfddc818b913213768432.tar.gz
u-boot-bf8c4ced3c324f4b520dfddc818b913213768432.tar.bz2
arch: arm: move COUNTER_FREQUENCY from versal to arm
Make COUNTER_FREQUENCY usable to armv8 and armv7-a, not limited to versal. And update help message. Signed-off-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--arch/arm/Kconfig12
-rw-r--r--arch/arm/mach-versal/Kconfig6
2 files changed, 12 insertions, 6 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9470122..46d4c1e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -20,6 +20,18 @@ config ARM64_CRC32
not be present on all ARMv8.0, but is always present on ARMv8.1 and
newer.
+config COUNTER_FREQUENCY
+ int "Timer clock frequency"
+ depends on ARM64 || CPU_V7A
+ default 0
+ help
+ For platforms with ARMv8-A and ARMv7-A which features a system
+ counter, those platforms needs software to program the counter
+ frequency. Setup time clock frequency for certain platform.
+ 0 means no need to configure the system counter frequency.
+ For platforms needs the frequency set in U-Boot with a
+ pre-defined value, should have the macro defined as a non-zero value.
+
config POSITION_INDEPENDENT
bool "Generate position-independent pre-relocation code"
depends on ARM64 || CPU_V7A
diff --git a/arch/arm/mach-versal/Kconfig b/arch/arm/mach-versal/Kconfig
index 0c6ad34..645f06a 100644
--- a/arch/arm/mach-versal/Kconfig
+++ b/arch/arm/mach-versal/Kconfig
@@ -24,12 +24,6 @@ config SYS_CONFIG_NAME
config SYS_MALLOC_LEN
default 0x2000000
-config COUNTER_FREQUENCY
- int "Timer clock frequency"
- default 0
- help
- Setup time clock frequency for certain platform
-
config ZYNQ_SDHCI_MAX_FREQ
default 200000000