Skip to content

Commit b61571f

Browse files
committed
Merge tag 'spacemit-clkrst-v6.20-1' into spacemit-clk-for-6.20
2 parents 99735a7 + 2b7a02c commit b61571f

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

include/soc/spacemit/ccu.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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__ */

include/soc/spacemit/k1-syscon.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,7 @@
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

0 commit comments

Comments
 (0)