Skip to content

Commit e0b255d

Browse files
tmaimonbebarino
authored andcommitted
clk: npcm8xx: add clock controller
Add auxiliary driver to support Nuvoton Arbel BMC NPCM8XX contains an integrated clock controller which generates and supplies clocks to all modules within the BMC. The NPCM8xx clock controller is created using the auxiliary device framework and set up in the npcm reset driver since the NPCM8xx clock is using the same register region. Signed-off-by: Tomer Maimon <[email protected]> Tested-by: Benjamin Fair <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 2282315 commit e0b255d

File tree

3 files changed

+439
-0
lines changed

3 files changed

+439
-0
lines changed

drivers/clk/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ config COMMON_CLK_LOCHNAGAR
342342
This driver supports the clocking features of the Cirrus Logic
343343
Lochnagar audio development board.
344344

345+
config COMMON_CLK_NPCM8XX
346+
tristate "Clock driver for the NPCM8XX SoC Family"
347+
depends on ARCH_NPCM || COMPILE_TEST
348+
help
349+
This driver supports the clocks on the Nuvoton BMC NPCM8XX SoC Family,
350+
all the clocks are initialized by the bootloader, so this driver
351+
allows only reading of current settings directly from the hardware.
352+
345353
config COMMON_CLK_LOONGSON2
346354
bool "Clock driver for Loongson-2 SoC"
347355
depends on LOONGARCH || COMPILE_TEST

drivers/clk/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ obj-$(CONFIG_ARCH_MILBEAUT_M10V) += clk-milbeaut.o
6262
obj-$(CONFIG_ARCH_MOXART) += clk-moxart.o
6363
obj-$(CONFIG_ARCH_NOMADIK) += clk-nomadik.o
6464
obj-$(CONFIG_ARCH_NPCM7XX) += clk-npcm7xx.o
65+
obj-$(CONFIG_COMMON_CLK_NPCM8XX) += clk-npcm8xx.o
6566
obj-$(CONFIG_ARCH_NSPIRE) += clk-nspire.o
6667
obj-$(CONFIG_COMMON_CLK_PALMAS) += clk-palmas.o
6768
obj-$(CONFIG_CLK_LS1028A_PLLDIG) += clk-plldig.o

0 commit comments

Comments
 (0)