From patchwork Mon Jan 17 09:16:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1580636 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=MDmn+ef7; 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)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JcmWV1M6Bz9ssD for ; Mon, 17 Jan 2022 20:17:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84C9D80646; Mon, 17 Jan 2022 10:17:04 +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="MDmn+ef7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D80E480F68; Mon, 17 Jan 2022 10:17:02 +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-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 CFA43803CE for ; Mon, 17 Jan 2022 10:16:59 +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-wm1-x333.google.com with SMTP id d187-20020a1c1dc4000000b003474b4b7ebcso21113294wmd.5 for ; Mon, 17 Jan 2022 01:16:59 -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=TUj0toQ0oxou3NSIZUsICLcJLky8f8CBlS00n9aG2bI=; b=MDmn+ef7CklxtFrezACfiSpFd5qOa6pMObk7ztyAzj6OCIiXm8Utyt0giXmF2CU5Vp 10Wy07CTZdNQ0bNjWg/Gco1ekljiKNtf7JIyZhH4wgsreUh5EEUcyA7zDhlrlHPPdAEA 1cKa9jXIp6uEHf6OVKZ6uTq9GxBsguk2r9difGA74+iFcz9ltfdpNj5Ae4slICOyiF4t 580TvxpyHnpdB4P/m6qHBKVAVJs9FTSU5ggIWdCRZBq/h+vrdJTstNYBg4NCj/0RXifm CtdKegxhHkiCuFk59tJ86NU+ZCt64ixV20hN953CLAVbcz8mk3bMWfwF0rXRARNTGcOs fYLA== 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=TUj0toQ0oxou3NSIZUsICLcJLky8f8CBlS00n9aG2bI=; b=k/F6YQ1dIBbnz+8iXYXBrebmhOF2zGV/tN2VhqDBMJ3+2a5lumoKgzXMovYGlkT+UI tkSJsZhrZnVTrianAQSkcFoYW0+cv2cngmJFJfpcJGDBt96hQHvXliaaqMEyl0NzDeMx 7r2NqKzLnj5wf5Gz/ynq9urIRQGwZMWPQrstmH7R6ukKGaAviA3ASf8tDlH+mhgh+S+Q 2rnJpr0lqnBucjibJm2OSl+cAKp3CiF8oyxrMQ6wojw5ubpKqS9jqJVjAI1KqAVpodTh HziKE7m68Z5xkzZOWjN3qQRcwbu4S0EhiLxvTojDd9h2NUZzkPUSO6+I0qceYC5GlXE7 U38A== X-Gm-Message-State: AOAM533YEiq0qxQFoAz5ixqavWzpWYkGFIPc6wvFY90ck4piAomIUNbB 612+xTIRRiqQ06Ul8qzr2lreYqgqWDJlA41e X-Google-Smtp-Source: ABdhPJxFh3L3jyrgG35Dt0Yw+03P3lN41PXlLLGBk4Z2hqYUiMcTqo/WtKOlCaoTI+WDff+JwJolqw== X-Received: by 2002:a05:6000:114d:: with SMTP id d13mr18960324wrx.32.1642411019035; Mon, 17 Jan 2022 01:16:59 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id t19sm2185447wmq.42.2022.01.17.01.16.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jan 2022 01:16:58 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma , Artem Lapkin , Aswath Govindraju , Bin Meng , Franck LENORMAND , Heinrich Schuchardt , Jaehoon Chung , Joel Peshkin , Jorge Ramirez-Ortiz , Kory Maincent , =?utf-8?q?Marek_Beh=C3=BAn?= , Maxime Ripard , Peng Fan , Pragnesh Patel , Ramon Fried , Rick Chen , Roland Gaudig , Simon Glass Subject: [PATCH v2] cmd: Add Kconfig option for multiprocessor cmds Date: Mon, 17 Jan 2022 10:16:50 +0100 Message-Id: <2ffe8c0e4ea431ae583005d67b9ea1ea037cf83b.1642411008.git.michal.simek@xilinx.com> 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 --- Changes in v2: - Move config MP to Kconfig (General setup menu) - Fix description and s/support/Support/ to be consistent with other entries which also start with upper letter. - all reported by trini Kconfig | 6 ++++++ cmd/Kconfig | 11 ++++++----- cmd/Makefile | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Kconfig b/Kconfig index c46f4fce8625..b0e45cd236f0 100644 --- 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 diff --git a/cmd/Kconfig b/cmd/Kconfig index 5b30b13e438f..5f2668a5b173 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1820,12 +1820,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" 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