ARM: tegra: Fix save_boot_params() prototype
[oweals/u-boot.git] / arch / arm / mach-tegra / cache.c
index 94f5bce90ec3fc19f93a0f4044671535d9eade57..d7063490e222092e04e634df94e3edafe225ecad 100644 (file)
@@ -1,17 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2013-2014, NVIDIA CORPORATION.  All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 /* Tegra cache routines */
@@ -19,8 +8,11 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/ap.h>
+#if IS_ENABLED(CONFIG_TEGRA_GP_PADCTRL)
 #include <asm/arch/gp_padctrl.h>
+#endif
 
+#ifndef CONFIG_ARM64
 void config_cache(void)
 {
        u32 reg = 0;
@@ -44,3 +36,4 @@ void config_cache(void)
        reg |= 2;
        asm("mcr p15, 1, %0, c9, c0, 2" : : "r" (reg));
 }
+#endif