diff mbox

[U-Boot] rockchip: rk3036: change ddr frequency to 400M

Message ID 1455695705-20698-1-git-send-email-jeffy.chen@rock-chips.com
State Accepted
Commit 99aaa930754cd9558e42d526029267a2c023016e
Delegated to: Simon Glass
Headers show

Commit Message

Jeffy Chen Feb. 17, 2016, 7:55 a.m. UTC
From: Lin Huang <hl@rock-chips.com>

emac may use dpll as clock parent, and it request the clock frequency
multiples of 50, so change ddr frequency to 400M.

Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>

---

 arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Feb. 17, 2016, 7 p.m. UTC | #1
On 17 February 2016 at 00:55, Jeffy Chen <jeffy.chen@rock-chips.com> wrote:
>
> From: Lin Huang <hl@rock-chips.com>
>
> emac may use dpll as clock parent, and it request the clock frequency
> multiples of 50, so change ddr frequency to 400M.
>
> Signed-off-by: Lin Huang <hl@rock-chips.com>
> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
>
> ---
>
>  arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)


Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass March 10, 2016, 3:40 p.m. UTC | #2
On 17 February 2016 at 12:00, Simon Glass <sjg@chromium.org> wrote:
> On 17 February 2016 at 00:55, Jeffy Chen <jeffy.chen@rock-chips.com> wrote:
>>
>> From: Lin Huang <hl@rock-chips.com>
>>
>> emac may use dpll as clock parent, and it request the clock frequency
>> multiples of 50, so change ddr frequency to 400M.
>>
>> Signed-off-by: Lin Huang <hl@rock-chips.com>
>> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
>>
>> ---
>>
>>  arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-rockchip, thanks!
diff mbox

Patch

diff --git a/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c b/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
index e3ca870..ec8305c 100644
--- a/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
+++ b/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
@@ -37,7 +37,7 @@  struct rk3036_sdram_priv {
 /* use integer mode, 396MHz dpll setting
  * refdiv, fbdiv, postdiv1, postdiv2
  */
-const struct pll_div dpll_init_cfg = {1, 66, 4, 1};
+const struct pll_div dpll_init_cfg = {1, 50, 3, 1};
 
 /* 396Mhz ddr timing */
 const struct rk3036_ddr_timing ddr_timing = {0x18c,