diff options
Diffstat (limited to 'src/soc/rockchip')
-rw-r--r-- | src/soc/rockchip/rk3399/clock.c | 4 | ||||
-rw-r--r-- | src/soc/rockchip/rk3399/sdram.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/soc/rockchip/rk3399/clock.c b/src/soc/rockchip/rk3399/clock.c index 6222b77730..ba66230e23 100644 --- a/src/soc/rockchip/rk3399/clock.c +++ b/src/soc/rockchip/rk3399/clock.c @@ -549,6 +549,10 @@ void rkclk_configure_ddr(unsigned int hz) dpll_cfg = (struct pll_div) {.refdiv = 1, .fbdiv = 100, .postdiv1 = 3, .postdiv2 = 1}; break; + case 928*MHz: + dpll_cfg = (struct pll_div) + {.refdiv = 1, .fbdiv = 116, .postdiv1 = 3, .postdiv2 = 1}; + break; default: die("Unsupported SDRAM frequency, add to clock.c!"); } diff --git a/src/soc/rockchip/rk3399/sdram.c b/src/soc/rockchip/rk3399/sdram.c index 83c0ee6255..1536910e2c 100644 --- a/src/soc/rockchip/rk3399/sdram.c +++ b/src/soc/rockchip/rk3399/sdram.c @@ -819,7 +819,7 @@ void sdram_init(const struct rk3399_sdram_params *sdram_params) if ((sdram_params->dramtype == DDR3 && sdram_params->ddr_freq > 800*MHz) || (sdram_params->dramtype == LPDDR3 - && sdram_params->ddr_freq > 800*MHz) || + && sdram_params->ddr_freq > 928*MHz) || (sdram_params->dramtype == LPDDR4 && sdram_params->ddr_freq > 800*MHz)) die("SDRAM frequency is to high!"); |