clk: mvebu: add helper file for Armada AP and CP clocks
authorGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 10 Jul 2019 13:43:42 +0000 (15:43 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 8 Aug 2019 16:08:09 +0000 (09:08 -0700)
commit33c0259092c805dc1cee9dd7bf66a955124702d9
treef8daa17f929ecd6bb0f382c62816324cadbdda7d
parent096f4597406bc86cd93947eb0e96a8188f934ebf
clk: mvebu: add helper file for Armada AP and CP clocks

Clock drivers for Armada AP and Armada CP use the same function to
generate unique clock name. A third drivers is coming with the same
need, so it's time to move this function in a common file.

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lkml.kernel.org/r/20190710134346.30239-3-gregory.clement@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/Kconfig
drivers/clk/mvebu/Makefile
drivers/clk/mvebu/ap806-system-controller.c
drivers/clk/mvebu/armada_ap_cp_helper.c [new file with mode: 0644]
drivers/clk/mvebu/armada_ap_cp_helper.h [new file with mode: 0644]
drivers/clk/mvebu/cp110-system-controller.c