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 06EBCC4332F for ; Wed, 4 Jan 2023 16:44:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E9F685353; Wed, 4 Jan 2023 17:44:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="LvdQOGll"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6678885580; Wed, 4 Jan 2023 17:44:24 +0100 (CET) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (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 01DDC8551E for ; Wed, 4 Jan 2023 17:44:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ed1-x530.google.com with SMTP id i9so49328476edj.4 for ; Wed, 04 Jan 2023 08:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q8yV7ssZ0tN0ZEIMos+X0AxznFnm+NpsBcwthxUv/mQ=; b=LvdQOGllU23rIn9cVdNbnh81UNhy1OtnN9nStXhlXvVF3mFQrmBgfS/XBogI0hHSU6 ndWmdv2YcABDF91+/vlwOL323+NzioWC2E6hb7ss90EzpjoSp2Lbf6jVuD34P/3peJRX i2/V8RSrIUD0VYnxmZP1u8qd/mK/txO3FE14w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q8yV7ssZ0tN0ZEIMos+X0AxznFnm+NpsBcwthxUv/mQ=; b=euka7GUhjBF6faIMTNmUhVPzWRnSHmtTRINBW+vI5IEWV10c7XLfZBNPkKisHjEI6Q i62sWbOtV8XgGno6yeKtIfnENZCjQQcoftq3cdDLuGzzdW/mYI0D0CjiOqe5cHKdW60v TMxNX+t+3/yi5iZ+6bzKTld5ztlkAC3XrDqf2ZV/G9u0s3YCRucG7/xo/GwhQHGVoH6K UjWlVeuIEFOdDj6/5F34C60SzMGiH01yY7+1r0qQq+042cHuIQ3vttnOJlkDpXjPP3lf Zy65H9AG9oyxxAPx0z3YqXCHEHNM+FLNXiTLIKp8GztPAIeu4AhhrR1N7D2prEoK+Vbq FpYA== X-Gm-Message-State: AFqh2koS0tF+19tGDahVLuJT15ZiNx9sFvR8W8YKJez7lGoAiBbWBGH8 IhJK2vp/fKOxXNAb5/qOVnLvFnuiTLJWMILhh/U= X-Google-Smtp-Source: AMrXdXsiaTMamxIYq5qo4l4jj3x/qR6w0KzV2Kq2Obxtg5T+SGrDJCs5uhmcjm8Yp1NncJg/OEgMNw== X-Received: by 2002:a50:8e5d:0:b0:46f:a73d:6bdb with SMTP id 29-20020a508e5d000000b0046fa73d6bdbmr43003840edx.25.1672850661369; Wed, 04 Jan 2023 08:44:21 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-180-23-57.retail.telecomitalia.it. [80.180.23.57]) by smtp.gmail.com with ESMTPSA id es12-20020a056402380c00b00482b3d0e1absm13600885edb.87.2023.01.04.08.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 08:44:21 -0800 (PST) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Dario Binacchi , Michael Trimarchi , Adam Ford , Fabio Estevam , "NXP i.MX U-Boot Team" , Stefano Babic , Tom Rini , linux-amarula@amarulasolutions.com Subject: [PATCH v2] arm: dts: imx8mn-u-boot: fix DDR3 only support Date: Wed, 4 Jan 2023 17:44:17 +0100 Message-Id: <20230104164417.2734358-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 In case the CONFIG_IMX8M_LPDDR4 and CONFIG_IMX8M_DDR4 options are both disabled (i. e. BSH boards), binmain fails because DDR4 bin files are missing. Fixes: 93c4c0e4dd1e75 ("arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi") Signed-off-by: Dario Binacchi Reviewed-by: Michael Trimarchi --- Changes in v2: - Fix typos in the commit message (DD3 --> DDR3, DD4 --> DDR4) arch/arm/dts/imx8mn-u-boot.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mn-u-boot.dtsi b/arch/arm/dts/imx8mn-u-boot.dtsi index 95f45ad2522d..ec53390afb30 100644 --- a/arch/arm/dts/imx8mn-u-boot.dtsi +++ b/arch/arm/dts/imx8mn-u-boot.dtsi @@ -105,10 +105,11 @@ align-end = <4>; }; +#if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4) ddr-2d-imem-fw { #ifdef CONFIG_IMX8M_LPDDR4 filename = "lpddr4_pmu_train_2d_imem.bin"; -#elif CONFIG_IMX8M_DDR4 +#else filename = "ddr4_imem_2d.bin"; #endif type = "blob-ext"; @@ -118,12 +119,13 @@ ddr-2d-dmem-fw { #ifdef CONFIG_IMX8M_LPDDR4 filename = "lpddr4_pmu_train_2d_dmem.bin"; -#elif CONFIG_IMX8M_DDR4 +#else filename = "ddr4_dmem_2d.bin"; #endif type = "blob-ext"; align-end = <4>; }; +#endif }; spl { -- 2.32.0