Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1014999pxj; Sat, 15 May 2021 00:54:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy1NTLAoLLRbbcrv9qH0seOJ91nmrFfV47ezAYWa3yfA1s1yNGSyQcfNeji2K7/E0jHAwB X-Received: by 2002:a50:f385:: with SMTP id g5mr22863853edm.222.1621065277241; Sat, 15 May 2021 00:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621065277; cv=none; d=google.com; s=arc-20160816; b=ZsQSh8Guw7Lx2LPkxlXhPPim7D9HfOPNCrnPtTxgFZPUl6bI4w2/cG2qjztvzKSQdf 39iNLltfFqPKemeEfX6po9uIWGTA/x7ZWESkojnoxmcinP/alKAPrA8/EC79by895tcm wq25+MDF1MopuqPL2nnC5UtOJ+PaQ3K3EZevpNal2JN1ymMAAf+P5DoXSQ57aha3s0wh +ANu8C9ce6uuuvqMDM6GvwagyWByp/75OMk6FnZqZjZRmIiwCye4Kjz+OqXnJ5j2vqxF Zmykw79gK76bdBC2VmAbMEtsmmCIncTc02LHR9vH0/vGt2m4IvXewlBDW+a4G65g1euG UFow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=v6Agdel6jUlLY5T1EOv4jdUaVPaEoxbaGmTIwbE1wSE=; b=Hr4QZgKXAVOHQ0wscDoIY1Zc1zDUG3exHN79tY96YLOLx5+OSme1LpwEcSzOqNVjDC /r2hj7hM6semO4AvqxELEfNeE+Q9IckwWwXJGxy0BZ7nabnooXVAkGAQ9zeipp4YUb8B sEAQb/FAZRfR49dQQ/96Bfp2FgKMKE3sfzuh6wJSFKEFFPBWlnJE//bhNsnYV6Vxg/ji zMeizU+cBIEgjI20OH3Kp1egNx45mYMDvzQKelnW1PUaxCgalWB5Khv72KzF/4Rm0eKJ UA7yj+2toccqih+G2ENBLllNAN7nc3ZIAm+ichZmDF6BECEfEq2adgofbvheURBbuQwz G8Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp11si2084231ejb.333.2021.05.15.00.54.14; Sat, 15 May 2021 00:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232934AbhENTaA (ORCPT + 99 others); Fri, 14 May 2021 15:30:00 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:59886 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232851AbhENT37 (ORCPT ); Fri, 14 May 2021 15:29:59 -0400 X-IronPort-AV: E=Sophos;i="5.82,300,1613401200"; d="scan'208";a="81147973" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 15 May 2021 04:23:40 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 70ABC4010906; Sat, 15 May 2021 04:23:36 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Rob Herring , Magnus Damm , Michael Turquette , Stephen Boyd , Greg Kroah-Hartman , Catalin Marinas , Will Deacon , Jiri Slaby , Philipp Zabel , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Biju Das , Lad Prabhakar , Prabhakar Subject: [PATCH 08/16] soc: renesas: Add support to identify RZ/G2{L,LC} SoC's Date: Fri, 14 May 2021 20:22:10 +0100 Message-Id: <20210514192218.13022-9-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210514192218.13022-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20210514192218.13022-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for identifying the RZ/G2{L,LC} (R9A07G044{L,LC}) SoC's. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/soc/renesas/renesas-soc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c index d73389670eef..23be0ddfd786 100644 --- a/drivers/soc/renesas/renesas-soc.c +++ b/drivers/soc/renesas/renesas-soc.c @@ -56,6 +56,10 @@ static const struct renesas_family fam_rzg2 __initconst __maybe_unused = { .reg = 0xfff00044, /* PRR (Product Register) */ }; +static const struct renesas_family fam_rzg2l __initconst __maybe_unused = { + .name = "RZ/G2L", +}; + static const struct renesas_family fam_shmobile __initconst __maybe_unused = { .name = "SH-Mobile", .reg = 0xe600101c, /* CCCR (Common Chip Code Register) */ @@ -131,6 +135,11 @@ static const struct renesas_soc soc_rz_g2h __initconst __maybe_unused = { .id = 0x4f, }; +static const struct renesas_soc soc_rz_g2l __initconst __maybe_unused = { + .family = &fam_rzg2l, + .id = 0x841c447, +}; + static const struct renesas_soc soc_rcar_m1a __initconst __maybe_unused = { .family = &fam_rcar_gen1, }; @@ -299,6 +308,9 @@ static const struct of_device_id renesas_socs[] __initconst = { #ifdef CONFIG_ARCH_R8A779A0 { .compatible = "renesas,r8a779a0", .data = &soc_rcar_v3u }, #endif +#if defined(CONFIG_ARCH_R9A07G044L) || defined(CONFIG_ARCH_R9A07G044LC) + { .compatible = "renesas,r9a07g044", .data = &soc_rz_g2l }, +#endif #ifdef CONFIG_ARCH_SH73A0 { .compatible = "renesas,sh73a0", .data = &soc_shmobile_ag5 }, #endif -- 2.17.1