summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-rockchip
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-10-02 02:04:51 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-30 19:29:06 (GMT)
commitc8a6bc968312f572cc84e3928ae5a293f2454849 (patch)
tree6941eebae4470884a01ec66cc1c15208ed746381 /arch/arm/include/asm/arch-rockchip
parent92ac73e4c2579444ee5017f37aa61e116ccf15c9 (diff)
downloadu-boot-fsl-qoriq-c8a6bc968312f572cc84e3928ae5a293f2454849.tar.xz
rockchip: rk3399: Move rockchip_get_cru() out of the driver
This function is called from outside the driver. It should be placed into common SoC code. Move it. Also rename the driver symbol to be more consistent with the other rockchip clock drivers. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm/include/asm/arch-rockchip')
-rw-r--r--arch/arm/include/asm/arch-rockchip/cru_rk3399.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
index 6776e48..98fba2b 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
@@ -9,6 +9,12 @@
#include <common.h>
+/* Private data for the clock driver - used by rockchip_get_cru() */
+struct rk3399_clk_priv {
+ struct rk3399_cru *cru;
+ ulong rate;
+};
+
struct rk3399_pmucru {
u32 ppll_con[6];
u32 reserved[0x1a];