]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Convert CONFIG_CPU_FREQ_HZ to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 17 Dec 2021 23:08:42 +0000 (18:08 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 27 Dec 2021 21:20:19 +0000 (16:20 -0500)
This converts the following to Kconfig:
   CONFIG_CPU_FREQ_HZ

Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-zynqmp-r5/Kconfig
configs/xilinx_zynqmp_r5_defconfig
include/configs/xilinx_zynqmp_r5.h
include/configs/zynq-common.h

index 5e017541339554f77c05fe6e383b5675ade37d5e..f14514b3c7c16348f8dff03ce97f11ea5b2419c4 100644 (file)
@@ -21,6 +21,12 @@ config SYS_CONFIG_NAME
          Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header
          will be used for board configuration.
 
+config CPU_FREQ_HZ
+       int "CPU frequency"
+       default 800000000
+       help
+         The value, in Hz, that the CPU clock is running at.
+
 config SYS_MALLOC_F_LEN
        default 0x600
 
index a9c3c4a03e81e18ecba9f918202fba0541217839..98f46cf0205a0d2045b4d81ad9e2d82346abfa9e 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_ENV_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="zynqmp-r5"
 CONFIG_DEBUG_UART_BASE=0xff010000
 CONFIG_DEBUG_UART_CLOCK=100000000
+CONFIG_CPU_FREQ_HZ=500000000
 CONFIG_DEBUG_UART=y
 CONFIG_SYS_LOAD_ADDR=0x0
 CONFIG_BOOTSTAGE=y
index 6d5b81e05e161abb4fb7523cae9be187de33f229..3ec99e062df5f8ca319e285dc783e65798d8522e 100644 (file)
@@ -8,9 +8,6 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS
 
-/* CPU clock */
-#define CONFIG_CPU_FREQ_HZ     500000000
-
 /* Serial drivers */
 /* The following table includes the supported baudrates */
 #define CONFIG_SYS_BAUDRATE_TABLE  \
index 8f8a9c7479c37a30120dc1a27cf45a5880b2a352..88c6490d81cda8546cde4270873f71e405b9131e 100644 (file)
@@ -9,11 +9,6 @@
 #ifndef __CONFIG_ZYNQ_COMMON_H
 #define __CONFIG_ZYNQ_COMMON_H
 
-/* CPU clock */
-#ifndef CONFIG_CPU_FREQ_HZ
-# define CONFIG_CPU_FREQ_HZ    800000000
-#endif
-
 #define CONFIG_REMAKE_ELF
 
 /* Cache options */