.. | .. |
---|
498 | 498 | * @clk_data: holds clock related data like clk* and number of clocks. |
---|
499 | 499 | * @cru_node: device-node of the clock-provider |
---|
500 | 500 | * @grf: regmap of the general-register-files syscon |
---|
| 501 | + * @list_node: node in the global ctx list |
---|
501 | 502 | * @lock: maintains exclusion between callbacks for a given clock-provider. |
---|
502 | 503 | */ |
---|
503 | 504 | struct rockchip_clk_provider { |
---|
.. | .. |
---|
506 | 507 | struct device_node *cru_node; |
---|
507 | 508 | struct regmap *grf; |
---|
508 | 509 | struct regmap *pmugrf; |
---|
| 510 | + struct hlist_node list_node; |
---|
509 | 511 | spinlock_t lock; |
---|
510 | 512 | }; |
---|
511 | 513 | |
---|
.. | .. |
---|
1313 | 1315 | int rockchip_clk_protect(struct rockchip_clk_provider *ctx, |
---|
1314 | 1316 | unsigned int *clocks, unsigned int nclocks); |
---|
1315 | 1317 | void rockchip_clk_unprotect(void); |
---|
| 1318 | +void rockchip_clk_disable_unused(void); |
---|
1316 | 1319 | #else |
---|
1317 | 1320 | static inline int rockchip_clk_protect(struct rockchip_clk_provider *ctx, |
---|
1318 | 1321 | unsigned int *clocks, |
---|
.. | .. |
---|
1324 | 1327 | static inline void rockchip_clk_unprotect(void) |
---|
1325 | 1328 | { |
---|
1326 | 1329 | } |
---|
| 1330 | + |
---|
| 1331 | +static inline void rockchip_clk_disable_unused(void) |
---|
| 1332 | +{ |
---|
| 1333 | +} |
---|
1327 | 1334 | #endif |
---|
1328 | 1335 | #endif |
---|