rockchip: gru: update the hynix lpddr3 config to run at 928MHz
Update the DDR config and DRAM driver to allow running at up to 928MHz. Kevin config/clock rate are not being changed, but Gru now runs at 928 MHz. BRANCH=none BUG=chrome-os-partner:51537 TEST=booted Kevin and Gru to Linux prompt. Ran stressapptest for 10 min on Gru, Change-Id: I5e1d6d1025f10203da8f11afc3bbdf95f133c586 Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com> Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/343984 Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/346299 Reviewed-by: Stefan Reinauer <reinauer@google.com> Commit-Queue: Martin Roth <martinroth@chromium.org> Trybot-Ready: Martin Roth <martinroth@chromium.org> Tested-by: Martin Roth <martinroth@chromium.org>
This commit is contained in:
parent
d8dcfd56b5
commit
4e654e30e4
5 changed files with 1562 additions and 2 deletions
|
|
@ -22,7 +22,13 @@
|
|||
#include <types.h>
|
||||
|
||||
static struct rk3399_sdram_params sdram_configs[] = {
|
||||
#include "sdram_inf/sdram-lpddr3-hynix-4GB.inc"
|
||||
#if IS_ENABLED(CONFIG_BOARD_GOOGLE_GRU)
|
||||
#include "sdram_inf/gru-sdram-lpddr3-hynix-4GB.inc"
|
||||
#elif IS_ENABLED(CONFIG_BOARD_GOOGLE_KEVIN)
|
||||
#include "sdram_inf/kevin-sdram-lpddr3-hynix-4GB.inc"
|
||||
#else
|
||||
#error "What is your board name?"
|
||||
#endif
|
||||
};
|
||||
|
||||
const struct rk3399_sdram_params *get_sdram_config()
|
||||
|
|
|
|||
1550
src/mainboard/google/gru/sdram_inf/gru-sdram-lpddr3-hynix-4GB.inc
Normal file
1550
src/mainboard/google/gru/sdram_inf/gru-sdram-lpddr3-hynix-4GB.inc
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue