All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: mvebu: axp: Properly check for Armada XP in mach/soc.h
@ 2021-08-11 18:53 Pali Rohár
  2021-08-11 18:53 ` [PATCH 2/2] arm: mvebu: a37xx: Define CONFIG_SYS_REF_CLK and use it instead of get_ref_clk() Pali Rohár
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Pali Rohár @ 2021-08-11 18:53 UTC (permalink / raw)
  To: Stefan Roese, Marek Behún; +Cc: u-boot

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>
---
 arch/arm/mach-mvebu/include/mach/soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-mvebu/include/mach/soc.h b/arch/arm/mach-mvebu/include/mach/soc.h
index 8e8a4058550e..aab61f7c15cf 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))
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-09-01 12:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 18:53 [PATCH 1/2] arm: mvebu: axp: Properly check for Armada XP in mach/soc.h Pali Rohár
2021-08-11 18:53 ` [PATCH 2/2] arm: mvebu: a37xx: Define CONFIG_SYS_REF_CLK and use it instead of get_ref_clk() Pali Rohár
2021-08-16 10:02   ` [PATCH v2] " Pali Rohár
2021-08-17  7:47     ` Stefan Roese
2021-08-17 12:50       ` Marek Behún
2021-08-17 12:56         ` Stefan Roese
2021-09-01  9:12     ` Stefan Roese
2021-09-01 12:14       ` Tom Rini
2021-09-01 12:32         ` Pali Rohár
2021-09-01 12:35           ` Tom Rini
2021-09-01 12:40             ` Pali Rohár
2021-09-01 12:41               ` Tom Rini
2021-09-01 12:46                 ` Pali Rohár
2021-09-01 12:58                   ` Tom Rini
2021-09-01 12:56                 ` Tom Rini
2021-08-16  7:58 ` [PATCH 1/2] arm: mvebu: axp: Properly check for Armada XP in mach/soc.h Stefan Roese
2021-09-01  9:09 ` Stefan Roese

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.