From patchwork Wed Mar 8 20:26:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 660460 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp523093wrb; Wed, 8 Mar 2023 12:27:44 -0800 (PST) X-Google-Smtp-Source: AK7set9/aA3/ZwMK9vAY6EK4u3LA63hY1eC2But6ILTiW1Cz8a26RNpEFHq55BhBCzMK26YvUANQ X-Received: by 2002:a05:6808:274e:b0:383:fa46:af3e with SMTP id eh14-20020a056808274e00b00383fa46af3emr7937028oib.44.1678307264552; Wed, 08 Mar 2023 12:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678307264; cv=none; d=google.com; s=arc-20160816; b=TeOjNf/n99OC2P5JNxwLhh3XJq4KGZzRVTa7Cfl2f9D2F/GbvgYDMYa3ES05phRnIa SFFStzczN1ReNWV6HVOimnyWfJzbcit3XJc4blCD2qMqnUSgGqkHqaYmDpFETzoznqwr Gk6p8FgdotcFxDcM4XssDrGzBdjKy6kUWCRblBV76iEEhExe5Ee4az/B7frLBjaWQAC2 5o4PYPSqIZFSZRmtLOc0wucO20iRkn5lqTdIEdVE9l4UFYV8EMrvnUT9pfggs6Bkz/kb 887OnYxofp1bjgXe8ePxLpKwD8XoUkj5oZ0ya7mkyBgar95B5qhIVmY529LjEwa4m3xP leXA== 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=z9T3B5eSzaJ2xswfJ2VJ8TdX3Jnf/Ubpc9jsC3Dw900=; b=LB3Zgy1s/Z3xY1kL4nOYTTJjaNjY1qizuQaXblI5yj4Qhr8SdpfRhqoBk2fT6Zn+s4 k84cmls4VBH3zXYw547VcyGKNg4j/6LBw/auWnuZH2zyyn9VcZGd70hAlxxA5xDzUP+z JRLHFJyCAufjOVVGn2GW6M/UYUjaH0ldjJp302cPAK1ohf0atNbzmQXO6XbLP9TYSQ40 H+dHAHUl0ITbiImcnJTrT9geyKH3iWVCceE0+Yw/TXTVedGYDZCbW4Py6tx83smV4z14 +YLiKfMEIdU952j3tSvVCKRSFkFBPe7HV1LyiSv/Pn8E53dtgSyed1chFhR27HjvirQr aykQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JKbl8hzj; 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 k10-20020a54470a000000b0037d8b8a5502si15544568oik.170.2023.03.08.12.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 12:27:44 -0800 (PST) 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=JKbl8hzj; 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 1B0B685E98; Wed, 8 Mar 2023 21:27:25 +0100 (CET) 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="JKbl8hzj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CCA985EC6; Wed, 8 Mar 2023 21:27:16 +0100 (CET) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 E930385E9C for ; Wed, 8 Mar 2023 21:27:05 +0100 (CET) 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-x833.google.com with SMTP id r5so19530495qtp.4 for ; Wed, 08 Mar 2023 12:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678307224; 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=z9T3B5eSzaJ2xswfJ2VJ8TdX3Jnf/Ubpc9jsC3Dw900=; b=JKbl8hzjXFSBzEm+N+D8ekGprNxJPc/xuHotYizRsxOmuAk+sW9zqzEYMVG5dmCjGA /qip8s8nxVDf8DbXTqiesp83I/JBzS8Tko8GnD4cyptq5KgsRiK3vr7UTTuwR5d5u7aR 2NUhsxD4/pmwzT9UX7O11jxY74t9hom3KwoAZBMabpEXGmakOYTFodZDM6Lxp5ID1paj C1jYl1khzUimfWAmCK6XoSzzXV67Cf7xX5ZFYjmiqOnS1PqB/u7A43jJxsqK+1VK7k7P wWtL27DpJt771gtmT01rD+diDvrGBpG9fsru+68Q33cJll3B1JY8KFxo3LBxgdRT+UPb m7vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678307224; 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=z9T3B5eSzaJ2xswfJ2VJ8TdX3Jnf/Ubpc9jsC3Dw900=; b=F1qZ+MWEf/Tg+RFALkKK6DDsOo8UYXQIAGawvwdc8LUsZ0D7aELWokD5rJ1Y78JyDb mmpCBdpcgcS0v2a47STYIdrHNJ5fVg2ERjOTgp2CwNFueeDslcECxgxVgG9Tmh/jfhAV kHlCykflJRJ5P2ZZPHc1csa7FEEnqh4vXjOisZMddYMjeiCO9tUoVmvS3NM0ZKYdBqDw WdjEnqCZ/EG5II0wEiexB1Es9pbebi61tEZyzEYIpktn0XN8AAturG4EqpLTUqi7BNPj LUthzQZ9/yjn0SbdpPz14/3YNQIVEo3VPXQao1IC9BzM8d+7fSVjxEmDsQj47tkVlMX7 pRkw== X-Gm-Message-State: AO0yUKXJkVgUNnGUz0F1OaMqaTlzWt0T6vettAzLmv6Py7HRNoQwNVcx TxZaKdk8RIn8zO8PLcXueyF3zNyDsmh9wfLRRQOKBA== X-Received: by 2002:a05:622a:5c9:b0:3bf:d366:50d5 with SMTP id d9-20020a05622a05c900b003bfd36650d5mr28612550qtb.56.1678307224713; Wed, 08 Mar 2023 12:27:04 -0800 (PST) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id m2-20020ac84442000000b003b86b088755sm12144203qtn.15.2023.03.08.12.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 12:27:04 -0800 (PST) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Marek Vasut , Ralph Siemsen , Sean Anderson , Hai Pham , Lukasz Majewski , Marek Vasut Subject: [PATCH v4 02/10] clk: renesas: prepare for non-RCAR clock drivers Date: Wed, 8 Mar 2023 15:26:45 -0500 Message-Id: <20230308202653.1926303-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308202653.1926303-1-ralph.siemsen@linaro.org> References: <20230308202653.1926303-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 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/3. Signed-off-by: Ralph Siemsen Reviewed-by: Sean Anderson --- (no changes since v3) Changes in v3: - added tags 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 1686410d6d..6788415eed 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 8f82a7aa3e..a0d8c10bdb 100644 --- a/drivers/clk/renesas/Makefile +++ b/drivers/clk/renesas/Makefile @@ -1,6 +1,5 @@ -obj-$(CONFIG_CLK_RENESAS) += 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_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 @@ -10,7 +9,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_R8A77960) += r8a7796-cpg-mssr.o obj-$(CONFIG_CLK_R8A77961) += r8a7796-cpg-mssr.o