Commit 0493692b authored by Zong Li's avatar Zong Li Committed by Stephen Boyd
Browse files

dt-bindings: change the macro name of prci in header files and example



We currently change the macro name for fu540 and fu740 by adding the
prefix respectively, the dt-bindings should be modified as well.

Signed-off-by: default avatarZong Li <zong.li@sifive.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/f9284873c2993a9952d9fe4f8dd5e89f20daab75.1646388139.git.zong.li@sifive.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent e83da8e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ examples:
        interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>,
                     <17>, <18>, <19>, <20>, <21>, <22>;
        reg = <0x10060000 0x1000>;
        clocks = <&tlclk PRCI_CLK_TLCLK>;
        clocks = <&tlclk FU540_PRCI_CLK_TLCLK>;
        gpio-controller;
        #gpio-cells = <2>;
        interrupt-controller;
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ examples:
                            <0x0 0x0 0x0 0x2 &plic0 58>,
                            <0x0 0x0 0x0 0x3 &plic0 59>,
                            <0x0 0x0 0x0 0x4 &plic0 60>;
            clocks = <&prci PRCI_CLK_PCIE_AUX>;
            clocks = <&prci FU740_PRCI_CLK_PCIE_AUX>;
            resets = <&prci 4>;
            pwren-gpios = <&gpio 5 0>;
            reset-gpios = <&gpio 8 0>;
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ examples:
        interrupt-parent = <&plic0>;
        interrupts = <80>;
        reg = <0x10010000 0x1000>;
        clocks = <&prci PRCI_CLK_TLCLK>;
        clocks = <&prci FU540_PRCI_CLK_TLCLK>;
      };

...
+4 −4
Original line number Diff line number Diff line
@@ -10,9 +10,9 @@

/* Clock indexes for use by Device Tree data and the PRCI driver */

#define PRCI_CLK_COREPLL	       0
#define PRCI_CLK_DDRPLL		       1
#define PRCI_CLK_GEMGXLPLL	       2
#define PRCI_CLK_TLCLK		       3
#define FU540_PRCI_CLK_COREPLL		0
#define FU540_PRCI_CLK_DDRPLL		1
#define FU540_PRCI_CLK_GEMGXLPLL	2
#define FU540_PRCI_CLK_TLCLK		3

#endif
+9 −9
Original line number Diff line number Diff line
@@ -11,14 +11,14 @@

/* Clock indexes for use by Device Tree data and the PRCI driver */

#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
#define FU740_PRCI_CLK_COREPLL		0
#define FU740_PRCI_CLK_DDRPLL		1
#define FU740_PRCI_CLK_GEMGXLPLL	2
#define FU740_PRCI_CLK_DVFSCOREPLL	3
#define FU740_PRCI_CLK_HFPCLKPLL	4
#define FU740_PRCI_CLK_CLTXPLL		5
#define FU740_PRCI_CLK_TLCLK		6
#define FU740_PRCI_CLK_PCLK		7
#define FU740_PRCI_CLK_PCIE_AUX		8

#endif	/* __DT_BINDINGS_CLOCK_SIFIVE_FU740_PRCI_H */