]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: Move R5 specific code into new r5/ directory
authorAndrew Davis <afd@ti.com>
Tue, 14 Nov 2023 15:59:48 +0000 (09:59 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 22 Nov 2023 17:04:13 +0000 (12:04 -0500)
This makes it clear these are only to be used by the R5 builds of SPL.
And this will be used to later more cleanly split the two builds.

Signed-off-by: Andrew Davis <afd@ti.com>
20 files changed:
arch/arm/mach-k3/Makefile
arch/arm/mach-k3/r5/Makefile [new file with mode: 0644]
arch/arm/mach-k3/r5/am62ax/Makefile [moved from arch/arm/mach-k3/am62ax/Makefile with 100% similarity]
arch/arm/mach-k3/r5/am62ax/am62a_qos_data.c [moved from arch/arm/mach-k3/am62ax/am62a_qos_data.c with 100% similarity]
arch/arm/mach-k3/r5/am62ax/clk-data.c [moved from arch/arm/mach-k3/am62ax/clk-data.c with 100% similarity]
arch/arm/mach-k3/r5/am62ax/dev-data.c [moved from arch/arm/mach-k3/am62ax/dev-data.c with 100% similarity]
arch/arm/mach-k3/r5/am62x/Makefile [moved from arch/arm/mach-k3/am62x/Makefile with 100% similarity]
arch/arm/mach-k3/r5/am62x/clk-data.c [moved from arch/arm/mach-k3/am62x/clk-data.c with 100% similarity]
arch/arm/mach-k3/r5/am62x/dev-data.c [moved from arch/arm/mach-k3/am62x/dev-data.c with 100% similarity]
arch/arm/mach-k3/r5/j7200/Makefile [moved from arch/arm/mach-k3/j7200/Makefile with 100% similarity]
arch/arm/mach-k3/r5/j7200/clk-data.c [moved from arch/arm/mach-k3/j7200/clk-data.c with 100% similarity]
arch/arm/mach-k3/r5/j7200/dev-data.c [moved from arch/arm/mach-k3/j7200/dev-data.c with 100% similarity]
arch/arm/mach-k3/r5/j721e/Makefile [moved from arch/arm/mach-k3/j721e/Makefile with 100% similarity]
arch/arm/mach-k3/r5/j721e/clk-data.c [moved from arch/arm/mach-k3/j721e/clk-data.c with 100% similarity]
arch/arm/mach-k3/r5/j721e/dev-data.c [moved from arch/arm/mach-k3/j721e/dev-data.c with 100% similarity]
arch/arm/mach-k3/r5/j721s2/Makefile [moved from arch/arm/mach-k3/j721s2/Makefile with 100% similarity]
arch/arm/mach-k3/r5/j721s2/clk-data.c [moved from arch/arm/mach-k3/j721s2/clk-data.c with 100% similarity]
arch/arm/mach-k3/r5/j721s2/dev-data.c [moved from arch/arm/mach-k3/j721s2/dev-data.c with 100% similarity]
arch/arm/mach-k3/r5/lowlevel_init.S [moved from arch/arm/mach-k3/lowlevel_init.S with 100% similarity]
arch/arm/mach-k3/r5/r5_mpu.c [moved from arch/arm/mach-k3/r5_mpu.c with 96% similarity]

index c7ca0fdce5629ba8c9550376f618339d11a2c76b..215c755c5dcf859fd25a5f532264fc4610a7c18b 100644 (file)
@@ -3,12 +3,8 @@
 # Copyright (C) 2017-2018 Texas Instruments Incorporated - https://www.ti.com/
 #      Lokesh Vutla <lokeshvutla@ti.com>
 
-obj-$(CONFIG_SOC_K3_J721E) += j721e/ j7200/
-obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
-obj-$(CONFIG_SOC_K3_AM625) += am62x/
-obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
+obj-$(CONFIG_CPU_V7R) += r5/
 obj-$(CONFIG_ARM64) += arm64-mmu.o
-obj-$(CONFIG_CPU_V7R) += r5_mpu.o lowlevel_init.o
 obj-$(CONFIG_ARM64) += cache.o
 obj-$(CONFIG_OF_LIBFDT) += common_fdt.o
 ifeq ($(CONFIG_OF_LIBFDT)$(CONFIG_OF_SYSTEM_SETUP),yy)
diff --git a/arch/arm/mach-k3/r5/Makefile b/arch/arm/mach-k3/r5/Makefile
new file mode 100644 (file)
index 0000000..8a6af73
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
+#      Andrew Davis <afd@ti.com>
+
+obj-$(CONFIG_SOC_K3_J721E) += j721e/
+obj-$(CONFIG_SOC_K3_J721E) += j7200/
+obj-$(CONFIG_SOC_K3_J721S2) += j721s2/
+obj-$(CONFIG_SOC_K3_AM625) += am62x/
+obj-$(CONFIG_SOC_K3_AM62A7) += am62ax/
+
+obj-y += lowlevel_init.o
+obj-y += r5_mpu.o
similarity index 96%
rename from arch/arm/mach-k3/r5_mpu.c
rename to arch/arm/mach-k3/r5/r5_mpu.c
index 2de5d28aebf99805b58ddcf0d7a6effe2c724664..3dbbcaee5f338eaa1e25486da26f7bb478f48114 100644 (file)
@@ -6,9 +6,10 @@
  *     Lokesh Vutla <lokeshvutla@ti.com>
  */
 
+#include <config.h>
 #include <asm/io.h>
 #include <linux/kernel.h>
-#include "common.h"
+#include <asm/armv7_mpu.h>
 
 struct mpu_region_config k3_mpu_regions[16] = {
        /*