[U-Boot] [PATCH v3 53/58] clk: Get the CLK by index without device
Simon Glass
sjg at chromium.org
Thu Aug 23 10:45:08 UTC 2018
+Stephen
On 19 August 2018 at 07:57, Jagan Teki <jagan at amarulasolutions.com> wrote:
> Getting a CLK by index with device is not straight forward
> for some use-cases like handling clock operations for child
> node in parent driver. So we need to process the child node
> in parent probe via ofnode and process CLK operation for child
> without udevice but with ofnode.
>
> So add clk_get_by_index_nodev() and move the common code
> in clk_get_by_index_tail() to use for clk_get_by_index()
>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
> drivers/clk/clk-uclass.c | 61 +++++++++++++++++++++++++++++++++++++++-
> include/clk.h | 15 ++++++++++
> 2 files changed, 75 insertions(+), 1 deletion(-)
Can you please add a test for the new function you add?
Regards,
Simon
More information about the U-Boot
mailing list