Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1394056pxm; Thu, 24 Feb 2022 02:10:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoTOxWQd4a7+UHN227CdhE9rpnMsLU4HY4U9H9N3i1W/xaWopHnrYCNPcV77pYMBaHw/FK X-Received: by 2002:a63:4665:0:b0:374:7305:dab4 with SMTP id v37-20020a634665000000b003747305dab4mr1715949pgk.256.1645697450321; Thu, 24 Feb 2022 02:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645697450; cv=none; d=google.com; s=arc-20160816; b=k91MQdsiWHLAI0UFoxq1+vyNMWqJ1mBkbb9wu8juB4BenVJPnjABlMfuw2mN/Sn3KK 7+t0AiRlA19f51F9F/rMLFJQn3COQn8NAIro9fbFgYv1kmmL8E7siV2TZv9Igr9Xp0LE 6SfKw0IR5HuJ50y+QBOXZlZjTN4Bf9QmbBeeX2TlaJloQllFp8A+5hWvaKVupv3Vt1RY JrS7lFMFFkM4iZouSH9EaSshpDr3Vi2dDTWUQDM3QzrPB1/L1BqB5GaMQvbSpVObYVS2 jytvLUbd8dwb1b/F5unZPgEkwAex7S53DfD/af5eO/yT9jEReWUghlM1o7fwukV57rX4 MlzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QjugLMwLcXisSjZotsbZIW9u4mJzfVtbSbNKMm+n5FI=; b=VZCcvPGZlExkULd7Z8CDnke0SqDfBDL013yMzPIAwCGb2KjVm2p61UL1U5/rb84Pmv zmZAJC6+JTyDBa3dlD0slLBx5nxhorm7+qc8mnz3YSOt/y3fI9jLEUJstm/TIP4PbQw+ 6Y+DHVNSrjCainWXd7zOYXtiKGsjmuP6fgXL1hxxjJ7ejL9Rs4tDIi+UXTCr8aGVpElR Bzg8XeAbXCOJu0VMF3DKV+nx+lzJshI3pcWn80tWGXoemkHgFpcg7w5u8vJFmbHWu09H lUaiXGvIG09FYwpSQZB2UWxpymgNanHTcwl2rfebsnCf6digZqJQR34WW/2sLyn+MNHr qDGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9si83286pgp.102.2022.02.24.02.10.36; Thu, 24 Feb 2022 02:10:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231854AbiBXJWJ (ORCPT + 99 others); Thu, 24 Feb 2022 04:22:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiBXJWH (ORCPT ); Thu, 24 Feb 2022 04:22:07 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADC4814001; Thu, 24 Feb 2022 01:21:37 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.88,393,1635174000"; d="scan'208";a="111447775" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 24 Feb 2022 18:21:37 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id A350E4007541; Thu, 24 Feb 2022 18:21:35 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org Cc: Lad Prabhakar , linux-kernel@vger.kernel.org, Prabhakar , Biju Das Subject: [PATCH] soc: renesas: Kconfig: Introduce ARCH_RZG2L config option Date: Thu, 24 Feb 2022 09:21:14 +0000 Message-Id: <20220224092114.25737-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Renesas RZ/G2L, RZ/G2LC, RZ/G2UL and RZ/V2L SoC's have identical IP blocks for which drivers are common. To avoid updating the Kconfig files for drivers in common to each SoC, introduce the ARCH_RZG2L config option. ARCH_RZG2L config option will be selected by the above mentioned SoC's and ARCH_RZG2L config option will be used as a dependency for the drivers in common. While at it, move PM and PM_GENERIC_DOMAINS under the ARCH_RZG2L config option insteadĀ of adding it to individual SoC. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/soc/renesas/Kconfig | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig index 57b6292b46a3..fdc99a05a7e0 100644 --- a/drivers/soc/renesas/Kconfig +++ b/drivers/soc/renesas/Kconfig @@ -40,6 +40,11 @@ config ARCH_RMOBILE select SYS_SUPPORTS_SH_TMU select SYSC_RMOBILE +config ARCH_RZG2L + bool + select PM + select PM_GENERIC_DOMAINS + config ARCH_RZN1 bool select ARM_AMBA @@ -293,15 +298,13 @@ config ARCH_R8A774B1 config ARCH_R9A07G044 bool "ARM64 Platform support for RZ/G2L" - select PM - select PM_GENERIC_DOMAINS + select ARCH_RZG2L help This enables support for the Renesas RZ/G2L SoC variants. config ARCH_R9A07G054 bool "ARM64 Platform support for RZ/V2L" - select PM - select PM_GENERIC_DOMAINS + select ARCH_RZG2L help This enables support for the Renesas RZ/V2L SoC variants. -- 2.17.1