diff options
| author | Kever Yang <[email protected]> | 2017-02-13 17:38:56 +0800 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2017-03-16 16:03:43 -0600 |
| commit | 5ae2fd97242d4eea97aeabe8801bb8592b37a8fe (patch) | |
| tree | ef81d978357c082ea9f6d6601fcfa8e2edc63747 /arch/arm/include | |
| parent | fa72de10452c51ee32f8278cdfabd38a6aafc7f8 (diff) | |
rockchip: clk: rk3399: update driver for spl
Add ddr clock setting, add rockchip_get_pmucru API,
and enable of-platdata support.
Signed-off-by: Kever Yang <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Added rockchip tag and fix pmuclk_init() build warning:
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'arch/arm/include')
| -rw-r--r-- | arch/arm/include/asm/arch-rockchip/clock.h | 7 | ||||
| -rw-r--r-- | arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h index 804c77beaac..6f7e755d755 100644 --- a/arch/arm/include/asm/arch-rockchip/clock.h +++ b/arch/arm/include/asm/arch-rockchip/clock.h @@ -63,6 +63,13 @@ static inline u32 clk_get_divisor(ulong input_rate, uint output_rate) */ void *rockchip_get_cru(void); +/** + * rockchip_get_pmucru() - get a pointer to the clock/reset unit registers + * + * @return pointer to registers, or -ve error on error + */ +void *rockchip_get_pmucru(void); + struct rk3288_cru; struct rk3288_grf; diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h index 98fba2bd755..cf830d04ead 100644 --- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h @@ -15,6 +15,11 @@ struct rk3399_clk_priv { ulong rate; }; +struct rk3399_pmuclk_priv { + struct rk3399_pmucru *pmucru; + ulong rate; +}; + struct rk3399_pmucru { u32 ppll_con[6]; u32 reserved[0x1a]; |
