clk: sifive: duplicate the macro definitions for the time being
authorZong Li <zong.li@sifive.com>
Fri, 4 Mar 2022 10:03:17 +0000 (18:03 +0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 15 Mar 2022 22:56:28 +0000 (15:56 -0700)
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 <zong.li@sifive.com>
Link: https://lore.kernel.org/r/8cfd57f01cfb59adb716eb13ca0c8250c246dcb2.1646388139.git.zong.li@sifive.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sifive/fu540-prci.c
drivers/clk/sifive/fu740-prci.c

index 29bab91..9e13119 100644 (file)
 
 #include <dt-bindings/clock/sifive-fu540-prci.h>
 
-#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 = {
index 53f6e00..7141a22 100644 (file)
@@ -8,9 +8,18 @@
 
 #include <dt-bindings/clock/sifive-fu740-prci.h>
 
-#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 = {