From patchwork Mon Apr 24 01:15:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 676479 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp1922522wrs; Sun, 23 Apr 2023 18:15:45 -0700 (PDT) X-Google-Smtp-Source: AKy350bCp4HKZPl8NBJoJH9h+1GuMNS29CN7GAcMJwNr0KI4r7JEzw5W4x1LXKKArhgqEPRcS6yf X-Received: by 2002:a05:6a21:3703:b0:ee:f5a4:c071 with SMTP id yl3-20020a056a21370300b000eef5a4c071mr10015222pzb.62.1682298945594; Sun, 23 Apr 2023 18:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682298945; cv=none; d=google.com; s=arc-20160816; b=a+56+SJ3VtTpdXI/5SAWVjfb7BcPfSiGsgLVDwMvG/WwXkAVnDHukNIxYpWNLfPmdZ Rs/cMvpBXHq4HrGze4ZgaWschxUlBREy5+i6D20H0FbHYy1rmCmIiY6xM3cwmajZDUDT 99XkGk4kSA8CCxGvNp1k3fnhFEA5rcSUReO/vhIDfoGaNol2heCIHEWbWx2I7f4odu+Y YM9tbBe0Ss0aXXvE7TpaWM78xoXea3WesGvdsDh7Fmaa17UFlILd7mJjKZ6dN1yFZ2jY QWYs5ots01Yk7uVu9Gzm9QzcxoVBWJVKlrACSNrwJ2rHkqkCI3v5vo8bgQv4kC4Aq3F4 FltQ== 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=T+uAo6jqCaSEwtOXFkvJeVa6BBArByFg4Nyzk/8EYEM=; b=BS/ECJ45KNP1h8CHb21iAaLamq1pxINLAExwWYOxYizfTKIYijOjeKyMBbVSiioATb DSgJKc3CXtTLCQDpv17UumS0Gattr/3BZkqy73RWaP1gwcSKrqwMFJlho1NAhfSydm9U AdbFdWjr+bGSmO7eVTDhgk05QRK/nRTfpSUOCEPsbg7CgcVkZS3HV5Vmpeg38XkAzJg9 U6qdQNldf4cbOzVP2At6XXQsctuCMEDmE0oyL1EkLmuNF2ohYOk69quLu1HZJ/idQS0y eXvYzraUL/oUWhIDI18/bmwpaf8k0HmDZrTUMkfIPPQo3JcnvSml2LIQE3BvREIjn2Fe 3xOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AF3uW7NC; 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 a15-20020a631a0f000000b0051892919b7csi9490397pga.420.2023.04.23.18.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 18:15:45 -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=AF3uW7NC; 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 13D84860FD; Mon, 24 Apr 2023 03:15:38 +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="AF3uW7NC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 225298611C; Mon, 24 Apr 2023 03:15:35 +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-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 03C30860FE for ; Mon, 24 Apr 2023 03:15:29 +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-qt1-x82e.google.com with SMTP id d75a77b69052e-3ef69281e68so5185211cf.1 for ; Sun, 23 Apr 2023 18:15:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682298928; x=1684890928; 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=T+uAo6jqCaSEwtOXFkvJeVa6BBArByFg4Nyzk/8EYEM=; b=AF3uW7NCJ94mzCo3vp1v6R3uH9HK4EkShlsxbupVBja9BBO0QAHp2+nQ2oeybCNKoH ymP7ZWJykYWyPI+pJJnQ9mg4S4KxjDO+cnzzXKcA4gLeZU1BEUoEpVj/btrmEYZK0Rqb ge/u8yxYTXBEnzGTSaPmCkLMZ1GwQlQA5+kCGG77JSLQ3PPxndnPaveQPvdRRQinTT9L 15WhnoDtWztmCRZVsdoyeWhdnPQ+mcmY2/t9JPWHVJIB2WnbWiBi6RgHGzy5sjrqvNGH 8JxQb0MrQlYKjY5RQM8zUYKB+vShqV+GMknTZHZNiJ9S6q0LAUZ65vrMbUmRYzXV3Bn+ LgTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682298928; x=1684890928; 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=T+uAo6jqCaSEwtOXFkvJeVa6BBArByFg4Nyzk/8EYEM=; b=ZGjvYTrXzISbsLr+VN6PK+HL3QJurUPnz6FfLYrHg6H/H5lXh3nzdTmgORnPPq2VIJ DzD5CuYfIxiIRAnaJf2xF91uVWIgUgV2WUtFCOJCV0gjIUueNJ1jlPCj+LpZfkpwCvxX sRWNP8oiIPBVNF1q4JINbFXErJVWSvSeW9ADMLLT3Vz0rZ2gA8Kwqyr74sj1Pkie0y37 JumwqqNvvQyKAX/orO+mQdEfc2OpsFj4VdeVbDkTpQXyL/xoPKN3BSuwsY+37NJw896V oFZ0cN3KrGxXj8X/wZZvAHixCi7ygre//ZHDWDq7+7Dv0HfjozcSND3dZT+uJqeQTipb XE7w== X-Gm-Message-State: AAQBX9fA8JGmmN+hDl0dtZWajxSmFoSRJR+zqTMBvPvy0V6rrrBhWqw7 NH8PlFoXV1g6L8oS96UgZOTX1YLfZppVm31M2lVlvQ== X-Received: by 2002:a05:622a:1104:b0:3ef:2d2c:c584 with SMTP id e4-20020a05622a110400b003ef2d2cc584mr19189878qty.9.1682298927713; Sun, 23 Apr 2023 18:15:27 -0700 (PDT) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id z20-20020ac87f94000000b003b635a5d56csm3225447qtj.30.2023.04.23.18.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 18:15:27 -0700 (PDT) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Marek Vasut , Ralph Siemsen , Sean Anderson , Hai Pham , Lukasz Majewski , Marek Vasut Subject: [PATCH v5 02/10] clk: renesas: prepare for non R-Car clock drivers Date: Sun, 23 Apr 2023 21:15:07 -0400 Message-Id: <20230424011515.1359255-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230424011515.1359255-1-ralph.siemsen@linaro.org> References: <20230424011515.1359255-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 --- 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