diff options
author | Simon Glass <sjg@chromium.org> | 2016-10-01 20:04:50 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-30 13:29:06 -0600 |
commit | 92ac73e4c2579444ee5017f37aa61e116ccf15c9 (patch) | |
tree | b4bc58e9ca001fdcf7392892516672d93a346e6d /arch/arm/include/asm/arch-rockchip/cru_rk3036.h | |
parent | 8dfb4a28f5645874d9b47cffe44055a3a71ca78b (diff) | |
download | u-boot-imx-92ac73e4c2579444ee5017f37aa61e116ccf15c9.zip u-boot-imx-92ac73e4c2579444ee5017f37aa61e116ccf15c9.tar.gz u-boot-imx-92ac73e4c2579444ee5017f37aa61e116ccf15c9.tar.bz2 |
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.h | 6 |
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; |