Commit 4a503b18 authored by Dong Aisheng's avatar Dong Aisheng Committed by Julan Hsu
Browse files

BACKPORT: UPSTREAM: clk: add new APIs to operate on all available clocks

This patch introduces of_clk_bulk_get_all and clk_bulk_x_all APIs
to users who just want to handle all available clocks from device tree
without need to know the detailed clock information likes clock numbers
and names. This is useful in writing some generic drivers to handle clock
part.

BUG=b:137202421
TEST=Run label_image in loop

(cherry picked from commit 616e45df
 https://github.com/torvalds/linux.git

)

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: default avatarThor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarAbhinav Asati <asatiabhi@codeaurora.org>
Change-Id: I4acf53070a5ce954bfb801a4b031074ae28ea3a0
Signed-off-by: default avatarVamsi Singamsetty <vamssi@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1613943


Reviewed-by: default avatarJulan Hsu <julanhsu@google.com>
Tested-by: default avatarJulan Hsu <julanhsu@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
parent 1213033f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment