From patchwork Tue Oct 24 20:23:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 737571 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp2223531wrl; Tue, 24 Oct 2023 13:24:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEI+WQk+DKnRH2WJdtC0BFaZzZVnull++HXkzWEVYRgPdqjYpA787le48kprUhbmG8AFYxC X-Received: by 2002:adf:c041:0:b0:31f:fc9a:a03 with SMTP id c1-20020adfc041000000b0031ffc9a0a03mr14232986wrf.20.1698179053315; Tue, 24 Oct 2023 13:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698179053; cv=none; d=google.com; s=arc-20160816; b=efYY6Tgnw+PfqZ/fZeIZojzd4RPnLlESLgYJgM0TMu0VYtnmHzMZDs0190oP9cbSw+ z5wzxBWqROuydJziYRh/g4Z3VbzjDQG3fiaEdYxMazw1S4M+r57/RWuRcACy3Tznf3Rc vW8hsHEA60ErmjQnWiERnRpqW+YGTXNi5/7j2oEfp/JDCZrcx6eHeBpHM1hPiwGnvNps jq/L/89XWmUDofWTkL/Hu5bm7ilBl0kN86M+brjCpfWynjiHUNjrau7P+/ipm0z5VE7/ M4AvFf8cU61UYxJ1pPI0TrwniTLCA5aztiROgW7kIf3xWSszADnIiQpBM3Ya8MM2IfsP Hjzg== 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:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=SuP/GkU6ITouZfvuKBeu3C011gdwDuEyoEDoMpv3ODY=; fh=q1RL+1JU8fkRG2HgP2g2h5p9Et/4e6BT3AMG0mV6mHE=; b=aImtVxtJVQvrXLN70H13yExXPj7sUj3UGFMQ1/F8Ye1fpxTHlwR9O1HJLhnIQxdid2 D+6NSfnLlIf3Pq3sJ4b2lvAxhGxeF2Yizbb4rIE7qnCBiTT8MD2aNDpcc+fWzlRN3W+r jwJ77F9CAe9mR8adO5ulZ+i5Sb9bj0fVwYWMvZv13hdkqgXa+h8qgI5f42pxXLrn3S7M +O2xnplrQdwZx8OuzyXIe/5L4+/+MsBSessCo1XKuhvnugnW6XA7XER7utIoA/cglJvu Ob5AnjL7WHdVF29CIL4amaKwUlUOxQqvZlVPm5FyHil/POSnkzsfL45xZod7vGzg6vSC ctFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ut076fVE; 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 bx11-20020a5d5b0b000000b003175d8e02d0si6673527wrb.59.2023.10.24.13.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:24:13 -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=Ut076fVE; 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 37C7C87987; Tue, 24 Oct 2023 22:24:04 +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="Ut076fVE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 439D38797C; Tue, 24 Oct 2023 22:24:03 +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 autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 62DC787987 for ; Tue, 24 Oct 2023 22:23:57 +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=caleb.connolly@linaro.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40806e4106dso840905e9.1 for ; Tue, 24 Oct 2023 13:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698179037; x=1698783837; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SuP/GkU6ITouZfvuKBeu3C011gdwDuEyoEDoMpv3ODY=; b=Ut076fVEXTWGG4mIqEwiVgqKd4PVI4J8FfTYP2DBw0l3Ic5frJtMh+qmDJVyMQbdRW jvU2UOOqBpbCxYaBq7c426V+uX2WBTk/OTjvotnPZbpMgglKDklO5zzDrheAi5q35OBd mRBFdcxrsvICix6r/I9AjaM3YqURmUMXG3dFh9+6s8xTlzd9ZvVxlvjpEnIyFNsp4DP9 k8tA63eRST7rHhyuLS7BZ4/pkoSGPZTNGmDOQYokIuiDQuv3xZVv5ZFA6L6HXpik8PJ0 ZdOYsCvysHORtsQDmy0gnQwN5Uw397Lbp0n3r8TwHctVKC8Ff2N5O/sWCHsoUlZlvPc7 Dm5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698179037; x=1698783837; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SuP/GkU6ITouZfvuKBeu3C011gdwDuEyoEDoMpv3ODY=; b=e2TH17zjtxDVFz2MhM7mymo8r/W65n4M4xD5/GuLXDCYgCFBK/p8w8ypPNYX64gZzH IAqgaVrzj3NRKI++RrDx8XtnYDzrDWXS5ve7PdKNeFZHKez45QKOXvVJaot74n460H6E kPrurGlFcpIUw96F06rlKUzD+tjKJfG//o/6b6oLkgoSpTv61ZgKPrXT24QlFxu1M7e/ v20gkmJwpq7RrAzOLSKvdR9uNW/nk5vbKm2kjpbYeoFgs9QpaAYZiu5FJZW75r2THRcJ S6bp5q6ec0EpcIiFf0tzyYNo0vYiQDl7cKGhIDSIjgXWBE5Tmxm5XZXTYoZxGT8MfN3/ 9zRw== X-Gm-Message-State: AOJu0YwWQNEZx0BRkhMNadjfOAcDcZdBFMkTVmoK2CibgLbxzHFIuAH4 WvYQQNgd4ihWd0yTP2wGcyL95A== X-Received: by 2002:a05:600c:3b28:b0:407:3e94:bcca with SMTP id m40-20020a05600c3b2800b004073e94bccamr12707918wms.1.1698179036845; Tue, 24 Oct 2023 13:23:56 -0700 (PDT) Received: from lion.localdomain (host-2-99-112-229.as13285.net. [2.99.112.229]) by smtp.gmail.com with ESMTPSA id l21-20020a056000023500b003198a9d758dsm10682342wrz.78.2023.10.24.13.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 13:23:56 -0700 (PDT) From: Caleb Connolly Date: Tue, 24 Oct 2023 21:23:52 +0100 Subject: [PATCH 1/8] clk/qcom: move from mach-snapdragon MIME-Version: 1.0 Message-Id: <20231024-b4-qcom-clk-v1-1-9d96359b9a82@linaro.org> References: <20231024-b4-qcom-clk-v1-0-9d96359b9a82@linaro.org> In-Reply-To: <20231024-b4-qcom-clk-v1-0-9d96359b9a82@linaro.org> To: Ramon Fried , Lukasz Majewski , Sean Anderson , Bharat Gooty , Rayagonda Kokatanur , Robert Marko , Bhupesh Sharma , Luka Kovacic , Luka Perkov Cc: Vladimir Zapolskiy , u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=5898; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=0KuOPXf0EAPmzagqSGBbBe71teyBXkli9r2q+QEfIYg=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhlQL9VsH40TUmYrVjkfrPwg5Iixbf/X0torczQHG/9i6u 5nfFx7rKGVhEORgkBVTZBE/scyyae1le43tCy7AzGFlAhnCwMUpABPxtmBkWO4uvsPuyS+PWYVd D5ys3hq+5eJR71VbPJ03Y3av9KxvLAx/xSVMuU7sZhFlD1ba9epcZeWaE+t/uC2MyzN17DrUYXp PAQA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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 Clock drivers don't belong here, move them to the right place and declutter mach-snapdragon a bit. Signed-off-by: Caleb Connolly --- arch/arm/mach-snapdragon/Makefile | 5 ----- drivers/clk/Makefile | 1 + drivers/clk/qcom/Makefile | 9 +++++++++ {arch/arm/mach-snapdragon => drivers/clk/qcom}/clock-apq8016.c | 2 +- {arch/arm/mach-snapdragon => drivers/clk/qcom}/clock-apq8096.c | 3 ++- .../clock-snapdragon.c => drivers/clk/qcom/clock-qcom.c | 2 +- .../clock-snapdragon.h => drivers/clk/qcom/clock-qcom.h | 0 {arch/arm/mach-snapdragon => drivers/clk/qcom}/clock-qcs404.c | 2 +- {arch/arm/mach-snapdragon => drivers/clk/qcom}/clock-sdm845.c | 2 +- 9 files changed, 16 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-snapdragon/Makefile b/arch/arm/mach-snapdragon/Makefile index cbaaf23f6b56..497ee35cf7d3 100644 --- a/arch/arm/mach-snapdragon/Makefile +++ b/arch/arm/mach-snapdragon/Makefile @@ -2,20 +2,15 @@ # # (C) Copyright 2015 Mateusz Kulikowski -obj-$(CONFIG_SDM845) += clock-sdm845.o obj-$(CONFIG_SDM845) += sysmap-sdm845.o obj-$(CONFIG_SDM845) += init_sdm845.o -obj-$(CONFIG_TARGET_DRAGONBOARD820C) += clock-apq8096.o obj-$(CONFIG_TARGET_DRAGONBOARD820C) += sysmap-apq8096.o -obj-$(CONFIG_TARGET_DRAGONBOARD410C) += clock-apq8016.o obj-$(CONFIG_TARGET_DRAGONBOARD410C) += sysmap-apq8016.o obj-y += misc.o -obj-y += clock-snapdragon.o obj-y += dram.o obj-y += pinctrl-snapdragon.o obj-y += pinctrl-apq8016.o obj-y += pinctrl-apq8096.o obj-y += pinctrl-qcs404.o obj-y += pinctrl-sdm845.o -obj-$(CONFIG_TARGET_QCS404EVB) += clock-qcs404.o obj-$(CONFIG_TARGET_QCS404EVB) += sysmap-qcs404.o diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 26bf429acbc0..dd90c7672e1b 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -40,6 +40,7 @@ obj-$(CONFIG_CLK_MPFS) += microchip/ obj-$(CONFIG_CLK_MVEBU) += mvebu/ obj-$(CONFIG_CLK_OCTEON) += clk_octeon.o obj-$(CONFIG_CLK_OWL) += owl/ +obj-$(CONFIG_ARCH_SNAPDRAGON) += qcom/ obj-$(CONFIG_CLK_RENESAS) += renesas/ obj-$(CONFIG_$(SPL_TPL_)CLK_SCMI) += clk_scmi.o obj-$(CONFIG_CLK_SIFIVE) += sifive/ diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile new file mode 100644 index 000000000000..5f0c7a79d2ab --- /dev/null +++ b/drivers/clk/qcom/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2023 Linaro + +obj-y += clock-qcom.o +obj-$(CONFIG_SDM845) += clock-sdm845.o +obj-$(CONFIG_TARGET_DRAGONBOARD410C) += clock-apq8016.o +obj-$(CONFIG_TARGET_DRAGONBOARD820C) += clock-apq8096.o +obj-$(CONFIG_TARGET_QCS404EVB) += clock-qcs404.o diff --git a/arch/arm/mach-snapdragon/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c similarity index 98% rename from arch/arm/mach-snapdragon/clock-apq8016.c rename to drivers/clk/qcom/clock-apq8016.c index 23a37a1714dc..90f2a93d9ed5 100644 --- a/arch/arm/mach-snapdragon/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -13,7 +13,7 @@ #include #include #include -#include "clock-snapdragon.h" +#include "clock-qcom.h" /* GPLL0 clock control registers */ #define GPLL0_STATUS_ACTIVE BIT(17) diff --git a/arch/arm/mach-snapdragon/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c similarity index 98% rename from arch/arm/mach-snapdragon/clock-apq8096.c rename to drivers/clk/qcom/clock-apq8096.c index 66184596d562..d5388c69aefe 100644 --- a/arch/arm/mach-snapdragon/clock-apq8096.c +++ b/drivers/clk/qcom/clock-apq8096.c @@ -13,7 +13,8 @@ #include #include #include -#include "clock-snapdragon.h" + +#include "clock-qcom.h" /* GPLL0 clock control registers */ #define GPLL0_STATUS_ACTIVE BIT(30) diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c b/drivers/clk/qcom/clock-qcom.c similarity index 99% rename from arch/arm/mach-snapdragon/clock-snapdragon.c rename to drivers/clk/qcom/clock-qcom.c index 0ac45dce9a92..5667abeb89a4 100644 --- a/arch/arm/mach-snapdragon/clock-snapdragon.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -13,7 +13,7 @@ #include #include #include -#include "clock-snapdragon.h" +#include "clock-qcom.h" /* CBCR register fields */ #define CBCR_BRANCH_ENABLE_BIT BIT(0) diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.h b/drivers/clk/qcom/clock-qcom.h similarity index 100% rename from arch/arm/mach-snapdragon/clock-snapdragon.h rename to drivers/clk/qcom/clock-qcom.h diff --git a/arch/arm/mach-snapdragon/clock-qcs404.c b/drivers/clk/qcom/clock-qcs404.c similarity index 99% rename from arch/arm/mach-snapdragon/clock-qcs404.c rename to drivers/clk/qcom/clock-qcs404.c index 3357b54c30c0..80218af73ef6 100644 --- a/arch/arm/mach-snapdragon/clock-qcs404.c +++ b/drivers/clk/qcom/clock-qcs404.c @@ -11,7 +11,7 @@ #include #include #include -#include "clock-snapdragon.h" +#include "clock-qcom.h" #include diff --git a/arch/arm/mach-snapdragon/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c similarity index 98% rename from arch/arm/mach-snapdragon/clock-sdm845.c rename to drivers/clk/qcom/clock-sdm845.c index d6df0365afca..95a057b82986 100644 --- a/arch/arm/mach-snapdragon/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -15,7 +15,7 @@ #include #include #include -#include "clock-snapdragon.h" +#include "clock-qcom.h" #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) }