]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: axp: Properly check for Armada XP in mach/soc.h
authorPali Rohár <pali@kernel.org>
Wed, 11 Aug 2021 18:53:29 +0000 (20:53 +0200)
committerStefan Roese <sr@denx.de>
Wed, 1 Sep 2021 06:07:04 +0000 (08:07 +0200)
File mach/soc.h is included also in 64-bit mvebu processors, so define
Armada XP related macros only when compiling for Armada XP.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/include/mach/soc.h

index 8e8a4058550eb2e290c79e32009b44b63ed7c706..aab61f7c15cf32b66429b945a492c3526c03f7a3 100644 (file)
 #define BOOT_FROM_SPI          0x3
 
 #define CONFIG_SYS_TCLK                200000000       /* 200MHz */
-#else
+#elif defined(CONFIG_ARMADA_XP)
 /* SAR values for Armada XP */
 #define CONFIG_SAR_REG         (MVEBU_REGISTER(0x18230))
 #define CONFIG_SAR2_REG                (MVEBU_REGISTER(0x18234))