]> git.baikalelectronics.ru Git - uboot.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)
commitc9eb26169c05439996d0951d1ee8a0d0b9232cbb
tree7daf33521eddd16f2283c90ba8eefdd5fd57590e
parentdb829c6b66c3abf7640f9172711f9df37dbdd304
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