public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency
Date: Tue, 06 Sep 2016 17:52:17 +0800	[thread overview]
Message-ID: <57CE91D1.3080401@rock-chips.com> (raw)
In-Reply-To: <CAPnjgZ0PE8DLPS8scgDHrwqoWy=YJ4pXbeGjP9nrcTni05RjQw@mail.gmail.com>

Hi Simon,

On 09/06/2016 09:03 AM, Simon Glass wrote:
> Hi Kever,
>
> On 29 August 2016 at 21:02, Kever Yang <kever.yang@rock-chips.com> wrote:
>> This patch update PPLL to 676MHz and PMU_PCLK to 48MHz.
> Why?
>

1. 48MHz can make sure the pwm can get exact 50% duty ratio, but 99MHz 
can not,
2. We think 48MHz is fast enough for pmu pclk and it is lower power cost 
than 99MHz,
3. PPLL 676 MHz and PMU_PCLK 48MHz are the clock rate we are using 
internally for kernel,
it suppose not to change the bus clock like pmu_pclk in kernel, so we 
want to change it in uboot.

Thanks,
- Kever
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>>   arch/arm/include/asm/arch-rockchip/cru_rk3399.h | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
>> index c919f47..6776e48 100644
>> --- a/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
>> +++ b/arch/arm/include/asm/arch-rockchip/cru_rk3399.h
>> @@ -64,9 +64,9 @@ check_member(rk3399_cru, sdio1_con[1], 0x594);
>>   #define APLL_HZ                (600*MHz)
>>   #define GPLL_HZ                (594*MHz)
>>   #define CPLL_HZ                (384*MHz)
>> -#define PPLL_HZ                (594*MHz)
>> +#define PPLL_HZ                (676*MHz)
>>
>> -#define PMU_PCLK_HZ    (99*MHz)
>> +#define PMU_PCLK_HZ    (48*MHz)
>>
>>   #define ACLKM_CORE_HZ  (300*MHz)
>>   #define ATCLK_CORE_HZ  (300*MHz)
>> --
>> 1.9.1
>>
> Regards,
> Simon
>
>
>

  reply	other threads:[~2016-09-06  9:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-30  3:02 [U-Boot] [PATCH 0/7] add pwm regulator driver Kever Yang
2016-08-30  3:02 ` [U-Boot] [PATCH 1/7] rockchip: rk3399: update PPLL and pmu_pclk frequency Kever Yang
2016-09-06  1:03   ` Simon Glass
2016-09-06  9:52     ` Kever Yang [this message]
2016-09-06 12:46       ` Simon Glass
2016-08-30  3:02 ` [U-Boot] [PATCH 2/7] rockchip: rkpwm: fix the register sequence Kever Yang
2016-09-06  1:03   ` Simon Glass
2016-08-30  3:02 ` [U-Boot] [PATCH 3/7] power: regulator: add pwm regulator Kever Yang
2016-09-06  1:03   ` Simon Glass
2016-09-06 10:03     ` Kever Yang
2016-09-06 12:46       ` Simon Glass
2016-08-30  3:02 ` [U-Boot] [PATCH 4/7] rockchip: evb_rk3399: init vdd_center regulator Kever Yang
2016-09-06  1:04   ` Simon Glass
2016-08-30  3:02 ` [U-Boot] [PATCH 5/7] Kconfig: rockchip: enable DM_PWM and DM_REGULATOR Kever Yang
2016-09-06  1:04   ` Simon Glass
2016-08-30  3:02 ` [U-Boot] [PATCH 6/7] dts: evb-rk3399: add init voltage node for vdd-center Kever Yang
2016-09-06  1:04   ` Simon Glass
2016-09-06 12:43     ` Kever Yang
2016-08-30  3:02 ` [U-Boot] [PATCH 7/7] config: evb-rk3399: enable pwm regulator Kever Yang
2016-09-06  1:04   ` 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=57CE91D1.3080401@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