summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-11 21:53:29 +0300
committerStefan Roese <sr@denx.de>2021-09-01 09:07:04 +0300
commit3404aa464696fbb5a976bdde0746e6ca82b8af82 (patch)
tree9b357d8215da21bf0e3bc22cfa2af140fa4746cf /arch/arm
parente515a33040af6c637f8f17d9bd4166b0c3bba22d (diff)
downloadu-boot-3404aa464696fbb5a976bdde0746e6ca82b8af82.tar.xz
arm: mvebu: axp: Properly check for Armada XP in mach/soc.h
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mvebu/include/mach/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h
index 8e8a405855..aab61f7c15 100644
--- a/arch/arm/mach-mvebu/include/mach/soc.h
+++ b/arch/arm/mach-mvebu/include/mach/soc.h
@@ -189,7 +189,7 @@
#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))