clk: starfive: jh7100: Make hw clock implementation reusable
authorEmil Renner Berthing <kernel@esmil.dk>
Wed, 26 Jan 2022 17:39:51 +0000 (18:39 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 11 Mar 2022 02:17:32 +0000 (18:17 -0800)
commit26ad971faa07951179ae6d39f91b6622da4d020c
tree823084472426dbf2d0975efb939041f2d827eef8
parentc31b32fef8defb3f56ac969696f57acfbd054071
clk: starfive: jh7100: Make hw clock implementation reusable

The JH7100 has additional audio and video clocks at different memory
ranges, but they use the same register layout. Add a header and export
the starfive_jh7100_clk_ops function so the clock implementation can be
reused by drivers handling these clocks.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20220126173953.1016706-6-kernel@esmil.dk
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/starfive/clk-starfive-jh7100.c
drivers/clk/starfive/clk-starfive-jh7100.h [new file with mode: 0644]