Skip to content

Commit

Permalink
tep1-imx7d: increase ODT resistor value from 60 to 120 ohm to improve…
Browse files Browse the repository at this point in the history
… DRAM stability
  • Loading branch information
ray-chang committed Dec 26, 2023
1 parent 4a83afa commit d5886ef
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions board/technexion/tep1-imx7d/tep1-imx7d_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ static void ddr3_512mb_init(void)
writel(0x08080808, 0x30790030);
writel(0x01000010, 0x30790050);
writel(0x00000010, 0x30790050);
writel(0x0e407304, 0x307900c0);
writel(0x0e447304, 0x307900c0);
writel(0x0e447306, 0x307900c0);
writel(0x0e207304, 0x307900c0);
writel(0x0e247304, 0x307900c0);
writel(0x0e247306, 0x307900c0);
while ((readl(0x307900c4) & 0x1) != 0x1)
;

writel(0x0e447304, 0x307900c0);
writel(0x0e407304, 0x307900c0);
writel(0x0e247304, 0x307900c0);
writel(0x0e207304, 0x307900c0);

writel(0x00000000, 0x30384130);
writel(0x00000178, 0x30340020);
Expand Down Expand Up @@ -162,14 +162,14 @@ static void ddr3_1gb_init(void)
writel(0x01000010, 0x30790050);
writel(0x00000010, 0x30790050);

writel(0x0e407304, 0x307900c0);
writel(0x0e447304, 0x307900c0);
writel(0x0e447306, 0x307900c0);
writel(0x0e207304, 0x307900c0);
writel(0x0e247304, 0x307900c0);
writel(0x0e247306, 0x307900c0);
while ((readl(0x307900c4) & 0x1) != 0x1)
;

writel(0x0e447304, 0x307900c0);
writel(0x0e407304, 0x307900c0);
writel(0x0e247304, 0x307900c0);
writel(0x0e207304, 0x307900c0);

writel(0x00000000, 0x30384130);
writel(0x00000178, 0x30340020);
Expand Down

0 comments on commit d5886ef

Please sign in to comment.