Skip to content

Commit 024b84f

Browse files
alexelderdlan17
authored andcommitted
clk: spacemit: define three reset-only CCUs
Three CCUs on the SpacemiT K1 SoC implement only resets, not clocks. Define the CCU data for these resets so their auxiliary devices get created. Signed-off-by: Alex Elder <[email protected]> Reviewed-by: Yixun Lan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Yixun Lan <[email protected]>
1 parent 9885435 commit 024b84f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

drivers/clk/spacemit/ccu-k1.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,18 @@ static const struct spacemit_ccu_data k1_ccu_apmu_data = {
943943
.num = ARRAY_SIZE(k1_ccu_apmu_hws),
944944
};
945945

946+
static const struct spacemit_ccu_data k1_ccu_rcpu_data = {
947+
.reset_name = "rcpu-reset",
948+
};
949+
950+
static const struct spacemit_ccu_data k1_ccu_rcpu2_data = {
951+
.reset_name = "rcpu2-reset",
952+
};
953+
954+
static const struct spacemit_ccu_data k1_ccu_apbc2_data = {
955+
.reset_name = "apbc2-reset",
956+
};
957+
946958
static int spacemit_ccu_register(struct device *dev,
947959
struct regmap *regmap,
948960
struct regmap *lock_regmap,
@@ -1121,6 +1133,18 @@ static const struct of_device_id of_k1_ccu_match[] = {
11211133
.compatible = "spacemit,k1-syscon-apmu",
11221134
.data = &k1_ccu_apmu_data,
11231135
},
1136+
{
1137+
.compatible = "spacemit,k1-syscon-rcpu",
1138+
.data = &k1_ccu_rcpu_data,
1139+
},
1140+
{
1141+
.compatible = "spacemit,k1-syscon-rcpu2",
1142+
.data = &k1_ccu_rcpu2_data,
1143+
},
1144+
{
1145+
.compatible = "spacemit,k1-syscon-apbc2",
1146+
.data = &k1_ccu_apbc2_data,
1147+
},
11241148
{ }
11251149
};
11261150
MODULE_DEVICE_TABLE(of, of_k1_ccu_match);

0 commit comments

Comments
 (0)