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: 1772501 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=AF3uW7NC; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q4Ryw3m9cz23td for ; Mon, 24 Apr 2023 11:15:50 +1000 (AEST) 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-Google-Smtp-Source: AKy350ZpCubCPZaVexB4mh8KInitLdIikXvSs6GTOC+HZKsq1TnX38KDmwBU9vTDgLUl81Jjqjr3dA== 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