From patchwork Wed Feb 22 15:44: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: 655690 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp760222wrb; Wed, 22 Feb 2023 07:44:54 -0800 (PST) X-Google-Smtp-Source: AK7set+9kVcraW2pTatXEygTf5mKCgfzmxUxo1U16eN89LLQ5Pt4JTcM+sV96m1kZjdnxUBJb2DK X-Received: by 2002:a05:6808:498:b0:37a:b61b:2f93 with SMTP id z24-20020a056808049800b0037ab61b2f93mr3683647oid.32.1677080694129; Wed, 22 Feb 2023 07:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677080694; cv=none; d=google.com; s=arc-20160816; b=vDZ6YE77IPmNioIBF404+fWl79RZxgwDJCLrEPvfjoEIzX1ilpNuIK+79kHXIfYw80 wAnR4aA/Bc0JAO1n9TkuqGhjhPyygNpc+q/ks+N8eUOS0/X/rL2dNmYwYTC3+F9eTml0 a9IVraXuhHALF6UjRjWIAp+MzkKyr78WEuMiRkUTCLd/TBMJaOGeJnw8qFtDqxAEcELn qCmmpVqg2FuFE/KMhctZEuyfrZglIOpU/dQeE11rO3wf0gO0vSsPRi6pMbPxlfcJrDhx A28vJ64L7DrLTc4v+NBpmfVapPmmiEhUahQg5o2c/01Rf2a5S52H/VMjLtE41Xof+mf8 1pBw== 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=hrkYD3t2ewjQOObM0SoI7ZccjhBJvq1ki7RUZwEH3+g=; b=cTCzdvs9lKT2eOLMNFCQt3kcd0Tbjk77fL2Q/kP6hfiRCv1bwaRpiJW66POdb3L9tE xzJa2yQlDMkYLmkeGJR9vuooKe/toFlkcIvYvrrRSkS1gMV2flLM8rbo2luQb2Ox4iAV lgN+ijn9f+TmZBwwazFXw71s9CNlGKhuNUo9xwvobvCJGyhWBOE4KtKFpCXKN49pzmZa qp2BQ3cbl3pvTndmHi8GNn/i/2mF+IYtaGo3Qj+UCvNnGZfAN66LOlfspSSbukTPqJpw V26bJDGuHs30zDhkHSIt4+5j21nx5Zge9flAEWIisG/tsOyr4AscH4+AK+CZd3AHk1Yf llxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YNiAhrCl; 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 e25-20020aca1319000000b00383d375dfb5si1288931oii.23.2023.02.22.07.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 07:44:54 -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=YNiAhrCl; 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 73C64859F1; Wed, 22 Feb 2023 16:44:38 +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="YNiAhrCl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6969785AEB; Wed, 22 Feb 2023 16:44:30 +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-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 954D885AD1 for ; Wed, 22 Feb 2023 16:44:26 +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-x82c.google.com with SMTP id d5so7817699qtn.13 for ; Wed, 22 Feb 2023 07:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=hrkYD3t2ewjQOObM0SoI7ZccjhBJvq1ki7RUZwEH3+g=; b=YNiAhrClZmtk5EO1qU4QOy4zyoFRZXz5vQdEGNKJlisuq1iov5eKMfILWPbQPTKP3q Nts87LDores2QWtbE2QTov7AFy+5AYOwsuMCZYUFnoVa6g22ZyGHpRtHWuvE/AhmL03g WnXd9xo20lYiJD9QXXeMax447dTGP3hAfCfSWadV4wu2Ru56/kelQ7PxZZz+Eady4677 SM18cA/AGaax7rMzrIwJDQzfGSRglVt/iUBfK3ca3zCWoxNGB8+kELsTVqYSB+W6aF3Q v+1PhOTSd12vXWgnDfzqyMJqtd3BHDIVdCC2eTmNA/y8uNKNZ6U5l/ZAb6EfjDi/A+kq p+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=hrkYD3t2ewjQOObM0SoI7ZccjhBJvq1ki7RUZwEH3+g=; b=tyGEUJ0bHI+MBtL0wOvo/T3S2lYGws5lUCGpT9sLEtWbr8coYMaJZjmRX9JcmlQ5Hl U76M9BtMlpPH31RP2YffFNIHMIrRtCX06TxEb5v5e40jIaBoye+aMSlrGN6r07Ywdd4f O7dMQx4/nk0yNLfiDB8GBX0G1IofdRj1/DaGgLtsGWMQgFykuO3xRGM7co6BMWxkqGlE TJ6hRFqn5i8bnNpByZkOVkduEjoSYgsNzfWjkvxl89jHpbL7c9ZzG8MQeL/zGNYjU9Rr XrfsQ2Wejh6CpnqHhtMnlA1EPv48MTjAQ6BNhrJhLMF2iN1FaAdWBOMIqnBnRq0JY25b 91kg== X-Gm-Message-State: AO0yUKVPtji3pKXVg1gqkxsKyPgHcKb+LUPyEenHEBc1XJfq0j5iOpyh N9obz2uNEUeCnebxTrPmPYdhjzU/vSJKvJ0QqHE= X-Received: by 2002:a05:622a:5d1:b0:3b9:b1ea:2d0f with SMTP id d17-20020a05622a05d100b003b9b1ea2d0fmr14949111qtb.34.1677080665080; Wed, 22 Feb 2023 07:44:25 -0800 (PST) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id t41-20020a05622a182900b003bfad864e81sm522246qtc.69.2023.02.22.07.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 07:44:24 -0800 (PST) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Ralph Siemsen , Sean Anderson , Hai Pham , Lukasz Majewski , Marek Vasut Subject: [RFC PATCH v3 2/9] clk: renesas: prepare for non-RCAR clock drivers Date: Wed, 22 Feb 2023 10:44:07 -0500 Message-Id: <20230222154414.49219-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230222154414.49219-1-ralph.siemsen@linaro.org> References: <20230222154414.49219-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.6 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 --- 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