clk: starfive: Factor out common JH7100 and JH7110 code
authorEmil Renner Berthing <kernel@esmil.dk>
Sat, 1 Apr 2023 11:19:16 +0000 (19:19 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 5 Apr 2023 14:43:32 +0000 (15:43 +0100)
commit00f1cb17aeb71daf3d9ead5d11412c650329d6cf
tree9f3a96e923961ce18e996a8395fcb3fe6a43034a
parentc61f19ec3be35271fc005dac34390d9c5e1a2737
clk: starfive: Factor out common JH7100 and JH7110 code

The clock control registers on the StarFive JH7100 and JH7110 work
identically, so factor out the code then drivers for the two SoCs
can share it without depending on each other. No functional change.

Tested-by: Tommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/clk/starfive/Kconfig
drivers/clk/starfive/Makefile
drivers/clk/starfive/clk-starfive-jh7100.c
drivers/clk/starfive/clk-starfive-jh7100.h
drivers/clk/starfive/clk-starfive-jh71x0.c [new file with mode: 0644]