From patchwork Sat May 13 01:36:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 681586 Delivered-To: patch@linaro.org Received: by 2002:adf:fd8f:0:0:0:0:0 with SMTP id d15csp62266wrr; Fri, 12 May 2023 18:37:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bF/cAcPhwN4FPCTVKk2V3MqjuW2XpMXMMDd9JzzVk6+RHg/xqjEpW+RFj2RusrGMlbxQ2 X-Received: by 2002:a17:902:e845:b0:1ac:63ac:109d with SMTP id t5-20020a170902e84500b001ac63ac109dmr29370108plg.15.1683941839644; Fri, 12 May 2023 18:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683941839; cv=none; d=google.com; s=arc-20160816; b=o2gB3H+7LZbsDinG/OwbEK3H/TrLHuK12A0nRvBgIlJNBRqRseCcFwVlSmYpujeJg+ NbdnM07Ixya9Z/c32YEFoeTSvMJjbUSEAFEO1SCioucr/G0f44p+RzLDdESlbPaJK/PC PN+/axIqE5sV0aHCVvU+skdo7PhoM5hngNfMv1+YS9ZUQIvhLHiA1h1VE46+FMwgM13U u2rkQDPNX0el4RBCL0o+hG3Lt6TFLaK72Q8pKMGjnt2riNG/LWzcxNnIylgw+H+MV13P e1v9UCAK6Z/HKZ1xiFE5q6jfTRacCunefgoe+LIB5tYCqhdyt9q5SLWs2SMVg39SwIsP oO5g== 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=wic3+HOPlz8HDucebwNSqRR39Rgj2zsTA2b+ak4WAoEWW3DiDaQfXQkiDI6dHlJMF0 7PeJXgoU+9ONxEQm4xUqR2w2ORNMQuayr0uqDepL6C8rdlEKXV6lTSwJOYivmyEU/Cf1 ucZF9el4KilYrh2RgD0osjAJujhe4kO/uYx0ET9DSLMiTgxkdRYbnj9pvvGWGGsm0X2l E0hmd62xVsd4Etar9T5gaCiyw5FZ+JQsYIhl3c03T0Ym44tymVF0yuNCt+F9h0lHkDZA alzrZjal2bPXcf/91dJeMG7Q/ot7M1w81LNLnozDnHW0X3WV3A+N5Vb3m7flN3VG8Z49 VKyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pyxVfbNx; 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 18-20020a170902ee5200b001a1deff6062si9717441plo.281.2023.05.12.18.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 18:37:19 -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=pyxVfbNx; 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 2CA4D86229; Sat, 13 May 2023 03:37:13 +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="pyxVfbNx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F33C68623F; Sat, 13 May 2023 03:37:11 +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=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (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 8A67C86293 for ; Sat, 13 May 2023 03:37:07 +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-x72d.google.com with SMTP id af79cd13be357-75795493bceso306238685a.3 for ; Fri, 12 May 2023 18:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683941826; x=1686533826; 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=pyxVfbNxVY2gt8x1oJaNE7LEuNy9aMeDbY4jWCTGcF0iQgyJP7B4W4qKheFY832yk9 pyyPvspN4IMLIhrJSJVLLV5bHrXo1TqQ20zZmygsfrlu70rYLKLXyk5L7WYj+Q4zOYVw 8En36Lp/eG++M5nQW4EzDf3GhGdLQ8h17LADZ7j4BTX98E1kfyQcyVIavXjygNevGauA fJzJ6DmlUoZ6DFju3o6uBaQlOwckqzeLbICULPxz7a191ZyrWikmVXL/v9wBCgU4JpvO Ta7UaFyTBueLqnLfHICM8046Cd5JS/Lo9NRDXZg8n1KaR2cFkIHJSpmlCM4rNAFZatyV nMXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683941826; x=1686533826; 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=FKMEah0l9okbv4c6Z57NiAOzLwk+cM2qW+81cCUWbb95XFYoiENIpQ/juJhnBO+Df+ LpibrnRs8l1AZydHy8inF7qAy+XNHP5X3BYoyVIbpAeBjqea3zaqtc/GL7i8APdDDWce ulbgOEGsFAFIDjlRtL+YmX9e6p2FQJNwpd9X/OOLjowLB1rkyP/7c6t+gjEbtKUzJtWJ K9jQObB8N3mkfTHqfQm5VpztT2F6VROsTBc2f0yrfkG7arsZXHbBHeTYUZcCkR5CEuED tIy1P+eE25QN4ugSZQYXkX4bltnyB7yLg7obrCVnUxtGtrQP0FGojJdJQgLPesnfM5yQ SljA== X-Gm-Message-State: AC+VfDyFfYL2xqP5sLEPPLYyslUx4zL6YhzIknLxIDndB++TK9UhjpGy G0yaatkyRAOd4L9oqYzfJe6mJKpUhcHthyti0BiVug== X-Received: by 2002:ad4:5ced:0:b0:621:404f:9c93 with SMTP id iv13-20020ad45ced000000b00621404f9c93mr24477562qvb.40.1683941826205; Fri, 12 May 2023 18:37:06 -0700 (PDT) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id fi19-20020a0562141a5300b0061b608dc4c1sm3379399qvb.94.2023.05.12.18.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 18:37:05 -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 v7 02/10] clk: renesas: prepare for non R-Car clock drivers Date: Fri, 12 May 2023 21:36:50 -0400 Message-Id: <20230513013658.2330651-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230513013658.2330651-1-ralph.siemsen@linaro.org> References: <20230513013658.2330651-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