Message ID | 20211008195655.46046-6-mr.nuke.me@gmail.com |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=i9HqvgRE; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4HQzW81cg6z9sPB for <incoming@patchwork.ozlabs.org>; Sat, 9 Oct 2021 06:57:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F12AA8362D; Fri, 8 Oct 2021 21:57:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="i9HqvgRE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2EB93833D4; Fri, 8 Oct 2021 21:57:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) (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 09FB7833D4 for <u-boot@lists.denx.de>; Fri, 8 Oct 2021 21:57:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oo1-xc2c.google.com with SMTP id u5-20020a4ab5c5000000b002b6a2a05065so2109699ooo.0 for <u-boot@lists.denx.de>; Fri, 08 Oct 2021 12:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0JdfSbgr9U20G5C5Z+VGkGDDdIeG6Do3l95a2qSROEc=; b=i9HqvgREKHMgsWGMafmf8+z3PJe8LAoD+E0PeDknxT97ie2ZM5vLRGeTk0xnv0CXV/ QVLkTR8WG5Scxx6R5tj4DwDnWzPNAKu+xnJRhvvKNiqv48xAgnq5XHL76ce/88iwwUmy Y8rrL23N5woy52X8l+78AhQ0jcjI7j6wAQEucBg//TqijjL/hillQ+8d2CfYq1RDxIzV +zPUxu597lomOP2JV47QiLl/69DEtcXw2i42lRuYrp9NAe2HqP9vasCuEsFl0FBOEp7O Tdtni5l8fWFURlwKTJ62Mu8weRFDpKqzgidsOvdrnvCct/IvFhf40JieyrYD68JW0TR8 mnrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0JdfSbgr9U20G5C5Z+VGkGDDdIeG6Do3l95a2qSROEc=; b=IORYRjrz/0J6aiCOpBNtdPSSDxVl9twmuuy7/RNYKkB8zOsdevNuCout6T0LAJh2bb sbNMYG2UA4fYL6HEuvYH6o2fNV/zSFN4y1ounMtt0ojFTJtZRuQ+cvMRAIf8kmpfYnIB 8VRrY+o6l3IqvIZELb2rKf2sBa8b7VtGno7sfJHK1NwFlLXOBtZ99aOB4+J8ctH8Y+rR 6ukoTKI9InLi0O/kKq/DuF3hAKghgHjaqXq2bsP3calnt2rLQVTuLjCEuV0APpGyApF6 pSNVhLcZYGBr3roVnaqezIhcMvJLkzuqulmkyNg+JqC3jD1UHFsITQLZV+cyiEg5NE2l /QJw== X-Gm-Message-State: AOAM531EjgBG0VyyOy4r8iwGWnuqZibyMvWMn+ncFaZgVirGm5bly7HN LL1NQ6D81yvO/0B6tA0MjbjjzfiOdHU= X-Google-Smtp-Source: ABdhPJxr9mZG9PIyF1KfA5CVa1Dt5waJrQ803Uu5mylabfcU9aupOv7cSEzHYQpeFx+IATrlmSDInA== X-Received: by 2002:a05:6820:44f:: with SMTP id p15mr9372478oou.51.1633723024429; Fri, 08 Oct 2021 12:57:04 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id x8sm67409otg.31.2021.10.08.12.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 12:57:03 -0700 (PDT) From: Alexandru Gagniuc <mr.nuke.me@gmail.com> To: u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com, patrick.delaunay@foss.st.com Cc: Alexandru Gagniuc <mr.nuke.me@gmail.com>, patrice.chotard@foss.st.com, etienne.carriere@linaro.org Subject: [PATCH v3 05/13] board: stm32mp1: Implement board_fit_config_name_match() for SPL Date: Fri, 8 Oct 2021 14:56:47 -0500 Message-Id: <20211008195655.46046-6-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211008195655.46046-1-mr.nuke.me@gmail.com> References: <20211008195655.46046-1-mr.nuke.me@gmail.com> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
stm32mp1: Support falcon mode with OP-TEE payloads
|
expand
|
diff --git a/board/st/stm32mp1/spl.c b/board/st/stm32mp1/spl.c index ea2f809245..01aa5e51c5 100644 --- a/board/st/stm32mp1/spl.c +++ b/board/st/stm32mp1/spl.c @@ -5,6 +5,7 @@ #include <config.h> #include <common.h> +#include <dm/device.h> #include <init.h> #include <asm/io.h> #include <asm/arch/sys_proto.h> @@ -82,3 +83,16 @@ void board_debug_uart_init(void) #endif } #endif + +int board_fit_config_name_match(const char *name) +{ + const void *compatible; + + compatible = fdt_getprop(gd->fdt_blob, 0, "compatible", NULL); + + /* only STM boards are supported (currently) */ + if (strncmp(compatible, "st,", 3) != 0) + return 1; + + return !strstr(name, compatible + 3); +}
This function is needed when loading a FIT image from SPL. It selects the correct configuration node for the current board. Implement it. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> --- board/st/stm32mp1/spl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)