Skip to content

Commit

Permalink
pwsh1: clear DDR2 flag to go into LPDDR mode
Browse files Browse the repository at this point in the history
  • Loading branch information
puhitaku committed Oct 25, 2020
1 parent 94863c1 commit 260d3d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/sharp/pwsh1/iomux.c
Expand Up @@ -273,10 +273,16 @@ const static uint32_t lpddr_dram_vals[] = {
void mxs_adjust_memory_params(uint32_t *dram_vals)
{
int i;
struct mxs_pinctrl_regs *pinctrl_regs =
(struct mxs_pinctrl_regs *)MXS_PINCTRL_BASE;

for (i = 0; i < ARRAY_SIZE(lpddr_dram_vals); i++) {
dram_vals[i] = lpddr_dram_vals[i];
}

/* Go into LPDDR mode */
writel(PINCTRL_EMI_DS_CTRL_DDR_MODE_DDR2,
&pinctrl_regs->hw_pinctrl_emi_ds_ctrl_clr);
}

void board_init_ll(const uint32_t arg, const uint32_t *resptr)
Expand Down

0 comments on commit 260d3d8

Please sign in to comment.