clk: sifive: Add a driver for the SiFive FU740 PRCI IP block
authorZong Li <zong.li@sifive.com>
Wed, 9 Dec 2020 09:49:14 +0000 (17:49 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 16 Dec 2020 20:22:59 +0000 (12:22 -0800)
commitefc91ae43c8d4bbf64e4b9a28113b24a74ffd58d
treef21e5b2022b7d8f522140fd4a27fa719507dc070
parent28108fc8a056f0fd26be17727eff212fae67a247
clk: sifive: Add a driver for the SiFive FU740 PRCI IP block

Add driver code for the SiFive FU740 PRCI IP block. This IP block
handles reset and clock control for the SiFive FU740 device and
implements SoC-level clock tree controls and dividers.

The link of unmatched as follow, and the U740-C000 manual would
be present in the same page as soon.
https://www.sifive.com/boards/hifive-unmatched

This driver contains bug fixes and contributions from
Henry Styles <hes@sifive.com>
Erik Danie <erik.danie@sifive.com>
Pragnesh Patel <pragnesh.patel@sifive.com>

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Pragnesh Patel <Pragnesh.patel@sifive.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
Cc: Henry Styles <hes@sifive.com>
Cc: Erik Danie <erik.danie@sifive.com>
Cc: Pragnesh Patel <pragnesh.patel@sifive.com>
Link: https://lore.kernel.org/r/20201209094916.17383-4-zong.li@sifive.com
[sboyd@kernel.org: Include header to silence sparse]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sifive/Kconfig
drivers/clk/sifive/Makefile
drivers/clk/sifive/fu740-prci.c [new file with mode: 0644]
drivers/clk/sifive/fu740-prci.h [new file with mode: 0644]
drivers/clk/sifive/sifive-prci.c
drivers/clk/sifive/sifive-prci.h
include/dt-bindings/clock/sifive-fu740-prci.h [new file with mode: 0644]