]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: Add Kconfig option for multiprocessor cmds
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Mon, 17 Jan 2022 09:16:50 +0000 (10:16 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 24 Jan 2022 15:35:10 +0000 (10:35 -0500)
Add Kconfig option(CONFIG_CMD_MP) to enable or disable multiprocessor
commands. Compile cmd/mp.c based on CONFIG_CMD_MP.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Kconfig
cmd/Kconfig
cmd/Makefile

diff --git a/Kconfig b/Kconfig
index c46f4fce8625dffc1a27db186b91d6e8a42707a2..b0e45cd236f0fa7c43b65627dbee258d2e4cbb22 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -454,6 +454,12 @@ config SYS_SRAM_SIZE
        default 0x10000 if TARGET_TRICORDER
        default 0x0
 
+config MP
+       bool "Support for multiprocessor"
+       help
+         This provides an option to bringup different processors
+         in multiprocessor cases.
+
 config EXAMPLES
        bool "Compile API examples"
        depends on !SANDBOX
index 84ede90eee92127ce3c14699f8fa0da55f2cdc4a..5e25e45fd288ed5f0bc5e33a2ec0995dda691c61 100644 (file)
@@ -1827,12 +1827,13 @@ config CMD_SLEEP
        help
          Delay execution for some time
 
-config MP
-       bool "support for multiprocessor"
+config CMD_MP
+       bool "support for multiprocessor commands"
+       depends on MP
+       default y
        help
-         This provides an option to brinup
-         different processors in multiprocessor
-         cases.
+         This enables commands to bringup different processors
+         in multiprocessor cases.
 
 config CMD_TIMER
        bool "timer"
index fb133e37037e6bbd20c07c85708e7ad1e3e88652..166c652d9825e77f62d76f7cb3bd6fdf98d286da 100644 (file)
@@ -100,7 +100,7 @@ obj-$(CONFIG_CMD_MDIO) += mdio.o
 obj-$(CONFIG_CMD_SLEEP) += sleep.o
 obj-$(CONFIG_CMD_MMC) += mmc.o
 obj-$(CONFIG_CMD_OPTEE_RPMB) += optee_rpmb.o
-obj-$(CONFIG_MP) += mp.o
+obj-$(CONFIG_CMD_MP) += mp.o
 obj-$(CONFIG_CMD_MTD) += mtd.o
 obj-$(CONFIG_CMD_MTDPARTS) += mtdparts.o
 obj-$(CONFIG_CMD_CLONE) += clone.o