From: Marek Vasut Date: Sun, 29 Nov 2020 13:54:00 +0100 Subject: [PATCH v7 1/4] arm: rmobile: Add RZ/G2[HMNE] SoC support In-Reply-To: <20201127145300.7359-2-biju.das.jz@bp.renesas.com> References: <20201127145300.7359-1-biju.das.jz@bp.renesas.com> <20201127145300.7359-2-biju.das.jz@bp.renesas.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/27/20 3:52 PM, Biju Das wrote: Sorry for the late reply. [...] > diff --git a/arch/arm/mach-rmobile/cpu_info-rcar.c b/arch/arm/mach-rmobile/cpu_info-rcar.c > index 5bde24ae0e..08345503a2 100644 > --- a/arch/arm/mach-rmobile/cpu_info-rcar.c > +++ b/arch/arm/mach-rmobile/cpu_info-rcar.c > @@ -6,6 +6,7 @@ > */ > #include > #include > +#include > > #define PRR_MASK 0x7fff > #define R8A7796_REV_1_0 0x5200 > @@ -21,9 +22,28 @@ static u32 rmobile_get_prr(void) > #endif > } > > +static bool is_rzg_family(void) > +{ > + bool rzg_family_type = false; > + struct udevice *soc; > + char name[16]; > + > + if (!(soc_get(&soc) || soc_get_family(soc, name, 16))) { This depends on some other patchset, right ? I will wait for that to land and then apply this one. Did you check that this is still OK on RCar Gen2 with its size-limited SPL? Also, do you have a git tree with all the remaining patches applied on top? It would be useful to get an overview what's still pending for mainline. Thanks > + if (!strcmp(name, "RZ/G2")) > + rzg_family_type = true; > + } [...]