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 5878AC433EF for ; Tue, 5 Oct 2021 12:35:49 +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 82682615A6 for ; Tue, 5 Oct 2021 12:35:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 82682615A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 2D2B381E14; Tue, 5 Oct 2021 14:35:46 +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="khKiMJmC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 970588203C; Tue, 5 Oct 2021 14:35:44 +0200 (CEST) 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 B9F9E80607 for ; Tue, 5 Oct 2021 14:35:41 +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=aford173@gmail.com Received: by mail-ed1-x530.google.com with SMTP id v18so76763069edc.11 for ; Tue, 05 Oct 2021 05:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7mcLoetL5lpvKwkuANW0VoAUbX4zC6YPhO5KvRU5Kag=; b=khKiMJmCIBPm05DGW0EvsR/fcqCy62D7mMVpW9TE5iRbQYAWyG8YaaZf4nJOsu7jrp w5lzEZ8qnie+GvpCxnZ5fcUFVyFrEDClQ3M8PQrkt6ltrLBzK5CoQ9b3uNDEI7OMmNlM R6RUyBOITgVyGQ7M6vW4+YqcH3K7cWJ32swZ/SHMNODTRmbKwg7MDzqz26ZIdNH1fJHZ Lv9WWJUa2Uu1ax6ST1J/W2Hmya64tGf/clpiB+H0eOfllRrfn8dvuaJvwdhsLpUodcVL TkYpVDPYwAJMUhPxIhduPgrejMFQESz5NhEpuvNjpJPx0VCs+AhmqaGfmz8+7CIJ8A2R a+NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7mcLoetL5lpvKwkuANW0VoAUbX4zC6YPhO5KvRU5Kag=; b=02OARAqh7gD8c58qYNzS/xQuPVpKetnxlCa4F73u2PcwyXkUv3jkuUkVkDtS5CgnVG 22OGby2fqrROHFoaORPh/wpetFf6WinBFChHyklZo7HFPfdlC6bNpyHBaMNHnD3dvLZ+ zRsU28tUWYUwzE2QjOoCn7UNHdOcH6XgasD4Jk8Xz097wQo+rrFczXTP8Epn3NpPUtnX TiBrzMGi+2Ao7EAquuiklFgqDV2YbStHEloJJMIj96/47xVbmar+xYrYsG0+c1wbcUm9 fwkMg+rMzeMrTWDdK6NXIrJSztSKuBN3PVZjwSeRhVE6ofE4Phg7puWxcFARdGvh18NX xQWw== X-Gm-Message-State: AOAM530W0MyWnRx5REHHGwMecvJizELfcHlenc5ZJiKB3ZXoF53QmHSf cJg3mDLUmBeEZOVYTbBpbb0/J+J1OOOYTz87umezOdbE X-Google-Smtp-Source: ABdhPJzL/LsTzdzzCU88K0FAzaZ7G0gOklF6rWYSowyK4BSs6clEm+J9CUARRmx5qWCaKtBbOjgiAr0ZxwstdVw8DT4= X-Received: by 2002:a17:906:48ce:: with SMTP id d14mr21353833ejt.336.1633437339048; Tue, 05 Oct 2021 05:35:39 -0700 (PDT) MIME-Version: 1.0 References: <20210920161432.13110-1-aford173@gmail.com> In-Reply-To: <20210920161432.13110-1-aford173@gmail.com> From: Adam Ford Date: Tue, 5 Oct 2021 07:35:27 -0500 Message-ID: Subject: Re: [PATCH V2 1/6] ARM: rmobile: Enable board detection when FIT is enabled To: U-Boot Mailing List Cc: Marek Vasut , Adam Ford-BE Content-Type: text/plain; charset="UTF-8" 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 Mon, Sep 20, 2021 at 11:14 AM Adam Ford wrote: > > There are three boards from Beacon, RZ/G2 M/N/H which all > use the same board file, but different device trees. > Add code to automatically select the proper device tree > based on the CPU type. > > Signed-off-by: Adam Ford Marek, You previously asked me to remind you after 2 weeks, so it doesn't get too stale. I rebased at the time I did the V2. Can you give feedback? thank you, adam > --- > board/beacon/beacon-rzg2m/beacon-rzg2m.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c > index c12ff77fb2..b3521fcbc1 100644 > --- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c > +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c > @@ -36,3 +36,19 @@ void reset_cpu(void) > { > writel(RST_CODE, RST_CA57RESCNT); > } > + > +#if IS_ENABLED(CONFIG_MULTI_DTB_FIT) > +int board_fit_config_name_match(const char *name) > +{ > + if (!strcmp(rzg_get_cpu_name(), "R8A774A1") && !strcmp(name, "r8a774a1-beacon-rzg2m-kit")) > + return 0; > + > + if (!strcmp(rzg_get_cpu_name(), "R8A774B1") && !strcmp(name, "r8a774b1-beacon-rzg2n-kit")) > + return 0; > + > + if (!strcmp(rzg_get_cpu_name(), "R8A774E1") && !strcmp(name, "r8a774e1-beacon-rzg2h-kit")) > + return 0; > + > + return -1; > +} > +#endif > -- > 2.25.1 >