From a617c5d3e2c22355ee9abc455bbb0b36e124a00a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 17 Jul 2016 15:23:16 -0600 Subject: rockchip: Add a way to obtain the main clock device On Rockchip SoCs we typically have a main clock device that uses the Soc clock driver. There is also a fixed clock for the oscillator. Add a function to obtain the core clock. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-rockchip/clock.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/arm/include') diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h index 4bebd62479..21edbc2f89 100644 --- a/arch/arm/include/asm/arch-rockchip/clock.h +++ b/arch/arm/include/asm/arch-rockchip/clock.h @@ -67,4 +67,6 @@ struct rk3288_grf; void rk3288_clk_configure_cpu(struct rk3288_cru *cru, struct rk3288_grf *grf); +int rockchip_get_clk(struct udevice **devp); + #endif -- cgit