File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2869,7 +2869,9 @@ ARM/Marvell PXA1908 SOC support
28692869M: Duje Mihanović <duje@dujemihanovic.xyz>
28702870L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
28712871S: Maintained
2872+ F: Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml
28722873F: arch/arm64/boot/dts/marvell/mmp/
2874+ F: drivers/clk/mmp/Kconfig
28732875F: drivers/clk/mmp/clk-pxa1908*.c
28742876F: include/dt-bindings/clock/marvell,pxa1908.h
28752877
Original file line number Diff line number Diff line change @@ -511,6 +511,7 @@ source "drivers/clk/imx/Kconfig"
511511source "drivers/clk/ingenic/Kconfig"
512512source "drivers/clk/keystone/Kconfig"
513513source "drivers/clk/mediatek/Kconfig"
514+ source "drivers/clk/mmp/Kconfig"
514515source "drivers/clk/meson/Kconfig"
515516source "drivers/clk/mstar/Kconfig"
516517source "drivers/clk/microchip/Kconfig"
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: GPL-2.0-only
2+
3+ config COMMON_CLK_PXA1908
4+ bool "Clock driver for Marvell PXA1908"
5+ depends on ARCH_MMP || COMPILE_TEST
6+ depends on OF
7+ default y if ARCH_MMP && ARM64
8+ select AUXILIARY_BUS
9+ help
10+ This driver supports the Marvell PXA1908 SoC clocks.
Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ obj-$(CONFIG_MACH_MMP_DT) += clk-of-pxa168.o clk-of-pxa910.o
1111obj-$(CONFIG_COMMON_CLK_MMP2) += clk-of-mmp2.o clk-pll.o pwr-island.o
1212obj-$(CONFIG_COMMON_CLK_MMP2_AUDIO) += clk-audio.o
1313
14- obj-$(CONFIG_ARCH_MMP) += clk-of-pxa1928.o clk-pxa1908-apbc.o clk-pxa1908-apbcp.o clk-pxa1908-apmu.o clk-pxa1908-mpmu.o
14+ obj-$(CONFIG_COMMON_CLK_PXA1908) += clk-pxa1908-apbc.o clk-pxa1908-apbcp.o \
15+ clk-pxa1908-mpmu.o clk-pxa1908-apmu.o
16+
17+ obj-$(CONFIG_ARCH_MMP) += clk-of-pxa1928.o
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: GPL-2.0-only
2+ #include <linux/auxiliary_bus.h>
23#include <linux/clk-provider.h>
34#include <linux/module.h>
45#include <linux/platform_device.h>
@@ -85,6 +86,7 @@ static void pxa1908_axi_periph_clk_init(struct pxa1908_clk_unit *pxa_unit)
8586static int pxa1908_apmu_probe (struct platform_device * pdev )
8687{
8788 struct pxa1908_clk_unit * pxa_unit ;
89+ struct auxiliary_device * adev ;
8890
8991 pxa_unit = devm_kzalloc (& pdev -> dev , sizeof (* pxa_unit ), GFP_KERNEL );
9092 if (!pxa_unit )
@@ -94,6 +96,11 @@ static int pxa1908_apmu_probe(struct platform_device *pdev)
9496 if (IS_ERR (pxa_unit -> base ))
9597 return PTR_ERR (pxa_unit -> base );
9698
99+ adev = devm_auxiliary_device_create (& pdev -> dev , "power" , NULL );
100+ if (IS_ERR (adev ))
101+ return dev_err_probe (& pdev -> dev , PTR_ERR (adev ),
102+ "Failed to register power controller\n" );
103+
97104 mmp_clk_init (pdev -> dev .of_node , & pxa_unit -> unit , APMU_NR_CLKS );
98105
99106 pxa1908_axi_periph_clk_init (pxa_unit );
You can’t perform that action at this time.
0 commit comments