X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fclk-uclass.h;h=e76d98e2f6751611de309f7c2764d852c08e67d3;hb=f5e73a34eddea4fb7c5e3d984b86f395996a64cd;hp=e7ea334c608b4f088af50524f80640bfd500d667;hpb=b07d044d5bfa8c440b172eb3f8a9d537f82e21b6;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/clk-uclass.h b/include/clk-uclass.h index e7ea334..e76d98e 100644 --- a/include/clk-uclass.h +++ b/include/clk-uclass.h @@ -1,9 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (c) 2015 Google, Inc * Written by Simon Glass * Copyright (c) 2016, NVIDIA CORPORATION. - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _CLK_UCLASS_H @@ -78,6 +77,14 @@ struct clk_ops { */ ulong (*set_rate)(struct clk *clk, ulong rate); /** + * set_parent() - Set current clock parent + * + * @clk: The clock to manipulate. + * @parent: New clock parent. + * @return zero on success, or -ve error code. + */ + int (*set_parent)(struct clk *clk, struct clk *parent); + /** * enable() - Enable a clock. * * @clk: The clock to manipulate.