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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4378C433EF for ; Sat, 25 Sep 2021 10:23:09 +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 B7C4D6124B for ; Sat, 25 Sep 2021 10:23:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B7C4D6124B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=foundries.io 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 DF7F083236; Sat, 25 Sep 2021 12:23:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="Yrmii+LH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F9C983480; Sat, 25 Sep 2021 12:23:03 +0200 (CEST) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 0460183135 for ; Sat, 25 Sep 2021 12:23:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleksandr.suvorov@foundries.io Received: by mail-lf1-x129.google.com with SMTP id y26so12134582lfa.11 for ; Sat, 25 Sep 2021 03:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5rnU7Y++iMLqfIGPKEIealR8IvBgfKxOjTpdt4UuMYs=; b=Yrmii+LHveTmgRycew4Lvo4rBYQ3zVePm0472hjDjFT+j8nwk9oF8hu7sb1a/yOed8 UP4CP+8RJG6oVaMRIvCEGswihn2auI8wxh7ic3E1GWtYXtscWAhhewa7ZtPgpTT/wY8F KOWbmsSZ4A0bXay0FBIFdlpizYeUFi7VzOGpW90GuofRCrIwcVoSRwaxem5GQZDBOkGZ UQlvCXTNbj3lHlu1XqVJJNpqSEnsN2+xFCW47zCEqWiwvDZdQTbF2h64Qo1sfIsutDNC uPCjJiHS7+rtqY8xiy04A/paWL0/Mm0gr2m+MpWHieKNWWm9Bgx8lSR8PSE8ZfEqdUq+ yrXw== 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:mime-version :content-transfer-encoding; bh=5rnU7Y++iMLqfIGPKEIealR8IvBgfKxOjTpdt4UuMYs=; b=r+wB4nLoM8/dAEotWjJ5THpxhwRoFqiS9/f+gQYT/b06HkoJmkNsgrIpRBXrk1MC1N eJU1wyzwP1KVk6Ld1oS0SBIfuYgUfOMwYSqQSZX5A2xSjZUjyTWiYoFclfgzJTA0iK0Y FW0aXjXD7d515neDi7MP6VDlz8qIxR8Y0Opnu/nPpdiy3Y6+vLZlQ3VOrv8nJbEJ4GcJ Bzf8NawgG/XIfTW2iaoIp6YbjbxESeT952zmfGGBsrScuhEuKLgd3Lm+fawRRrN3t1NX D2vnvN1ooWL5i3mfcsLfEyKyfgGMdYA0BMCyc7N1fgOEz5ekfNYaVlwHywOKtl28kHCW 2w7g== X-Gm-Message-State: AOAM5315wKl/X+CgxYSoEQK724co1TxXw8tMVgvWdUt8LisxuEMK81nr 71FzgTvMj+LIeSyqSp0Gd9ZdFpmj3AuS9A== X-Google-Smtp-Source: ABdhPJxQeP70T6/kaeir0yOnnkklm1r7WYVndh7saysTCPQq/Now2se692TOSQVYqK6lLPY36dfyvw== X-Received: by 2002:a2e:300c:: with SMTP id w12mr16075517ljw.302.1632565379029; Sat, 25 Sep 2021 03:22:59 -0700 (PDT) Received: from cryobook.bearlog ([82.193.109.226]) by smtp.gmail.com with ESMTPSA id n9sm999272lfu.88.2021.09.25.03.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Sep 2021 03:22:58 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Ricardo Salveti , Oleksandr Suvorov , "Ivan T. Ivanov" , Marek Szyprowski , Matthias Brugger , Nicolas Saenz Julienne , Peter Robinson Subject: [PATCH] board: rpi: always set fdt_addr if provided by firmware Date: Sat, 25 Sep 2021 13:22:55 +0300 Message-Id: <20210925102255.21620-1-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.31.1 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 From: Ricardo Salveti Otherwise if the env gets saved with an incorrect or different fdt_addr (by moving sdcard between different rpi versions), it won't be able to boot with the correct address. This allows fdt_addr to always be in sync with what gets set by the firmware. Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov --- board/raspberrypi/rpi/rpi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 372b26b6f2..e12f8c0c31 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -318,9 +318,6 @@ static void set_fdtfile(void) */ static void set_fdt_addr(void) { - if (env_get("fdt_addr")) - return; - if (fdt_magic(fw_dtb_pointer) != FDT_MAGIC) return; -- 2.31.1