]> git.sur5r.net Git - u-boot/commit
rockchip: clk: Make rkclk_get_clk() SoC-specific
authorSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 02:44:05 +0000 (19:44 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 22 Jan 2016 03:42:35 +0000 (20:42 -0700)
commit5ddf5d7705d2c2b59282ebd37aa2018460274e89
tree2bd2229d25df111ee9b93c384d90c94e43df7224
parent2b9fe111ec47750d9d7912246d983a7f9e096df6
rockchip: clk: Make rkclk_get_clk() SoC-specific

The current method assumes that clocks are numbered from 0 and we can
determine a clock by its number. It is safer to use an ID in the clock's
platform data to avoid the situation where another clock is bound before
the one we expect.

Move the existing code into rk3036 since it still works there. Add a new
implementation for rk3288.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/Makefile
arch/arm/mach-rockchip/common.c [deleted file]
drivers/clk/clk_rk3036.c
drivers/clk/clk_rk3288.c