From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50E86C433EF for ; Tue, 14 Sep 2021 03:19:52 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 130FC610EA for ; Tue, 14 Sep 2021 03:19:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 130FC610EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4A1FC83488; Tue, 14 Sep 2021 05:19:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589589; bh=jJa1bwAPUVqsU8nwxsTF9w8Xg598kkOmelbXROjZkPY=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=rbdQfchSVjnuDd+MNz0mFe9NYLOiiWKpUDZnjy1EWtrutL8WWZf89c5bb5MZDfFAt ReM99OfMspFgI3RJaqNUWAVv7NGRMsEMcPB6SjR8g8OqwTouZINwNuuxj7xRSxg+pn pGm/JwSdZzZ0hvKIeUnJCxXWqZaWyx3ARd/+CLpvWb0s3v/wnJcsVRg0v/kiw8Vx15 +qbFEWYSkXPrf/ykw5DRmhpVrfZL5k1uml8CH/kkvgMFdXH4G14fWpV80/Ud/jISm1 uabjdvWXqEi9YXMyz4Jm68E4GS506SGafnhHgvIuZ/T3aMr31w7a7CUf3S01W4Z5s8 Q1T7peNT8FIxg== Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CA6F483485; Tue, 14 Sep 2021 05:19:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1631589587; bh=jJa1bwAPUVqsU8nwxsTF9w8Xg598kkOmelbXROjZkPY=; h=From:To:Cc:Subject:Date:From; b=RRn6pRnzAZvSH3ODG9VKf76aO6FQjITeFZ8XjFHFSj4hgEseVSQZdehWai7VWKoBc SKkSyCsVmzcZRMBwFCz2/gQKWIsKmBLWcBT4iIe/SRxZzjwAa40eDuskiwmmuvCXeo 7wc7w6z3rfm/2ZaUoJhsbDWx8t+Tu8ZtJoSlwf13XHq3uvdSpkuETMqvVRHUCF1gKE jo5X9Vi+SUohDUUakp3dIeMv/MU+aDnOlTI7YEyLv0OGxh8A7ulUJJ0m+q0PZf7gHX RgWE8Wggp3caGn/Il0mIiMKpQlvpreJkPtOKx2QOn/syT+MFnao/KKjees9YfkxC6y cf+r9eSHfA4iw== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Simon Glass Subject: [PATCH] bootstage: Add SPL support Date: Tue, 14 Sep 2021 05:19:35 +0200 Message-Id: <20210914031935.273427-1-marex@denx.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 Allow usage of the bootstage facilities in SPL. Signed-off-by: Marek Vasut Cc: Simon Glass --- common/Kconfig.boot | 9 +++++++++ include/bootstage.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/Kconfig.boot b/common/Kconfig.boot index 902a5b8fbea..c230b5c76e4 100644 --- a/common/Kconfig.boot +++ b/common/Kconfig.boot @@ -667,6 +667,15 @@ config SHOW_BOOT_PROGRESS -150 common/cmd_nand.c Incorrect FIT image format 151 common/cmd_nand.c FIT image format OK +config SPL_SHOW_BOOT_PROGRESS + bool "Show boot progress in a board-specific manner" + depends on SPL + help + Defining this option allows to add some board-specific code (calling + a user-provided function show_boot_progress(int) that enables you to + show the system's boot progress on some display (for example, some + LEDs) on your board. For details see SHOW_BOOT_PROGRESS. + endmenu menu "Boot media" diff --git a/include/bootstage.h b/include/bootstage.h index f837a387c8c..8d1989ac0e5 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -220,7 +220,7 @@ enum bootstage_id { */ ulong timer_get_boot_us(void); -#if defined(USE_HOSTCC) || !CONFIG_IS_ENABLED(BOOTSTAGE) +#if defined(USE_HOSTCC) || !CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS) #define show_boot_progress(val) do {} while (0) #else /** -- 2.33.0