summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-10-02 02:04:50 (GMT)
committerSimon Glass <sjg@chromium.org>2016-10-30 19:29:06 (GMT)
commit92ac73e4c2579444ee5017f37aa61e116ccf15c9 (patch)
treeb4bc58e9ca001fdcf7392892516672d93a346e6d /arch/arm/include/asm/arch-rockchip/cru_rk3036.h
parent8dfb4a28f5645874d9b47cffe44055a3a71ca78b (diff)
downloadu-boot-92ac73e4c2579444ee5017f37aa61e116ccf15c9.tar.xz
rockchip: rk3036: 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/cru_rk3036.h')
-rw-r--r--arch/arm/include/asm/arch-rockchip/cru_rk3036.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3036.h b/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
index 7ecc8ee..aaef4b9 100644
--- a/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
+++ b/arch/arm/include/asm/arch-rockchip/cru_rk3036.h
@@ -24,6 +24,12 @@
#define PERI_HCLK_HZ 148500000
#define PERI_PCLK_HZ 74250000
+/* Private data for the clock driver - used by rockchip_get_cru() */
+struct rk3036_clk_priv {
+ struct rk3036_cru *cru;
+ ulong rate;
+};
+
struct rk3036_cru {
struct rk3036_pll {
unsigned int con0;