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 49615C433F5 for ; Fri, 29 Oct 2021 18:54:01 +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 40B8460F9B for ; Fri, 29 Oct 2021 18:53:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 40B8460F9B 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 00D6882D95; Fri, 29 Oct 2021 20:53:56 +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="Ru+pbsao"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42F3582FE7; Fri, 29 Oct 2021 20:53:55 +0200 (CEST) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 5FDEE82C4C for ; Fri, 29 Oct 2021 20:53:51 +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-x52d.google.com with SMTP id g10so41477960edj.1 for ; Fri, 29 Oct 2021 11:53:51 -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=rBjlBklNEguJCV+vlfxtJ+xw084JEAkjgpl/8jW+/Pw=; b=Ru+pbsaoTAp0Kyyz63Vn8IcbpElSYcAo0+mPki8IX3yQ7VDF1ud34bfu4QMLX10ep6 jH737FOg8zAN1jSMDoriZ/u/dvFLAa9conB5rKyS9ChlU3FHIYySQD1j3CM7G5HsOBi0 rDDPkmn8S2QFAkH5uOhwJu3h5z3La64f/tm3xOIBzjPXf3Cd1qPG8yVt6Q7M+7mART3O sGPmBcwkMXPuUL6kFS2qH+ACpx5lY13RxRmy1DqnPO/f/VDDzdcYlzSZV/CB9glETkGp +t6l2us0eyaPINVX/ID4fNjYWD9hiqULwqazBejMyeAco+GNUZoulRObRkI+vrmWho1w b+4A== 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=rBjlBklNEguJCV+vlfxtJ+xw084JEAkjgpl/8jW+/Pw=; b=g8DGWKVUPjBQz/i6YoclETOI+Ruot8/9IEAjHnYHReGldQu5dMQofwzq7aW5vqKt9G vq4+sks5tsSxtMLN22GzB+kAbyekr8CakZl0pE2ZVAjnGPUVjBhMViy9FFZOFGqjuL+N U/K7ZyNScLMkQku6UxNWx5BWwuFCi4jIFbQVnGmq9/I2TF9A09NjMpO2B4sURbjeYtJF hXKStz5inQ4wsDCwoGO/D5GbC8Nr2tRBPNy4cHMc9YOEKhZQIHCV2N1IaAD0WQjsR1wc 8mPiQcctaASZEj4qCrTw0m9zYnfb4JUoEl5AZ0pft4eqJUnFadd1EoQXJEDUJec3rU+f +Ozg== X-Gm-Message-State: AOAM532B16qBj5C8bkqNWpyKmMiniC2/7HrPuODBhD3grYmwdvHYB5Np +KUFSz7du1CIF2wsYGwFvGEH9n7Gd925VvgrXPxwEHfC X-Google-Smtp-Source: ABdhPJxWijB10PZmB234psUcDHNaqGKcd4sdLLXUF5B6j65c6eDktTYjvEevnGvYvKHrPkt6i8mdCh0gEe8i3/+GZ6A= X-Received: by 2002:a05:6402:3590:: with SMTP id y16mr16912890edc.249.1635533630173; Fri, 29 Oct 2021 11:53:50 -0700 (PDT) MIME-Version: 1.0 References: <20210920161432.13110-1-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Fri, 29 Oct 2021 13:53:39 -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 Tue, Oct 5, 2021 at 7:35 AM Adam Ford wrote: > > 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? Marek, Ping #2. It's been three weeks since my last ping, and I was hoping you might have some feedback and/or be able to apply this. thank you, adam > > 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 > >