X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fclk-uclass.h;h=50e8681b553fade5b12de56294c1af81bc31133c;hb=be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b;hp=e76d98e2f6751611de309f7c2764d852c08e67d3;hpb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/clk-uclass.h b/include/clk-uclass.h index e76d98e..50e8681 100644 --- a/include/clk-uclass.h +++ b/include/clk-uclass.h @@ -53,14 +53,22 @@ struct clk_ops { */ int (*request)(struct clk *clock); /** - * free - Free a previously requested clock. + * rfree - Free a previously requested clock. * * This is the implementation of the client clk_free() API. * * @clock: The clock to free. * @return 0 if OK, or a negative error code. */ - int (*free)(struct clk *clock); + int (*rfree)(struct clk *clock); + /** + * round_rate() - Adjust a rate to the exact rate a clock can provide. + * + * @clk: The clock to manipulate. + * @rate: Desidered clock rate in Hz. + * @return rounded rate in Hz, or -ve error code. + */ + ulong (*round_rate)(struct clk *clk, ulong rate); /** * get_rate() - Get current clock rate. *