File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1400,6 +1400,21 @@ int __clk_determine_rate(struct clk_hw *hw, struct clk_rate_request *req)
1400
1400
}
1401
1401
EXPORT_SYMBOL_GPL (__clk_determine_rate );
1402
1402
1403
+ /**
1404
+ * clk_hw_round_rate() - round the given rate for a hw clk
1405
+ * @hw: the hw clk for which we are rounding a rate
1406
+ * @rate: the rate which is to be rounded
1407
+ *
1408
+ * Takes in a rate as input and rounds it to a rate that the clk can actually
1409
+ * use.
1410
+ *
1411
+ * Context: prepare_lock must be held.
1412
+ * For clk providers to call from within clk_ops such as .round_rate,
1413
+ * .determine_rate.
1414
+ *
1415
+ * Return: returns rounded rate of hw clk if clk supports round_rate operation
1416
+ * else returns the parent rate.
1417
+ */
1403
1418
unsigned long clk_hw_round_rate (struct clk_hw * hw , unsigned long rate )
1404
1419
{
1405
1420
int ret ;
You can’t perform that action at this time.
0 commit comments