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.6 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,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 6DDFCC4338F for ; Wed, 25 Aug 2021 01:20:54 +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 B84C261151 for ; Wed, 25 Aug 2021 01:20:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B84C261151 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=boundarydevices.com 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 348FF82F33; Wed, 25 Aug 2021 03:20:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=boundarydevices.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=boundarydevices.com header.i=@boundarydevices.com header.b="HGYCQTjH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0CEB982DB2; Wed, 25 Aug 2021 03:07:55 +0200 (CEST) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (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 0E12582D3C for ; Wed, 25 Aug 2021 03:07:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=boundarydevices.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troy.kisky@boundarydevices.com Received: by mail-pg1-x534.google.com with SMTP id y23so21476823pgi.7 for ; Tue, 24 Aug 2021 18:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=oTIBNci5kW4cP3LbE++yhO/DPZMJ4TPEJfNhoXEspT4=; b=HGYCQTjHIi4T2n7nhzIumSN6rWibehlJLwG2gj++pwGxhP/ujUbCLckxhkfmDJcY45 eHq4UM4y12oreDCpdp/CGQhuEefNpHyGbAkKy8M+MNVHOgB5exf6lEsneljj8KkEd/0z 37xOalaQoTYUBWxaXV4gY803YQ7HEneQ5eiHY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oTIBNci5kW4cP3LbE++yhO/DPZMJ4TPEJfNhoXEspT4=; b=RrXFMhBpKsUVQCZahdLGnU5wAswJlY/vZ3GqpHf3a7aW+FB1Dtzedj7KEgafJGYj6H CRMojHdQuvF1RvwG1LkxyvlfFhrHcrGEnd0CX75pFC+wrcc+gD+ijGxlDj/nlOEfxEhD oOZwmh0rw70i59neZ6x0Xol+V7uIElVyMFno779jkA8nXuDm5zLxpI1tKQOFF5wmf97k CVZXgYy9mz3QSylPNwBOR4yNdoCXSSs3P+6Qb/qG7UkA3vXJ1GpWVLUjgaxFleESWcmP sIQkVKtr0v9whHGV4mRaoiNC7xhBfiAslWUL82Q6ATEIw4vqyBw11ry79cxXLNFsqseo S3ew== X-Gm-Message-State: AOAM532GIGTenxXoKt3DA+AZ6qDF4KNPT60wTtMDP/Xlb/R0T5DrJTvQ b+Y2CWxfKbZlmwxP6C3GRilB/XwRhHtZEg== X-Google-Smtp-Source: ABdhPJy4VsuGwb1Pv6D3HyFsaQDSCF0vbJnK2dJTxQqLq/vO2YhrcQ9Rlk8cV3oS8u7rIX8NC+TX8w== X-Received: by 2002:a05:6a00:13a5:b0:3ee:3f60:ab0d with SMTP id t37-20020a056a0013a500b003ee3f60ab0dmr5298406pfg.48.1629853668224; Tue, 24 Aug 2021 18:07:48 -0700 (PDT) Received: from [192.168.0.4] (wsip-72-200-236-186.oc.oc.cox.net. [72.200.236.186]) by smtp.googlemail.com with ESMTPSA id w11sm8690933pgf.5.2021.08.24.18.07.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 18:07:47 -0700 (PDT) Subject: Re: [PATCH 5/6] nitrogen6x: Populate FDTFILE at build-time for all platforms To: Tom Rini , u-boot@lists.denx.de References: <20210825004104.6648-1-trini@konsulko.com> <20210825004104.6648-5-trini@konsulko.com> From: Troy Kisky Message-ID: <9ba8044b-1f46-ef94-161d-b3280f308d2c@boundarydevices.com> Date: Tue, 24 Aug 2021 18:07:47 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210825004104.6648-5-trini@konsulko.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 25 Aug 2021 03:20:22 +0200 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 On 8/24/2021 5:41 PM, Tom Rini wrote: > Rather than using CONFIG_SABRELITE to set FDTFILE for only that > platform, switch to always setting this based on > CONFIG_DEFAULT_DEVICE_TREE as this should always match the kernel > device tree name anyhow. > > Cc: Troy Kisky > Signed-off-by: Tom Rini > --- > configs/mx6qsabrelite_defconfig | 1 - > include/configs/nitrogen6x.h | 10 +--------- > 2 files changed, 1 insertion(+), 10 deletions(-) > > diff --git a/configs/mx6qsabrelite_defconfig b/configs/mx6qsabrelite_defconfig > index 9f0882e932f4..b496df8a4dac 100644 > --- a/configs/mx6qsabrelite_defconfig > +++ b/configs/mx6qsabrelite_defconfig > @@ -16,7 +16,6 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6q-sabrelite" > CONFIG_CMD_HDMIDETECT=y > CONFIG_AHCI=y > CONFIG_DISTRO_DEFAULTS=y > -CONFIG_SYS_EXTRA_OPTIONS="SABRELITE" > CONFIG_BOOTDELAY=3 > # CONFIG_USE_BOOTCOMMAND is not set > CONFIG_USE_PREBOOT=y > diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h > index 0c407503517d..1a0d970de716 100644 > --- a/include/configs/nitrogen6x.h > +++ b/include/configs/nitrogen6x.h > @@ -90,14 +90,6 @@ > #define DISTRO_BOOT_DEV_DHCP(func) > #endif > > - > -#if defined(CONFIG_SABRELITE) > -#define FDTFILE "fdtfile=imx6q-sabrelite.dtb\0" > -#else > -/* FIXME: nitrogen6x covers multiple configs. Define fdtfile for each supported config. */ > -#define FDTFILE > -#endif > - > #define BOOT_TARGET_DEVICES(func) \ > DISTRO_BOOT_DEV_MMC(func) \ > DISTRO_BOOT_DEV_SATA(func) \ > @@ -113,7 +105,7 @@ > "fdt_high=0xffffffff\0" \ > "initrd_high=0xffffffff\0" \ > "fdt_addr_r=0x18000000\0" \ > - FDTFILE \ > + "fdtfile=" __stringify(CONFIG_DEFAULT_DEVICE_TREE) ".dtb\0" \ > "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ > "pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \ > "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \ > Acked-by: Troy Kisky Thanks!