File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* SPDX-License-Identifier: GPL-2.0-only */
2+
3+ #ifndef __SOC_SPACEMIT_CCU_H__
4+ #define __SOC_SPACEMIT_CCU_H__
5+
6+ #include <linux/auxiliary_bus.h>
7+ #include <linux/regmap.h>
8+
9+ /* Auxiliary device used to represent a CCU reset controller */
10+ struct spacemit_ccu_adev {
11+ struct auxiliary_device adev ;
12+ struct regmap * regmap ;
13+ };
14+
15+ static inline struct spacemit_ccu_adev *
16+ to_spacemit_ccu_adev (struct auxiliary_device * adev )
17+ {
18+ return container_of (adev , struct spacemit_ccu_adev , adev );
19+ }
20+
21+ #endif /* __SOC_SPACEMIT_CCU_H__ */
Original file line number Diff line number Diff line change 55#ifndef __SOC_K1_SYSCON_H__
66#define __SOC_K1_SYSCON_H__
77
8- /* Auxiliary device used to represent a CCU reset controller */
9- struct spacemit_ccu_adev {
10- struct auxiliary_device adev ;
11- struct regmap * regmap ;
12- };
13-
14- static inline struct spacemit_ccu_adev *
15- to_spacemit_ccu_adev (struct auxiliary_device * adev )
16- {
17- return container_of (adev , struct spacemit_ccu_adev , adev );
18- }
8+ #include "ccu.h"
199
2010/* APBS register offset */
2111#define APBS_PLL1_SWCR1 0x100
You can’t perform that action at this time.
0 commit comments