]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: add APIs to get (optional) clock by name without a device
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 9 Jan 2020 03:35:07 +0000 (11:35 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 16 Jan 2020 14:39:45 +0000 (09:39 -0500)
commitd646420e29da43ad2e23105ec72fb18ee911d0fd
tree7daf33521eddd16f2283c90ba8eefdd5fd57590e
parentbd7c798605a33107ccce6d5023af8adf9febc4f1
clk: add APIs to get (optional) clock by name without a device

Sometimes we may need get (optional) clock without a device,
that means use ofnode.
e.g. when the phy node has subnode, and there is no device created
for subnode, in this case, we need these new APIs to get subnode's
clock.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/clk/clk-uclass.c
include/clk.h