Skip to content

Commit e83da8e

Browse files
zongboxbebarino
authored andcommitted
clk: sifive: duplicate the macro definitions for the time being
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>
1 parent e783362 commit e83da8e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

drivers/clk/sifive/fu540-prci.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020

2121
#include <dt-bindings/clock/sifive-fu540-prci.h>
2222

23-
#include "fu540-prci.h"
2423
#include "sifive-prci.h"
2524

25+
#define PRCI_CLK_COREPLL 0
26+
#define PRCI_CLK_DDRPLL 1
27+
#define PRCI_CLK_GEMGXLPLL 2
28+
#define PRCI_CLK_TLCLK 3
29+
2630
/* PRCI integration data for each WRPLL instance */
2731

2832
static struct __prci_wrpll_data __prci_corepll_data = {

drivers/clk/sifive/fu740-prci.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@
88

99
#include <dt-bindings/clock/sifive-fu740-prci.h>
1010

11-
#include "fu540-prci.h"
1211
#include "sifive-prci.h"
1312

13+
#define PRCI_CLK_COREPLL 0
14+
#define PRCI_CLK_DDRPLL 1
15+
#define PRCI_CLK_GEMGXLPLL 2
16+
#define PRCI_CLK_DVFSCOREPLL 3
17+
#define PRCI_CLK_HFPCLKPLL 4
18+
#define PRCI_CLK_CLTXPLL 5
19+
#define PRCI_CLK_TLCLK 6
20+
#define PRCI_CLK_PCLK 7
21+
#define PRCI_CLK_PCIE_AUX 8
22+
1423
/* PRCI integration data for each WRPLL instance */
1524

1625
static struct __prci_wrpll_data __prci_corepll_data = {

0 commit comments

Comments
 (0)