ARM: uniphier: fix delay fixup code in LD11 UMC init
authorKotaro Hayashi <hayashi.kotaro@socionext.com>
Mon, 19 Dec 2016 02:14:04 +0000 (11:14 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 22 Jan 2017 06:01:27 +0000 (15:01 +0900)
The ddrphy_shift_rof_hws() never writes back the shifted delay value
to the register, which makes this function non-effective.

Signed-off-by: Kotaro Hayashi <hayashi.kotaro@socionext.com>
[masahiro: add git log]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/dram/umc-ld11.c

index 7dab00c..97a9fef 100644 (file)
@@ -271,6 +271,7 @@ static void ddrphy_shift_rof_hws(void __iomem *phy_base, const int pos_shift[][2
                        rdqnsd = clamp(rdqnsd + ddrphy_hpstep(neg_shift[block][byte], dx, phy_base),
                                       0U, 0xffU);
                        lcdlr1 = (lcdlr1 & ~(0xffff << 8)) | (rdqsd << 8) | (rdqnsd << 16);
+                       writel(lcdlr1, phy_base + PHY_DXLCDLR1(dx));
                        readl(phy_base + PHY_DXLCDLR1(dx)); /* relax */
                }
        }