Commit edab7204 authored by Emil Renner Berthing's avatar Emil Renner Berthing Committed by Conor Dooley
Browse files

clk: starfive: Add StarFive JH7110 system clock driver



Add driver for the StarFive JH7110 system clock controller and
register an auxiliary device for system reset controller which
is named as "rst-sys".

Tested-by: default avatarTommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: default avatarEmil Renner Berthing <emil.renner.berthing@canonical.com>
Signed-off-by: default avatarEmil Renner Berthing <kernel@esmil.dk>
Co-developed-by: default avatarHal Feng <hal.feng@starfivetech.com>
Signed-off-by: default avatarHal Feng <hal.feng@starfivetech.com>
Signed-off-by: default avatarConor Dooley <conor.dooley@microchip.com>
parent b6d7406c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -20,3 +20,14 @@ config CLK_STARFIVE_JH7100_AUDIO
	help
	  Say Y or M here to support the audio clocks on the StarFive JH7100
	  SoC.

config CLK_STARFIVE_JH7110_SYS
	bool "StarFive JH7110 system clock support"
	depends on ARCH_STARFIVE || COMPILE_TEST
	select AUXILIARY_BUS
	select CLK_STARFIVE_JH71X0
	select RESET_STARFIVE_JH7110
	default ARCH_STARFIVE
	help
	  Say yes here to support the system clock controller on the
	  StarFive JH7110 SoC.
+2 −0
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@ obj-$(CONFIG_CLK_STARFIVE_JH71X0) += clk-starfive-jh71x0.o

obj-$(CONFIG_CLK_STARFIVE_JH7100)	+= clk-starfive-jh7100.o
obj-$(CONFIG_CLK_STARFIVE_JH7100_AUDIO)	+= clk-starfive-jh7100-audio.o

obj-$(CONFIG_CLK_STARFIVE_JH7110_SYS)	+= clk-starfive-jh7110-sys.o
+490 −0

File added.

Preview size limit exceeded, changes collapsed.

+11 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __CLK_STARFIVE_JH7110_H
#define __CLK_STARFIVE_JH7110_H

#include "clk-starfive-jh71x0.h"

int jh7110_reset_controller_register(struct jh71x0_clk_priv *priv,
				     const char *adev_name,
				     u32 adev_id);

#endif