arm: mvebu: axp: Set CONFIG_SYS_TCLK globally
authorPali Rohár <pali@kernel.org>
Sat, 31 Jul 2021 12:22:55 +0000 (14:22 +0200)
committerStefan Roese <sr@denx.de>
Wed, 11 Aug 2021 06:42:26 +0000 (08:42 +0200)
This mvebu axp platform always uses fixed 250 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.

Now every #if-#else case of soc.h file defines CONFIG_SYS_TCLK, so remove
useless default CONFIG_SYS_TCLK value from the end of soc.h 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/db-mv784mp-gp.h
include/configs/ds414.h
include/configs/maxbcm.h
include/configs/theadorable.h

index e29c0f3..8e8a405 100644 (file)
 
 #define BOOT_FROM_UART         0x2
 #define BOOT_FROM_SPI          0x3
-#endif
 
-/* TCLK Core Clock definition */
-#ifndef CONFIG_SYS_TCLK
 #define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 #endif
 
index b3c4079..dd0c3cb 100644 (file)
@@ -16,7 +16,6 @@
  * for DDR ECC byte filling in the SPL before loading the main
  * U-Boot into it.
  */
-#define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
 /* I2C */
 #define CONFIG_SYS_I2C_LEGACY
index 4475de2..5d40128 100644 (file)
@@ -18,7 +18,6 @@
  * for DDR ECC byte filling in the SPL before loading the main
  * U-Boot into it.
  */
-#define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
 /* I2C */
 #define CONFIG_SYS_I2C_LEGACY
index c456921..fc23932 100644 (file)
@@ -15,7 +15,6 @@
  * for DDR ECC byte filling in the SPL before loading the main
  * U-Boot into it.
  */
-#define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
 /* I2C */
 #define CONFIG_SYS_I2C_LEGACY
index c6a2cfe..760713d 100644 (file)
@@ -15,7 +15,6 @@
  * for DDR ECC byte filling in the SPL before loading the main
  * U-Boot into it.
  */
-#define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
 /*
  * The debugging version enables USB support via defconfig.