From patchwork Tue Aug 9 12:59:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ralph Siemsen X-Patchwork-Id: 596221 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp4151808maz; Tue, 9 Aug 2022 06:01:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qJqvQ6Ygi92MWuXSJcy54+l/11VDGX1Pdjuz6/ft5MgppuPXUKpJV+42PCHmjoYVSewyW X-Received: by 2002:a05:6638:1641:b0:342:81be:ed1d with SMTP id a1-20020a056638164100b0034281beed1dmr11010752jat.262.1660050075775; Tue, 09 Aug 2022 06:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660050075; cv=none; d=google.com; s=arc-20160816; b=cWNAcJdc2xM0HnAtesFXAZ0xxlN/afgT1d7V0QrnnaaPo/6EIyBzMkDKnq5NwFPv67 OJe1AS4dkPLOE0t6h0IW48J8KvVvFmAwf+wy4wqbUdz7/2lKcCEhrVvHKAReHMzrF2zj bjhy14f7TdtGmimuQmjYsxHd6plSVWwDr8xCR6vBh9DA0SyI3jWh6cDUtDR7FEJoZa2+ SajUQ99MedPwYNmI1E1ThNSvssArC6RZXgHT4aq3JeZOfZ7bwt1smWEez821+KAa4I3G vl2K92KIvRlNJQgMjWjNBZ0ZbTjgV2auPjSBhggmPWuZjc7fKIuKZ9tduYUze6BoJuDY r2rA== 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=N11XMr9JuNk7JEqk/bX0BJgxBcA1T9LGs8Po6mZuNaU=; b=az+MG+bdWQP2GLMANZsUzWYlEE+XrEbSK8xpYSr45ONdpxzH+W4QZVxJPLsUiR8PnC /nKS3KEj5Z7bqmcKrqROKTNpt/Osn8JbbCuh301SIzwcYe9mexL5V6cGYngQxaJyulTs QPerC1TgJWGKO7+Jqfv0q1KWojBcNxlrYh3uST9i8aDG6ZsQVXPIXIHKpj1hySdfcT4m NgexBgT63HRjIaatSCWCmEMEsPZ5C8H+oeItq13qUpuVIyCUcGCzIM83YWRp0eQu8t+t kFLB3bepf8rxnk/pl6cWPrb5iLe9qQW3WOh+RWG8Fq3Cj38iH/IlVm4Lv9PjXLfbHF7B jtqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1IkkxJr; 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 o8-20020a027408000000b00342d3d9bc62si823419jac.28.2022.08.09.06.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 06:01:15 -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=p1IkkxJr; 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 1AD6A84A1E; Tue, 9 Aug 2022 15:00:56 +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="p1IkkxJr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0ED3584A14; Tue, 9 Aug 2022 15:00:38 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 98DDF849EA for ; Tue, 9 Aug 2022 15:00:25 +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-io1-xd33.google.com with SMTP id e69so9478986iof.5 for ; Tue, 09 Aug 2022 06:00:25 -0700 (PDT) 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; bh=N11XMr9JuNk7JEqk/bX0BJgxBcA1T9LGs8Po6mZuNaU=; b=p1IkkxJr40nyOc/wxVaHrwcNentukzGKdQHPZ1DKDIe0qcLohWWsf0v5FJwGa0nAa6 wjwTwCmc6pdpxzwAn4zEZyBOivciaxM75TYHAeHDzEd4C0m+NjS4Xcqk7MVxhZqJ3O7j mnvImE/NtDgL2fPUhvuOS/xdrubaXMda1nEDcaLthZ4aXgCMziXpAQVjp2l4MXPPNqJ2 jL/9XhEHCUyh3bmZsXotQnugq+mUr8RAyw1ymei3b/C9Jn5HMRNsgqjePVoH20TVDsWu 4hyOVe32RZ9iDM9306WkVS8SzCRCV93cbitRX+QKrtu4olgJu2Z4FDerdrs1Wrd7ZyVm vLjA== 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; bh=N11XMr9JuNk7JEqk/bX0BJgxBcA1T9LGs8Po6mZuNaU=; b=dXpCWr6mm3iJaPdcjJK99kCaa/4S2yLGlUCdWbepHzCauhpqyUWsgqSmp0Ij4sK2xL Igh1joo/kOIm4yEwdUCtcNQ2hkNA6b/dsGXYucO4lUpn306NhGFWNXooXeWOhJ92NNbz zIV9bS8owosYmS+ioN33Qk2KoB8XRALy7xgiHmz+ClxMyvY6MzX3OnHMhguJTvyEdT6D +Hzu9tvlNsV0m8TIF9f5Uy3oJ2+W5BzwtvW2WE+2gFOVlo5rFJhW5qhBYcujrllko95u 0otnrnDAKOuMwl8MVN7zH0bTnzeOzfl/yDMNnaDX3+xMI9bKs8KYd2mgIRh5pMtPemH0 qX+w== X-Gm-Message-State: ACgBeo1WCyi3pipcIsmFF1Qh09naDBLoFLr3EnIeS1gQiZ2VNPHbEfGz qdjqpFu1HokwLM0E+ft/4hSUtll9jQiTarWm X-Received: by 2002:a05:6638:44c:b0:342:b431:50d0 with SMTP id r12-20020a056638044c00b00342b43150d0mr9002569jap.253.1660050023725; Tue, 09 Aug 2022 06:00:23 -0700 (PDT) Received: from maple.netwinder.org (rfs.netwinder.org. [206.248.184.2]) by smtp.gmail.com with ESMTPSA id g12-20020a056e021a2c00b002dea1e18a94sm1022197ile.47.2022.08.09.06.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 06:00:23 -0700 (PDT) From: Ralph Siemsen To: u-boot@lists.denx.de Cc: Ralph Siemsen , Lukasz Majewski , Sean Anderson Subject: [RFC PATCH v1 2/9] clk: renesas: prepare for non-RCAR clock drivers Date: Tue, 9 Aug 2022 08:59:52 -0400 Message-Id: <20220809125959.217333-3-ralph.siemsen@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220809125959.217333-1-ralph.siemsen@linaro.org> References: <20220809125959.217333-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 and RCAR-GEN3. Signed-off-by: Ralph Siemsen Reviewed-by: Sean Anderson --- 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 f4d6ef9f93..c53ff3ce01 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 36a5ca65f4..2cd2c69f68 100644 --- a/drivers/clk/renesas/Makefile +++ b/drivers/clk/renesas/Makefile @@ -1,5 +1,4 @@ -obj-$(CONFIG_CLK_RENESAS) += renesas-cpg-mssr.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 @@ -9,7 +8,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_R8A7796) += r8a7796-cpg-mssr.o obj-$(CONFIG_CLK_R8A77965) += r8a77965-cpg-mssr.o