]> git.sur5r.net Git - u-boot/commitdiff
arm: mvebu: move SYS_MVEBU_PLL_CLOCK to Kconfig
authorChris Packham <judge.packham@gmail.com>
Wed, 26 Oct 2016 01:08:30 +0000 (14:08 +1300)
committerStefan Roese <sr@denx.de>
Thu, 1 Dec 2016 08:09:20 +0000 (09:09 +0100)
The main PLL frequency is 2GHz for Armada-XP and 1GHZ for Armada 375,
38x and 39x.

[ Linux commit ae142bd9976532aa5232ab0b00e621690d8bfe6a ]

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Kconfig
arch/arm/mach-mvebu/include/mach/soc.h

index 6e8026bde25308369a641aa6a57f96e7bcf8f458..7733936be540f032082c5f4922545f83ed237188 100644 (file)
@@ -36,6 +36,12 @@ config ARMADA_8K
        bool
        select ARM64
 
+# Armada PLL frequency (used for NAND clock generation)
+config SYS_MVEBU_PLL_CLOCK
+       int
+       default "2000000000" if ARMADA_XP || ARMADA_3700 || ARMADA_8K
+       default "1000000000" if ARMADA_38X || ARMADA_375
+
 # Armada XP/38x SoC types...
 config MV78230
        bool
index 731fe65ae4b49a76e6e309f7c1ca21445cf3e915..0f69f3341be013852dc625ef7d6bd48eb3c0ce9c 100644 (file)
@@ -31,9 +31,6 @@
 #define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 #endif
 
-/* Armada XP PLL frequency (used for NAND clock generation) */
-#define CONFIG_SYS_MVEBU_PLL_CLOCK     2000000000
-
 /* SOC specific definations */
 #define INTREG_BASE            0xd0000000
 #define INTREG_BASE_ADDR_REG   (INTREG_BASE + 0x20080)