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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F0C4EC43334 for ; Wed, 13 Jul 2022 09:54:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CDE238444D; Wed, 13 Jul 2022 11:53:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de 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=fris.de header.i=@fris.de header.b="OTLXKNMV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7705B84382; Wed, 13 Jul 2022 11:53:30 +0200 (CEST) Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 608328423C for ; Wed, 13 Jul 2022 11:53:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frieder@fris.de Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B8579BFABB; Wed, 13 Jul 2022 11:53:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1657705988; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=G3AkzIgdUv2gThabJTW1QaIN+S4c3XV52erzvIO4AuA=; b=OTLXKNMVh+Vt2pyHUX67KuiJWBAK+ADPJlv14686kbaTe6qmoJUljGK4Zy+x7w1diNYefx Kk+twbpwiKjNTxcTB1i+VCr9rcjQ8p4+ArcaWxznkX+D3CVs+QGLfdqPFGxCLRlDiv49Zq FhejBj2WR3NoSi+1UVZ/OKYU2lvIAyCMYstxco7iTyzKtoYqEfyQkFCr6bMyyUq1k+twGL GovtCfbOXrwtkRtLhc4tt/PsyrkAXg63TSHL7BMm+AEv3+n5OsuSzt5bXbJZgZSG9zsJEK zFANRArQGVTIFmBdBb1gt0YfjbtnS85SSdKwwi0DZCzTXYGDEkMaMfTa+fP/kA== From: Frieder Schrempf To: Frieder Schrempf , u-boot@lists.denx.de Cc: Stefano Babic , Sughosh Ganu Subject: [PATCH 09/14] imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM types Date: Wed, 13 Jul 2022 11:52:20 +0200 Message-Id: <20220713095229.43274-10-frieder@fris.de> In-Reply-To: <20220713095229.43274-1-frieder@fris.de> References: <20220713095229.43274-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.6 at phobos.denx.de X-Virus-Status: Clean From: Frieder Schrempf This sets an env variable 'som_type' from the board code. It can later be used by environment scripts, e. g. to select the proper devicetree for the board. Signed-off-by: Frieder Schrempf --- board/kontron/sl-mx8mm/sl-mx8mm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/kontron/sl-mx8mm/sl-mx8mm.c b/board/kontron/sl-mx8mm/sl-mx8mm.c index 416c4cbb407..9cbae6add16 100644 --- a/board/kontron/sl-mx8mm/sl-mx8mm.c +++ b/board/kontron/sl-mx8mm/sl-mx8mm.c @@ -121,6 +121,12 @@ int board_init(void) return 0; } +int board_late_init(void) +{ + env_set("som_type", "n801x"); + return 0; +} + enum env_location env_get_location(enum env_operation op, int prio) { enum boot_device boot_dev = get_boot_device(); -- 2.37.0