From patchwork Fri May 12 20:15:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 681207 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp4140974wrs; Fri, 12 May 2023 13:15:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kxfwIeaCuxp8N1hMJr3XZ2+LM9KDyttyo5qF2cv6+Z0BySrFiJ3t5PVWJ2syLV5VoSlUt X-Received: by 2002:a05:6a20:3c88:b0:103:8c8b:c689 with SMTP id b8-20020a056a203c8800b001038c8bc689mr11759290pzj.51.1683922555301; Fri, 12 May 2023 13:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683922555; cv=none; d=google.com; s=arc-20160816; b=JyrXfBBwsNTLQ+J8NVLmEe5LqVgeRk5zjNlnIrfSCzH6/kzdl5sTPZFvuI60QSOyH5 bROixdkDT+czr+wm6JkqZFqRo/6NNJ70AzeEjtqJLvew/OQQt3nFtax0f5owGVn5pJOD b0QrZxe1nSeAmRqVanEdOa1yLkb6+BKBVAqknlaaJxlZV0BH7zArmbSIN0C01+okdHZM WmmUGpyfHuAoEWaQT+WSE0dsYZhuvDF889A1Se6JT+3RbsqvMMwfg8MISZKJguQOk0EO /WM43G1MMRpaiJi9KRcdpjoVzv7L7quNvaxW44U/9O6IyT6XWW4Op6hBWSWzzHHkYW7D hbAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=im9T5ehHayS6MTlJB6P3fStXuoae5rEBYWPjq10yxfc=; b=PSBZDaEjtQAp5j0mjXxPT5OGyWblqUlN0hWG8BUzCHXOPefDBeL/aMTcPSGzUyz81r TCpIaHeqfUWznPQJgR45CSGo52N6CbzUpTeCWS0KK4BsAiwClp5Ns/ii2+zHaNQ0gkfq NkwllcOvUSDokqveGhcytK7kBlGcEGJEqTZpFsKeN0YtP2PJBiFHQYPl2bvoYWGVDrUJ Fq3rz8TDJmXciu46TsvXRaK0yKJOJ1jW9aI83DQBJBj4yRKH7BTnUMJ38NgHSdm7yYgL neaQf9SFTDhVt7LLYI6g9nnDGnFgneUqF7OmQ9iIGHaHted4mQf2O7FuMxlu1rZMt+Pl 6SoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIyCtwz3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id l186-20020a6388c3000000b0052c242b0231si10385453pgd.146.2023.05.12.13.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 13:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIyCtwz3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2A8886389; Fri, 12 May 2023 22:15:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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; unprotected) header.d=linaro.org header.i=@linaro.org header.b="IIyCtwz3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBEBC8633F; Fri, 12 May 2023 22:15:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 2EF4186319 for ; Fri, 12 May 2023 22:15:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ralph.siemsen@linaro.org Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-75788255892so342410685a.0 for ; Fri, 12 May 2023 13:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683922534; x=1686514534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=im9T5ehHayS6MTlJB6P3fStXuoae5rEBYWPjq10yxfc=; b=IIyCtwz3r33adHqr0ADP/xDgfzoZAF3bRsZN/qPi24VJKPuWR7hrTq8yofKvyOC+tV DSYJnT3J77k6Ptp4kJpM8FgGKY5Xmhlshy0n4Hux7nWR7kYlTcsvWghKOkAUGumhBaxI ihvbJL3E/glEtrM6Gm18CzN6eUVSPBirSp9u+4ZmWrYtZ50ocDRTKNX3fvbinmR9zMvz 9BmsO5jbb+gUvp/Z7I1WWTsDy2Jz7dZB3XnLG6UGg8qAY+g+aogN85YjAzOqKem6PKym mWjzphv6j1n1IOwVAChWFtiQEQYxnfFCj0gYB4JnyXE8N5kcKt3pz/XWTT+xMay9ENnp R68g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683922534; x=1686514534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=im9T5ehHayS6MTlJB6P3fStXuoae5rEBYWPjq10yxfc=; b=cDLAYcaX7USuG6BKTe0yBhyArAv+gIDJL59RnPcAW8tRe0AKD28dl+0o9ywRfgxWf3 7/x28kdOKJ2gwhiSZDmL5fbfQwC+MTC6/21prqCN1sOW0KrSGkLuktGQgQQI3KjnB/bk dcFB5RpqDw9bDYfIUz62poT0zGiGodpa1Gf537mVZdnHEbPFy3DcRnsgktTLV3at5UH/ 2KIO/2bMQwm9TQ5x5W8TkYwnkH5ftv4qanlLkm5aUj/3tt67MgQryP0wwdQexT7DvI3j YQyVMqLB2EKgz3M6czLeRw+0XoirW5gt3/44gApeilz5Pa9AghcLXLIkN3vDRXWo3tia 8suQ== X-Gm-Message-State: AC+VfDyuDAMsAMF0wH0WwoZw//nxIIpIM10vLxZCAc2CZ1dgUIuySozH vGfsmGrBbIHdlyfKqsT/O4DP1bkN+mYXjeXQJCV4aA== X-Received: by 2002:a05:6214:29e2:b0:621:65de:f5fa with SMTP id jv2-20020a05621429e200b0062165def5famr8272956qvb.15.1683922533981; Fri, 12 May 2023 13:15:33 -0700 (PDT) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id mi4-20020a056214558400b005ef6557834fsm3183223qvb.62.2023.05.12.13.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 13:15:33 -0700 (PDT) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Marek Vasut , Ralph Siemsen , Sean Anderson , Marek Vasut , Hai Pham , Lukasz Majewski Subject: [PATCH v5 02/10] clk: renesas: prepare for non R-Car clock drivers Date: Fri, 12 May 2023 16:15:14 -0400 Message-Id: <20230512201522.2295937-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230512201522.2295937-1-ralph.siemsen@linaro.org> References: <20230512201522.2295937-1-ralph.siemsen@linaro.org> MIME-Version: 1.0 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 Add new CONFIG_CLK_RCAR to control compilation of shared code for R-Car clock drivers (renesas-cpg-mssr.c). Enable this for R-Car Gen2 and 3. This is necessary so that CONFIG_CLK_RENESAS can be enabled, allowing recursion into the drivers/clk/reneasas directory, without bringing in the R-Car support code. The support code contains platform specific access (TMU_BASE) which is not needed on other Renesas devices such as RZ/N1. Signed-off-by: Ralph Siemsen Reviewed-by: Sean Anderson Reviewed-by: Marek Vasut --- (no changes since v5) Changes in v5: - add symbol CONFIG_CLK_RCAR and select it for R-Car Gen2/3. - use this to control compilation of renesas-cpg-mssr.c, rather than CONFIG_CLK_RENESAS which also controls directory recursion. - update the commit message accordingly Changes in v3: - added tags drivers/clk/renesas/Kconfig | 9 ++++++++- drivers/clk/renesas/Makefile | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig index 45671c6925..bdb81a1bbe 100644 --- a/drivers/clk/renesas/Kconfig +++ b/drivers/clk/renesas/Kconfig @@ -2,7 +2,12 @@ config CLK_RENESAS bool "Renesas clock drivers" depends on CLK && ARCH_RMOBILE help - Enable support for clock present on Renesas RCar SoCs. + Enable support for clock present on Renesas SoCs. + +config CLK_RCAR + bool "Renesas RCar clock driver support" + help + Enable common code for clocks on Renesas RCar SoCs. config CLK_RCAR_CPG_LIB bool "CPG/MSSR library functions" @@ -11,6 +16,7 @@ config CLK_RCAR_GEN2 bool "Renesas RCar Gen2 clock driver" def_bool y if RCAR_32 depends on CLK_RENESAS + select CLK_RCAR help Enable this to support the clocks on Renesas RCar Gen2 SoC. @@ -48,6 +54,7 @@ config CLK_RCAR_GEN3 bool "Renesas RCar Gen3 and Gen4 clock driver" def_bool y if RCAR_64 depends on CLK_RENESAS + select CLK_RCAR select CLK_RCAR_CPG_LIB select DM_RESET help diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile index fe0391e520..c95dee67f3 100644 --- a/drivers/clk/renesas/Makefile +++ b/drivers/clk/renesas/Makefile @@ -1,4 +1,4 @@ -obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.o +obj-$(CONFIG_CLK_RCAR) += renesas-cpg-mssr.o obj-$(CONFIG_CLK_RCAR_CPG_LIB) += rcar-cpg-lib.o obj-$(CONFIG_CLK_RCAR_GEN2) += clk-rcar-gen2.o obj-$(CONFIG_CLK_R8A774A1) += r8a774a1-cpg-mssr.o