rk3288: support single channel ddr
When using single-channel ddr, DMC channel 1 need to reset dll, otherwise it will lead to pmdomain idle request fails. BUG=chrome-os-partner:35654 BRANCH=veyron TEST=boot rialto Change-Id: I8be1567040ddb5f2a2b0d06568e517d794ead87a Signed-off-by: jinkun.hong <jinkun.hong@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/250060 Reviewed-by: Julius Werner <jwerner@chromium.org> (cherry picked from commit 927e8426104f8869e139c3f60a04cd49bf726e61) Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/255973
This commit is contained in:
parent
dfd55f1fbd
commit
239bfd759e
1 changed files with 4 additions and 1 deletions
|
|
@ -987,7 +987,7 @@ void sdram_init(const struct rk3288_sdram_params *sdram_params)
|
|||
|
||||
rkclk_configure_ddr(sdram_params->ddr_freq);
|
||||
|
||||
for (channel = 0; channel < sdram_params->num_channels; channel++) {
|
||||
for (channel = 0; channel < 2; channel++) {
|
||||
struct rk3288_ddr_pctl_regs *ddr_pctl_regs =
|
||||
rk3288_ddr_pctl[channel];
|
||||
struct rk3288_ddr_publ_regs *ddr_publ_regs =
|
||||
|
|
@ -996,6 +996,9 @@ void sdram_init(const struct rk3288_sdram_params *sdram_params)
|
|||
phy_pctrl_reset(ddr_publ_regs, channel);
|
||||
phy_dll_bypass_set(ddr_publ_regs, sdram_params->ddr_freq);
|
||||
|
||||
if (channel >= sdram_params->num_channels)
|
||||
continue;
|
||||
|
||||
dfi_cfg(ddr_pctl_regs, sdram_params->dramtype);
|
||||
|
||||
pctl_cfg(channel, sdram_params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue