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 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 749B8C25B0D for ; Sat, 13 Aug 2022 04:37:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D260B849A7; Sat, 13 Aug 2022 06:37:40 +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="HOIcH+Xq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3194A84ADC; Sat, 13 Aug 2022 06:37:39 +0200 (CEST) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (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 93FAA849A4 for ; Sat, 13 Aug 2022 06:37:36 +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=seanga2@gmail.com Received: by mail-qt1-x830.google.com with SMTP id cb8so2197617qtb.0 for ; Fri, 12 Aug 2022 21:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc; bh=UQxyFMm1Ap71tQjTxg1Wnu0XjMG4+d2DjOpNCocdVMQ=; b=HOIcH+XqrJSHyRa8jrWpUkPwn4D9tpm0BqGUyAOKgCIeIgYmbifG+3jMhIqMjFBcze GL09IHBEt6aEYhU02nPHNQKfdSctQsrWIu22o+d/cnPESy6u8M3hAicV3xxJu/IyAKOd eagkJHeYJ8cUeIZLVLzz5HkyoOuT/rxjDdm1fHWzizcL29VdGnmSi+/owzC8N2Gfi31F zPdfWy0bCpVTI++JBVq0QNgcGtSIjdGXjuqy3xIX+HzbS1xd0rttmRG/OcIlA0HHYegV PTPhtjlCaM2/XSHVIjX/0SjkopCF5Pe8omKirCZl8wCVtlYo/BqGbUkBLduIEXQDOSM9 YRRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc; bh=UQxyFMm1Ap71tQjTxg1Wnu0XjMG4+d2DjOpNCocdVMQ=; b=a7tQtlb1P0FyL2wXWvl//C4kp9XrKIj+mM+kqmlf/mnpjEj/ki4HaZsk42lsSSj7/9 AVXyrH62mRGCSQMV2lAbYoog6PQurWDRJTI2japIVNp5UPemjpfoxeiUVxuGn3+tvJUw WEwCu1Sax4V16/diMdLeg6p1ktMZDmqapwv3/amPsOaK+C0WAXsNloS20mkA4bFswS9f 4ugFy9aKEG7kn+RC1grr1ZsfTa6V3/tkPOu4dNjIXvtvH3GSitd9Flk+CLzCs+2F7yId ErUAdNfQyGZHwE6cKBhFmX9sKtpFHqtwg2vZ5FBYgBCynhmsNTlZKS5zFnZiGWmMUk1/ CChA== X-Gm-Message-State: ACgBeo27FNf3qo2sqG1U1j3PbONI609mipAcVS7q36dqyrqZ9HS37WkI tFg8YC0qZDU4cGRaANrw2XaJg8cpDfQ= X-Google-Smtp-Source: AA6agR5c3mo21VvpRHIGvOJlcCDClgX7DSTXgVH5jMI22wgm/WvGEkE6OjVQ491pYcJEQ41yfDooAA== X-Received: by 2002:a05:622a:1a26:b0:343:583a:14e0 with SMTP id f38-20020a05622a1a2600b00343583a14e0mr6126224qtb.27.1660365455439; Fri, 12 Aug 2022 21:37:35 -0700 (PDT) Received: from [192.168.1.201] (pool-173-73-95-180.washdc.fios.verizon.net. [173.73.95.180]) by smtp.gmail.com with ESMTPSA id w20-20020a05620a0e9400b006b63679a433sm2976841qkm.133.2022.08.12.21.37.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 21:37:35 -0700 (PDT) Subject: Re: [RFC PATCH v1 2/9] clk: renesas: prepare for non-RCAR clock drivers To: Ralph Siemsen , u-boot@lists.denx.de Cc: Lukasz Majewski References: <20220809125959.217333-1-ralph.siemsen@linaro.org> <20220809125959.217333-3-ralph.siemsen@linaro.org> From: Sean Anderson Message-ID: <8612e45a-24be-f1f4-8efe-19a9be036793@gmail.com> Date: Sat, 13 Aug 2022 00:37:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20220809125959.217333-3-ralph.siemsen@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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.6 at phobos.denx.de X-Virus-Status: Clean On 8/9/22 8:59 AM, Ralph Siemsen wrote: > Allow CONFIG_CLK_RENESAS to be set without bringing in RCAR-GEN2/3 code. > > CONFIG_RENESAS is used in drivers/clk/Makefile to control recursion into > the drivers/clk/renesas subdirectory. It also controls compilation of > renesas-cpg-mssr.c support code for the RCAR-GEN2 and RCAR-GEN3 devices. > > The support code contains platform specific hardware access (TMU_BASE), > and it is not needed for other Renesas devices such as RZ/N1. Therefore, > alter Makefile to build renesas-cpg-mssr.c only for RCAR-GEN2 and RCAR-GEN3. > > Signed-off-by: Ralph Siemsen > --- > > drivers/clk/renesas/Kconfig | 2 +- > drivers/clk/renesas/Makefile | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig > index f4d6ef9f93..c53ff3ce01 100644 > --- a/drivers/clk/renesas/Kconfig > +++ b/drivers/clk/renesas/Kconfig > @@ -1,6 +1,6 @@ > config CLK_RENESAS > bool "Renesas clock drivers" > - depends on CLK && ARCH_RMOBILE > + depends on CLK && (ARCH_RMOBILE || ARCH_RZN1) > help > Enable support for clock present on Renesas RCar SoCs. > > diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile > index 36a5ca65f4..2cd2c69f68 100644 > --- a/drivers/clk/renesas/Makefile > +++ b/drivers/clk/renesas/Makefile > @@ -1,5 +1,4 @@ > -obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.o > -obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o > +obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o renesas-cpg-mssr.o > obj-$(CONFIG_CLK_R8A774A1) += r8a774a1-cpg-mssr.o > obj-$(CONFIG_CLK_R8A774B1) += r8a774b1-cpg-mssr.o > obj-$(CONFIG_CLK_R8A774C0) += r8a774c0-cpg-mssr.o > @@ -9,7 +8,7 @@ obj-$(CONFIG_CLK_R8A7791) += r8a7791-cpg-mssr.o > obj-$(CONFIG_CLK_R8A7792) += r8a7792-cpg-mssr.o > obj-$(CONFIG_CLK_R8A7793) += r8a7791-cpg-mssr.o > obj-$(CONFIG_CLK_R8A7794) += r8a7794-cpg-mssr.o > -obj-$(CONFIG_CLK_RCAR_GEN3) += clk-rcar-gen3.o > +obj-$(CONFIG_CLK_RCAR_GEN3) += clk-rcar-gen3.o renesas-cpg-mssr.o > obj-$(CONFIG_CLK_R8A7795) += r8a7795-cpg-mssr.o > obj-$(CONFIG_CLK_R8A7796) += r8a7796-cpg-mssr.o > obj-$(CONFIG_CLK_R8A77965) += r8a77965-cpg-mssr.o > Reviewed-by: Sean Anderson