diff options
author | Simon Glass <sjg@chromium.org> | 2016-10-01 20:04:51 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-30 13:29:06 -0600 |
commit | c8a6bc968312f572cc84e3928ae5a293f2454849 (patch) | |
tree | 6941eebae4470884a01ec66cc1c15208ed746381 /arch/arm/include/asm/arch-rockchip/cru_rk3399.h | |
parent | 92ac73e4c2579444ee5017f37aa61e116ccf15c9 (diff) | |
download | u-boot-imx-c8a6bc968312f572cc84e3928ae5a293f2454849.zip u-boot-imx-c8a6bc968312f572cc84e3928ae5a293f2454849.tar.gz u-boot-imx-c8a6bc968312f572cc84e3928ae5a293f2454849.tar.bz2 |
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/cru_rk3399.h')
-rw-r--r-- | arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 6 |
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]; |