From mboxrd@z Thu Jan 1 00:00:00 1970 From: Auer, Lukas Date: Sun, 10 Feb 2019 18:40:13 +0000 Subject: [U-Boot] [PATCH v6 09/16] clk: Add SiFive FU540 PRCI clock driver In-Reply-To: <20190209063052.29092-10-anup.patel@wdc.com> References: <20190209063052.29092-1-anup.patel@wdc.com> <20190209063052.29092-10-anup.patel@wdc.com> Message-ID: <93bf2da4aedb059f1024576294947fb48286c957.camel@aisec.fraunhofer.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 2019-02-09 at 06:32 +0000, Anup Patel wrote: > Add driver code for the SiFive FU540 PRCI IP block. This IP block > handles reset and clock control for the SiFive FU540 device and > implements SoC-level clock tree controls and dividers. > > Based on code written by Wesley Terpstra > found in commit 999529edf517ed75b56659d456d221b2ee56bb60 of: > https://github.com/riscv/riscv-linux > > Boot and PLL rate change were tested on a SiFive HiFive Unleashed > board. > > Signed-off-by: Paul Walmsley > Signed-off-by: Atish Patra > Signed-off-by: Anup Patel > Reviewed-by: Alexander Graf > --- > drivers/clk/Kconfig | 1 + > drivers/clk/Makefile | 1 + > drivers/clk/sifive/Kconfig | 19 + > drivers/clk/sifive/Makefile | 5 + > .../clk/sifive/analogbits-wrpll-cln28hpc.h | 101 +++ > drivers/clk/sifive/fu540-prci.c | 604 > ++++++++++++++++++ > drivers/clk/sifive/wrpll-cln28hpc.c | 390 +++++++++++ > include/dt-bindings/clk/sifive-fu540-prci.h | 29 + > 8 files changed, 1150 insertions(+) > create mode 100644 drivers/clk/sifive/Kconfig > create mode 100644 drivers/clk/sifive/Makefile > create mode 100644 drivers/clk/sifive/analogbits-wrpll-cln28hpc.h > create mode 100644 drivers/clk/sifive/fu540-prci.c > create mode 100644 drivers/clk/sifive/wrpll-cln28hpc.c > create mode 100644 include/dt-bindings/clk/sifive-fu540-prci.h > This patch currently does not apply cleanly on U-Boot master. Thanks, Lukas