]> git.sur5r.net Git - u-boot/commit
rockchip: clock: Add a function to find a clock by ID
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:43:41 +0000 (19:43 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:34 +0000 (20:42 -0700)
commit64b7faa7f9583d31e954c10de52275cdf2bf0ee1
treec8a905f1f6884fa420cd3ea993b4cf9b9422d0c8
parent4f43673e5ac54c3c2486eee6f1c9cf5e51744f23
rockchip: clock: Add a function to find a clock by ID

The current approach of using uclass_get_device() is error-prone. Another
clock (for example a fixed-clock) may cause it to break. Add a function that
does a proper search.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/clock.h
drivers/clk/clk_rk3288.c