]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: zynqmp: Move zynqmp commands from board/ to arch/
authorCharlie Johnston <charlie.johnston@loftorbital.com>
Wed, 10 Apr 2024 19:50:08 +0000 (12:50 -0700)
committerMichal Simek <michal.simek@amd.com>
Mon, 17 Jun 2024 14:02:28 +0000 (16:02 +0200)
The zynqmp cmds.c is currently tied to the board but the commands
contained within are more closely tied to the architecture. To
allow usage of those commands when the architecture is ZynqMP but
the board is not, this change moves the cmds into the arch/ tree.

The source file is renamed to zynqmp.c to reflect the command name
as well.

Signed-off-by: Charlie Johnston <charlie.johnston@loftorbital.com>
Link: https://lore.kernel.org/r/20240410195008.405061-2-charlie.johnston@loftorbital.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/Kconfig
arch/arm/mach-zynqmp/Makefile
arch/arm/mach-zynqmp/zynqmp.c [moved from board/xilinx/zynqmp/cmds.c with 100% similarity]
board/xilinx/zynqmp/Kconfig [deleted file]
board/xilinx/zynqmp/Makefile

index 0d2238ace1ee61cd91403bdf3cd73c97ff319a7a..aea13622b68a97eabdf656ab7e46df7fe49aefeb 100644 (file)
@@ -189,7 +189,18 @@ config SD1_LSHFT_MODE
 
 endchoice
 
+config CMD_ZYNQMP
+       bool "Enable ZynqMP specific commands"
+       depends on ZYNQMP_FIRMWARE
+       default y
+       help
+         Enable ZynqMP specific commands like "zynqmp secure"
+         which is used for zynqmp secure image verification.
+         The secure image is a xilinx specific BOOT.BIN with
+         either authentication or encryption or both encryption
+         and authentication feature enabled while generating
+         BOOT.BIN using Xilinx bootgen tool.
+
 source "board/xilinx/Kconfig"
-source "board/xilinx/zynqmp/Kconfig"
 
 endif
index 8f897a37d14e6f8571548d541868df2a37096145..38be1627eeba591807e0eb2a32ef821cab66c7c1 100644 (file)
@@ -8,3 +8,7 @@ obj-$(CONFIG_MP)        += mp.o
 obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o psu_spl_init.o
 obj-$(CONFIG_SPL_ZYNQMP_DRAM_ECC_INIT) += ecc_spl_init.o
 obj-$(CONFIG_$(SPL_)ZYNQMP_PSU_INIT_ENABLED)   += psu_spl_init.o
+
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_CMD_ZYNQMP) += zynqmp.o
+endif # !CONFIG_SPL_BUILD
diff --git a/board/xilinx/zynqmp/Kconfig b/board/xilinx/zynqmp/Kconfig
deleted file mode 100644 (file)
index ffa2f02..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (c) 2018, Xilinx, Inc.
-#
-# SPDX-License-Identifier: GPL-2.0
-
-if ARCH_ZYNQMP
-
-config CMD_ZYNQMP
-       bool "Enable ZynqMP specific commands"
-       depends on ZYNQMP_FIRMWARE
-       default y
-       help
-         Enable ZynqMP specific commands like "zynqmp secure"
-         which is used for zynqmp secure image verification.
-         The secure image is a xilinx specific BOOT.BIN with
-         either authentication or encryption or both encryption
-         and authentication feature enabled while generating
-         BOOT.BIN using Xilinx bootgen tool.
-
-endif
index 204e4fadf0eddc098bef76920bd5bc0624809753..9ab50eca400ca4cc7f78a9bbf7a52ab871c306ad 100644 (file)
@@ -40,10 +40,6 @@ $(obj)/pm_cfg_obj.o: $(shell cd $(srctree); readlink -f $(CONFIG_ZYNQMP_SPL_PM_C
 endif
 endif
 
-ifndef CONFIG_SPL_BUILD
-obj-$(CONFIG_CMD_ZYNQMP) += cmds.o
-endif
-
 # Suppress "warning: function declaration isn't a prototype"
 CFLAGS_REMOVE_psu_init_gpl.o := -Wstrict-prototypes