From patchwork Fri Jan 14 12:07:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1580006 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=GFk8ftYy; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jb0Rm4BH7z9sP7 for ; Fri, 14 Jan 2022 23:07:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C95883420; Fri, 14 Jan 2022 13:07:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="GFk8ftYy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B55E583420; Fri, 14 Jan 2022 13:07:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EDBDB811B3 for ; Fri, 14 Jan 2022 13:07:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x536.google.com with SMTP id z22so34174794edd.12 for ; Fri, 14 Jan 2022 04:07:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IElf8hkM+Bdzb7/wqSRsLLaaJbDn/qPP/TTz1Nu3YB4=; b=GFk8ftYyI2WlkzSGtgdX1he2i1tVrJJ35fhJ3UTYXxIbBhaHDX9IB68Z4pPFjtyEMo OKvVd9a100vqfK5IbpmGs4o0eU3JY0TIvI8AXK3l5NGrFv+zgozTtmdFOYDsNNX/uFFz 7GAjAzI9wf7mm1bO2tsGfhuLhvhxXZ+BnjIHZQa8RuWHTN+PmGctPhn/6D6FWZjz+5/Y RTw47aF0dlPEXG2/OBDJYZFPC/JMZSNV+HQEzstUXZJGnkEEPBuR++H2ihO998/jZCOA AFhgKZrKCsoG0bKEZ9eYD9ncBiIl9TCNxKmOrPC3hoFx5rTcMH+t0BrpR3QBJ47c6QYl EGdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=IElf8hkM+Bdzb7/wqSRsLLaaJbDn/qPP/TTz1Nu3YB4=; b=4z/FDLVWRJmzvcpsI0uL+VsXGtgAwmuojeKpPti8sqAOsCcYbn9V07n2oqyDtBskE6 Plph/Rvc+XudVh+msnfzMUmbF40Smkc0/2Ym3UKbgyYNVmlJpOCpYntT9kRBZrZ7M7fN 49cBkpPaXZEFOOAegm1PE92pz++y3fn3NTi5p+jlHW+SC8eZMXR5gE4ddPpPePJ4Lniu EIawHy+bKKc1OjEDQKVtzi1+tiYTILg8tAYhaI2YgJ9KBWdC4JoOpWcbAiJRLbpGwpPk umx5K/ojHE8iIwmNvA2jrw2UD8O8QmlzC1iLExe85eWEp0n7f+m/YdrG1Zzz31NeGzqc WFrg== X-Gm-Message-State: AOAM533bMHVPCuSLvG07+m35N5mupt3jTaXo/UZ0jo4OeXBskiUHO9GR cKz5K5fsdvEhaVgw7Z8W1uvEMJEP18lk+6bZ X-Google-Smtp-Source: ABdhPJzOEwIsPhxwNec3vk9RRywZRSQ+zouBuHDaAL0HwMixgMwWiGU5bDqPDJc7aCkKEbaJFW9SRw== X-Received: by 2002:aa7:dad1:: with SMTP id x17mr4657236eds.98.1642162056441; Fri, 14 Jan 2022 04:07:36 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id ne35sm1846954ejc.48.2022.01.14.04.07.35 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jan 2022 04:07:35 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma , Aswath Govindraju , Aymen Sghaier , Bin Meng , Franck LENORMAND , Heinrich Schuchardt , Igor Opaniuk , Jaehoon Chung , Joel Peshkin , Jorge Ramirez-Ortiz , Kory Maincent , Marek Szyprowski , Maxime Ripard , Peng Fan , Pragnesh Patel , Roland Gaudig , Simon Glass Subject: [PATCH] cmd: Add Kconfig option for multiprocessor cmds Date: Fri, 14 Jan 2022 13:07:34 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Ashok Reddy Soma 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 Signed-off-by: Michal Simek --- cmd/Kconfig | 8 ++++++++ cmd/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 5b30b13e438f..1e3eef4437b5 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1827,6 +1827,14 @@ config MP different processors in multiprocessor cases. +config CMD_MP + bool "support for multiprocessor commands" + depends on MP + default y + help + This enables commands to bringup different processors + in multiprocessor cases. + config CMD_TIMER bool "timer" help diff --git a/cmd/Makefile b/cmd/Makefile index 891819ae0f6b..9e8074bb7e49 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -101,7 +101,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