hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/clk/rockchip/clk.h
....@@ -498,6 +498,7 @@
498498 * @clk_data: holds clock related data like clk* and number of clocks.
499499 * @cru_node: device-node of the clock-provider
500500 * @grf: regmap of the general-register-files syscon
501
+ * @list_node: node in the global ctx list
501502 * @lock: maintains exclusion between callbacks for a given clock-provider.
502503 */
503504 struct rockchip_clk_provider {
....@@ -506,6 +507,7 @@
506507 struct device_node *cru_node;
507508 struct regmap *grf;
508509 struct regmap *pmugrf;
510
+ struct hlist_node list_node;
509511 spinlock_t lock;
510512 };
511513
....@@ -1313,6 +1315,7 @@
13131315 int rockchip_clk_protect(struct rockchip_clk_provider *ctx,
13141316 unsigned int *clocks, unsigned int nclocks);
13151317 void rockchip_clk_unprotect(void);
1318
+void rockchip_clk_disable_unused(void);
13161319 #else
13171320 static inline int rockchip_clk_protect(struct rockchip_clk_provider *ctx,
13181321 unsigned int *clocks,
....@@ -1324,5 +1327,9 @@
13241327 static inline void rockchip_clk_unprotect(void)
13251328 {
13261329 }
1330
+
1331
+static inline void rockchip_clk_disable_unused(void)
1332
+{
1333
+}
13271334 #endif
13281335 #endif