[U-Boot] [PATCH v9 41/49] rockchip: clk: Make rkclk_get_clk() SoC-specific

Simon Glass sjg at chromium.org
Fri Jan 22 16:19:03 CET 2016


On 21 January 2016 at 19:44, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v9: None
> Changes in v2: None
>
>  arch/arm/mach-rockchip/Makefile |  1 -
>  arch/arm/mach-rockchip/common.c | 28 ----------------------------
>  drivers/clk/clk_rk3036.c        | 17 +++++++++++++++++
>  drivers/clk/clk_rk3288.c        | 13 +++++++++++++
>  4 files changed, 30 insertions(+), 29 deletions(-)
>  delete mode 100644 arch/arm/mach-rockchip/common.c

Applied to u-boot-rockchip.


More information about the U-Boot mailing list