Unverified Commit b61571fd authored by Yixun Lan's avatar Yixun Lan
Browse files

Merge tag 'spacemit-clkrst-v6.20-1' into spacemit-clk-for-6.20

parents 99735a74 2b7a02c3
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __SOC_SPACEMIT_CCU_H__
#define __SOC_SPACEMIT_CCU_H__

#include <linux/auxiliary_bus.h>
#include <linux/regmap.h>

/* Auxiliary device used to represent a CCU reset controller */
struct spacemit_ccu_adev {
	struct auxiliary_device adev;
	struct regmap *regmap;
};

static inline struct spacemit_ccu_adev *
to_spacemit_ccu_adev(struct auxiliary_device *adev)
{
	return container_of(adev, struct spacemit_ccu_adev, adev);
}

#endif /* __SOC_SPACEMIT_CCU_H__ */
+1 −11
Original line number Diff line number Diff line
@@ -5,17 +5,7 @@
#ifndef __SOC_K1_SYSCON_H__
#define __SOC_K1_SYSCON_H__

/* Auxiliary device used to represent a CCU reset controller */
struct spacemit_ccu_adev {
	struct auxiliary_device adev;
	struct regmap *regmap;
};

static inline struct spacemit_ccu_adev *
to_spacemit_ccu_adev(struct auxiliary_device *adev)
{
	return container_of(adev, struct spacemit_ccu_adev, adev);
}
#include "ccu.h"

/* APBS register offset */
#define APBS_PLL1_SWCR1			0x100