Skip to content

Commit 4210be6

Browse files
geertuesmil
authored andcommitted
clk: starfive: Add JH7100 clock generator driver
Add a driver for the StarFive JH7100 clock generator. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Co-developed-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
1 parent af35098 commit 4210be6

File tree

6 files changed

+710
-0
lines changed

6 files changed

+710
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18130,6 +18130,13 @@ M: Ion Badulescu <ionut@badula.org>
1813018130
S: Odd Fixes
1813118131
F: drivers/net/ethernet/adaptec/starfire*
1813218132

18133+
STARFIVE JH7100 CLOCK DRIVER
18134+
M: Emil Renner Berthing <kernel@esmil.dk>
18135+
S: Maintained
18136+
F: Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml
18137+
F: drivers/clk/starfive/clk-starfive-jh7100.c
18138+
F: include/dt-bindings/clock/starfive-jh7100.h
18139+
1813318140
STATIC BRANCH/CALL
1813418141
M: Peter Zijlstra <peterz@infradead.org>
1813518142
M: Josh Poimboeuf <jpoimboe@redhat.com>

drivers/clk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ source "drivers/clk/samsung/Kconfig"
412412
source "drivers/clk/sifive/Kconfig"
413413
source "drivers/clk/socfpga/Kconfig"
414414
source "drivers/clk/sprd/Kconfig"
415+
source "drivers/clk/starfive/Kconfig"
415416
source "drivers/clk/sunxi/Kconfig"
416417
source "drivers/clk/sunxi-ng/Kconfig"
417418
source "drivers/clk/tegra/Kconfig"

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ obj-y += socfpga/
109109
obj-$(CONFIG_PLAT_SPEAR) += spear/
110110
obj-y += sprd/
111111
obj-$(CONFIG_ARCH_STI) += st/
112+
obj-$(CONFIG_SOC_STARFIVE) += starfive/
112113
obj-$(CONFIG_ARCH_SUNXI) += sunxi/
113114
obj-$(CONFIG_SUNXI_CCU) += sunxi-ng/
114115
obj-$(CONFIG_ARCH_TEGRA) += tegra/

drivers/clk/starfive/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
config CLK_STARFIVE_JH7100
4+
bool "StarFive JH7100 clock support"
5+
depends on SOC_STARFIVE || COMPILE_TEST
6+
default SOC_STARFIVE
7+
help
8+
Say yes here to support the clock controller on the StarFive JH7100
9+
SoC.

drivers/clk/starfive/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# StarFive Clock
3+
obj-$(CONFIG_CLK_STARFIVE_JH7100) += clk-starfive-jh7100.o

0 commit comments

Comments
 (0)