rockchip: clk: rk3188: Allow configuration of the armclk
authorHeiko Stübner <heiko@sntech.de>
Mon, 20 Mar 2017 11:40:32 +0000 (12:40 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 02:01:57 +0000 (20:01 -0600)
commitf785357073be1563b2f668a1b4bb5847bfaa96f9
tree3050f71c59bbef34b010e6fe10bc1dcab9c14047
parent007a43524b917a95e4d31dd606aacba9d2d58690
rockchip: clk: rk3188: Allow configuration of the armclk

The armclk starts in slow mode (24MHz) on the rk3188, which makes the whole
startup take a lot of time. We therefore want to at least move to the safe
600MHz value we can use with default pmic settings.
This is also the freqency the proprietary sdram-init leaves the cpu at.

For boards that have pmic control later in u-boot, we also add the option
to set the maximum frequency of 1.6GHz, if they so desire.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/cru_rk3188.h
drivers/clk/rockchip/clk_rk3188.c