From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 18/20] rockchip: clk: Support setting ACLK
Date: Fri, 04 Nov 2016 09:05:06 +0800 [thread overview]
Message-ID: <581BDEC2.5020300@rock-chips.com> (raw)
In-Reply-To: <1477946376-29471-19-git-send-email-sjg@chromium.org>
Hi Simon,
On 11/01/2016 04:39 AM, Simon Glass wrote:
> Add basic support for setting the ARM clock, since this allows us to run
> at maximum speed in U-Boot. Currently only a single speed is supported
> (1.8GHz).
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> drivers/clk/rockchip/clk_rk3288.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c
> index ed97e87..d15504c 100644
> --- a/drivers/clk/rockchip/clk_rk3288.c
> +++ b/drivers/clk/rockchip/clk_rk3288.c
> @@ -691,6 +691,13 @@ static ulong rk3288_clk_set_rate(struct clk *clk, ulong rate)
>
> gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL);
> switch (clk->id) {
> + case PLL_APLL:
> + /* We only support a fixed rate here */
> + if (rate != 1800000000)
> + return -EINVAL;
> + rk3288_clk_configure_cpu(priv->cru, priv->grf);
> + new_rate = rate;
> + break;
> case CLK_DDR:
> new_rate = rkclk_configure_ddr(priv->cru, priv->grf, rate);
> break;
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
next prev parent reply other threads:[~2016-11-04 1:05 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 20:39 [U-Boot] [PATCH 00/20] rockchip: Add support for Asus Chromebit Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 01/20] rockchip: video: Correct HDMI data source selection Simon Glass
2016-10-31 20:57 ` Andrew F. Davis
2016-10-31 20:39 ` [U-Boot] [PATCH 02/20] rockchip: video: Correct VOP clock selection Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 03/20] rockchip: Allow jerry to use of-platdata Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 04/20] dm: core: Handle global_data moving in SPL Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 05/20] stdio: Correct code style nits Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 06/20] stdio: Correct numbering logic in stdio_probe_device() Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 07/20] spi: Add of-platdata support to SPI and SPI flash Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 08/20] rockchip: spi: Add support for of-platdata Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 09/20] rockchip: spi: Honour the deactivation delay Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 10/20] spi: Add error checking for invalid bus widths Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 11/20] spi: Add a debug() on bind failure Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 12/20] video: Use cache-alignment in video_sync() Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 13/20] video: Track whether a display is in use Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 14/20] rockchip: video: Check for device " Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 15/20] rockchip: Move jerry to use of-platdata Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 16/20] rockchip: Rename jerry files to veyron Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 17/20] rockchip: Move jerry SDRAM settings into its own .dts file Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 18/20] rockchip: clk: Support setting ACLK Simon Glass
2016-11-04 1:05 ` Kever Yang [this message]
2016-10-31 20:39 ` [U-Boot] [PATCH 19/20] rockchip: veyron: Adjust ARM clock after relocation Simon Glass
2016-10-31 20:39 ` [U-Boot] [PATCH 20/20] rockchip: Add support for veyron-mickey (Chromebit) Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=581BDEC2.5020300@rock-chips.com \
--to=kever.yang@rock-chips.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox