summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-04-15 11:32:18 +0200
committerTom Warren <twarren@nvidia.com>2019-06-05 09:16:33 -0700
commitb64e0b9231e1fd700615cf88cd66079d257849d8 (patch)
tree93e60fbe43b397ee858bf35f918a8d7b6adcf4f3 /arch/arm/mach-tegra/board.c
parente9c58f2bb855e02d72a003407afe49d632fd4fc5 (diff)
ARM: tegra: Guard clock code with a Kconfig symbol
Clock code is not relevant on all Tegra SoC generations, so guard it with a Kconfig symbol that can be selected by the generations that need it. This is in preparation for unifying Tegra186 code with the code used on older generations. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board.c')
-rw-r--r--arch/arm/mach-tegra/board.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board.c b/arch/arm/mach-tegra/board.c
index 4e159075d3..209416e6ad 100644
--- a/arch/arm/mach-tegra/board.c
+++ b/arch/arm/mach-tegra/board.c
@@ -9,7 +9,9 @@
#include <ns16550.h>
#include <spl.h>
#include <asm/io.h>
+#if IS_ENABLED(CONFIG_TEGRA_CLKRST)
#include <asm/arch/clock.h>
+#endif
#include <asm/arch/funcmux.h>
#include <asm/arch/mc.h>
#include <asm/arch/tegra.h>