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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6A91FC77B7C for ; Sun, 7 May 2023 16:13:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9384846AF; Sun, 7 May 2023 18:12:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org 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; secure) header.d=mailbox.org header.i=@mailbox.org header.b="ndselpe1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8320F8267E; Sun, 7 May 2023 18:12:28 +0200 (CEST) Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 715C482721 for ; Sun, 7 May 2023 18:12:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QDqFN40lhz9spJ; Sun, 7 May 2023 18:12:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1683475944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NfuZDeqUs3XIL0z7MMLhMKk1F/NkbRyXzOXQ1wN4Pyo=; b=ndselpe1yzC7Q8W2XHhYnoN+AtMtPLCkRsF9E0kzE+jNamOW3rwVDBuyH/ypvx2aiOln6t V9BOwZPx/KKKI5UtOf3lrtmyJnqCZkX1fGrXe76thdol7fJaDpzMASlY/m4eNPr/DyPkOE 9cgP4Lfg4thoWgxHZ2AxF+FRgADAhLwIfmtViKU02Veo1cq2CVuS7zP2hfJzEFF+h0pgdi 6mlKRYzDdyGSG+FxgkDXDiT7ZgM3WWO7/EVQubzy742Xw3+wbrOFvjDSJikmDu4mGoBvtd 6oax7ddVxbPR20Q/xVfkPhSRekv5W//x3b0iYW9kcyMv6I/ZoHS93OOwSKySzA== Message-ID: Date: Sun, 7 May 2023 17:57:44 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v5 07/10] ARM: rmobile: Add support for Renesas RZ/N1 SoC Content-Language: en-US To: Ralph Siemsen , u-boot@lists.denx.de Cc: Marek Vasut , Nobuhiro Iwamatsu References: <20230424011515.1359255-1-ralph.siemsen@linaro.org> <20230424011515.1359255-8-ralph.siemsen@linaro.org> From: Marek Vasut In-Reply-To: <20230424011515.1359255-8-ralph.siemsen@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: kyfgaye4uphjbjuda5o6n83nnp47q14k X-MBO-RS-ID: 50ec1665d5db4412007 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean On 4/24/23 03:15, Ralph Siemsen wrote: [...] > diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c > index 7e7465a2c8..15be32af31 100644 > --- a/arch/arm/mach-rmobile/cpu_info.c > +++ b/arch/arm/mach-rmobile/cpu_info.c > @@ -31,6 +31,7 @@ void enable_caches(void) > > #ifdef CONFIG_DISPLAY_CPUINFO > #ifndef CONFIG_RZA1 > +#ifndef CONFIG_RZN1 Use: #if !defined(CONFIG_RZA1) && !defined(CONFIG_RZN1) > __weak const u8 *rzg_get_cpu_name(void) > { > return 0; > @@ -128,6 +129,13 @@ int print_cpuinfo(void) > } > #else #elif defined(CONFIG_RZA1) ... the RZA1 stuff ... #else /* CONFIG_RZN1 */ ... the RZN1 stuff ... #endif That should make the ifdeffery easier. > int print_cpuinfo(void) > +{ > + printf("CPU: Renesas Electronics RZ/N1\n"); > + return 0; > +} > +#endif > +#else > +int print_cpuinfo(void) > { > printf("CPU: Renesas Electronics RZ/A1\n"); > return 0;