Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2159883pxm; Fri, 4 Mar 2022 10:28:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrZJaNyHk9an+/UJW8pBWlKEp5aQyaq/CWT3stVdWexYa4q2Sda8U1+Opi42hF4lsX/dW+ X-Received: by 2002:a17:906:7307:b0:6da:92e1:9c83 with SMTP id di7-20020a170906730700b006da92e19c83mr7458024ejc.459.1646418493710; Fri, 04 Mar 2022 10:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646418493; cv=none; d=google.com; s=arc-20160816; b=iCY8zmgA6J9E89BIQL5SLNCR6txetG0shca/d3Fl3UOqUGtA6plBaHNgRiB+FseTDM HkYAPLpTQuA4Kuz5HFADKVaYeZHJdOvXhTQJbWGCZZhw4bif48N6hWQuUnt/hChCKDB4 SrozKeed72dluK5JH7AIWX6xsLhHcW/eLzIfhURdWd9uP+v58tIKcx+DGXEhQsH67ov4 Opg3Jh7wzZp8sYAurG5NiVf1lO20k6NzkeRchhP1rFlYx+tI0sA1OBu7rUsyGT4TnHgt 2X/Mlc4jKpuuYwCqQhxhv8OxQAmFC36b3vDZDcjzXkp+9uAn4JH/Xjvon96fjVF0j7+Y gAlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/wivmtaq/SOM50t59wI6fLzJlaXtHmkBr6jDahJcOY4=; b=fbToLVl7y2UlG1Witt39BBIKBi8LHA14Wf7+Gs0/M6rt093teE77GA7lbpsE940Y+A EF3SBl0v/e5H3puwJtsyv/GrZgKWx3zKHA6cnV9Hdzb1pXUgqnLK86afuEivHB0XT36q rrGg0/dNHPH4o9YKbc9lgK6ZohyUTSvprmLoetiFaQsXnbR+y72szxuGTDjyFRV4t9H9 jEmabFYVMQeUY4MVjQ/O8hnEZX7wYTqj9WV9gcPhH76PXrI+f4F5qkW9vRzRneDuWjJ2 UaRoIFZE4Z0jLLC+IPbiLoQ56by2sZQwNm7c1foSvUzpy8mj5Bt9hbL7o+XFgdKGRabN ANww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bGsRhcab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a50e082000000b00413c09d0ca9si3632296edl.430.2022.03.04.10.27.48; Fri, 04 Mar 2022 10:28:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bGsRhcab; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239473AbiCDKEX (ORCPT + 99 others); Fri, 4 Mar 2022 05:04:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239453AbiCDKER (ORCPT ); Fri, 4 Mar 2022 05:04:17 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7E919D617 for ; Fri, 4 Mar 2022 02:03:30 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id t187so2830112pgb.1 for ; Fri, 04 Mar 2022 02:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/wivmtaq/SOM50t59wI6fLzJlaXtHmkBr6jDahJcOY4=; b=bGsRhcabvtlSfwd8B3Hc862NImw4ysYnY4vIXQXnY8c0yLMXuW0PWOkCVaYH0JddgX 7XaSpfnyNR176s48aOfJYFXy71qH1fJ3EKDwd49Xj3F5Y3iKd0WHgQkui2hDyZDse7VV HEq/JvcnB7tT50djw2mSzJSMbXst7GcASnJQwJe0mVpIA3Z6Ze0q1LfCirUuWD/0wUR0 B2ngyyebL8s4qkERUEDqCqZ7Go8vt76ElCnjnfNliAbA6d175ipCZTEec27TjBdsgtxB 1blU1E5FrL/PqUUV+WIHLFHThitCK4qGoqsxjnFgwJfsw1vMs+rpYR5QGKQJjZNGY8YF y+og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/wivmtaq/SOM50t59wI6fLzJlaXtHmkBr6jDahJcOY4=; b=ENv1fZbGIu6vDcYw1ngW9uzTDALcYFg670i24m3k2mXYFck4asrtXjVscZ6WV0P/oq sP/2U8n2q8BuOtVYI5ItCVnOJS2UPSvuzuQ0FZD5ggy42HxBtSG8WReoEhAsfW7D3rWh KpY41tLtxAXtZKM27oMKQx2cRoY5MZHEeezDi5ld8PVMZ0WJYU3mz0YIHHynT7NYrzFW X1veh1Pa7vsMolJ3R4+jLYaSDqhFCJ5ecQBARFo35TBaFH6Wclbt5sZFJmIJiD14I/+B 3YOBzGtNzfdefMYir6+bJ+sUmHTarsULkF+EQD2E2XaQZC0W8Npl5PMVY6zW6kxJ1RP/ P7cA== X-Gm-Message-State: AOAM530OaLL8vN/sG8yahMl3XU+kIFWsM4DhvWOGg1y8Awht1qcw+2SL +U4khV7QiflW04+/V9nntl2rZA== X-Received: by 2002:a63:c61:0:b0:370:592b:3ad1 with SMTP id 33-20020a630c61000000b00370592b3ad1mr33584816pgm.240.1646388209553; Fri, 04 Mar 2022 02:03:29 -0800 (PST) Received: from hsinchu16.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id j8-20020a056a00174800b004f26d3f5b03sm5461605pfc.39.2022.03.04.02.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 02:03:29 -0800 (PST) From: Zong Li To: mturquette@baylibre.com, sboyd@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, lee.jones@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH v2 1/5] clk: sifive: duplicate the macro definitions for the time being Date: Fri, 4 Mar 2022 18:03:17 +0800 Message-Id: <8cfd57f01cfb59adb716eb13ca0c8250c246dcb2.1646388139.git.zong.li@sifive.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a temporary patch in whole patch set. We are going to change the macro name in dt-binding, in order to avoid breaking the driver build and git bisect, add these macro definitions for the time being, and we will remove them later. Signed-off-by: Zong Li --- drivers/clk/sifive/fu540-prci.c | 6 +++++- drivers/clk/sifive/fu740-prci.c | 11 ++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c index 29bab915003c..9e13119066eb 100644 --- a/drivers/clk/sifive/fu540-prci.c +++ b/drivers/clk/sifive/fu540-prci.c @@ -20,9 +20,13 @@ #include -#include "fu540-prci.h" #include "sifive-prci.h" +#define PRCI_CLK_COREPLL 0 +#define PRCI_CLK_DDRPLL 1 +#define PRCI_CLK_GEMGXLPLL 2 +#define PRCI_CLK_TLCLK 3 + /* PRCI integration data for each WRPLL instance */ static struct __prci_wrpll_data __prci_corepll_data = { diff --git a/drivers/clk/sifive/fu740-prci.c b/drivers/clk/sifive/fu740-prci.c index 53f6e00a03b9..7141a22d90e3 100644 --- a/drivers/clk/sifive/fu740-prci.c +++ b/drivers/clk/sifive/fu740-prci.c @@ -8,9 +8,18 @@ #include -#include "fu540-prci.h" #include "sifive-prci.h" +#define PRCI_CLK_COREPLL 0 +#define PRCI_CLK_DDRPLL 1 +#define PRCI_CLK_GEMGXLPLL 2 +#define PRCI_CLK_DVFSCOREPLL 3 +#define PRCI_CLK_HFPCLKPLL 4 +#define PRCI_CLK_CLTXPLL 5 +#define PRCI_CLK_TLCLK 6 +#define PRCI_CLK_PCLK 7 +#define PRCI_CLK_PCIE_AUX 8 + /* PRCI integration data for each WRPLL instance */ static struct __prci_wrpll_data __prci_corepll_data = { -- 2.31.1