Skip to content

Commit 635e5e7

Browse files
Daire McNamarabebarino
authored andcommitted
clk: microchip: Add driver for Microchip PolarFire SoC
Add support for clock configuration on Microchip PolarFire SoC Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org> Co-developed-by: Padmarao Begari <padmarao.begari@microchip.com> Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com> Signed-off-by: Daire McNamara <daire.mcnamara@microchip.com> Co-developed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20220222121143.3316880-2-conor.dooley@microchip.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 2145bb6 commit 635e5e7

File tree

5 files changed

+394
-4
lines changed

5 files changed

+394
-4
lines changed

drivers/clk/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,6 @@ config COMMON_CLK_PXA
330330
help
331331
Support for the Marvell PXA SoC.
332332

333-
config COMMON_CLK_PIC32
334-
def_bool COMMON_CLK && MACH_PIC32
335-
336333
config COMMON_CLK_OXNAS
337334
bool "Clock driver for the OXNAS SoC Family"
338335
depends on ARCH_OXNAS || COMPILE_TEST
@@ -407,6 +404,7 @@ source "drivers/clk/keystone/Kconfig"
407404
source "drivers/clk/mediatek/Kconfig"
408405
source "drivers/clk/meson/Kconfig"
409406
source "drivers/clk/mstar/Kconfig"
407+
source "drivers/clk/microchip/Kconfig"
410408
source "drivers/clk/mvebu/Kconfig"
411409
source "drivers/clk/pistachio/Kconfig"
412410
source "drivers/clk/qcom/Kconfig"

drivers/clk/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ obj-$(CONFIG_ARCH_KEYSTONE) += keystone/
9191
obj-$(CONFIG_MACH_LOONGSON32) += loongson1/
9292
obj-y += mediatek/
9393
obj-$(CONFIG_ARCH_MESON) += meson/
94-
obj-$(CONFIG_MACH_PIC32) += microchip/
94+
obj-y += microchip/
9595
ifeq ($(CONFIG_COMMON_CLK), y)
9696
obj-$(CONFIG_ARCH_MMP) += mmp/
9797
endif

drivers/clk/microchip/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
config COMMON_CLK_PIC32
4+
def_bool COMMON_CLK && MACH_PIC32
5+
6+
config MCHP_CLK_MPFS
7+
bool "Clk driver for PolarFire SoC"
8+
depends on (RISCV && SOC_MICROCHIP_POLARFIRE) || COMPILE_TEST
9+
help
10+
Supports Clock Configuration for PolarFire SoC

drivers/clk/microchip/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_COMMON_CLK_PIC32) += clk-core.o
33
obj-$(CONFIG_PIC32MZDA) += clk-pic32mzda.o
4+
obj-$(CONFIG_MCHP_CLK_MPFS) += clk-mpfs.o

0 commit comments

Comments
 (0)