arm: mvebu: msys: Set CONFIG_SYS_TCLK globally
authorPali Rohár <pali@kernel.org>
Sat, 31 Jul 2021 12:22:54 +0000 (14:22 +0200)
committerStefan Roese <sr@denx.de>
Wed, 11 Aug 2021 06:42:26 +0000 (08:42 +0200)
This mvebu msys platform always uses fixed 200 MHz TCLK. So specify this
CONFIG_SYS_TCLK option in msys section of global file soc.h file instead of
manual configuration in every board file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/include/mach/soc.h
include/configs/crs3xx-98dx3236.h
include/configs/db-xc3-24g4xg.h

index eb6906a..e29c0f3 100644 (file)
 #define BOOT_FROM_NAND         0x1
 #define BOOT_FROM_UART         0x2
 #define BOOT_FROM_SPI          0x3
+
+#define CONFIG_SYS_TCLK                200000000       /* 200MHz */
 #else
 /* SAR values for Armada XP */
 #define CONFIG_SAR_REG         (MVEBU_REGISTER(0x18230))
index e2ba7b8..3feaa60 100644 (file)
@@ -12,7 +12,6 @@
 
 #define CONFIG_SYS_BOOTM_LEN   (64 * 1024 * 1024) /* 64 MB */
 #define CONFIG_SYS_KWD_CONFIG  $(CONFIG_BOARDDIR)/kwbimage.cfg
-#define CONFIG_SYS_TCLK                200000000       /* 200MHz */
 
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI
index 0e9ccd9..f04ae48 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #define CONFIG_SYS_KWD_CONFIG  $(CONFIG_BOARDDIR)/kwbimage.cfg
-#define CONFIG_SYS_TCLK                200000000       /* 200MHz */
 
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI