summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier
diff options
context:
space:
mode:
authorKotaro Hayashi <hayashi.kotaro@socionext.com>2016-12-19 02:14:04 (GMT)
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-22 06:01:27 (GMT)
commit7d75254b3d0dcc3231eca11c4c5143972ce25232 (patch)
tree56b1f5ede535f6facb8b4b73132703012fb39812 /arch/arm/mach-uniphier
parente95455ac1b149614b840b02cd01aa2760a8a7cd5 (diff)
downloadu-boot-fsl-qoriq-7d75254b3d0dcc3231eca11c4c5143972ce25232.tar.xz
ARM: uniphier: fix delay fixup code in LD11 UMC init
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>
Diffstat (limited to 'arch/arm/mach-uniphier')
-rw-r--r--arch/arm/mach-uniphier/dram/umc-ld11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/dram/umc-ld11.c b/arch/arm/mach-uniphier/dram/umc-ld11.c
index 7dab00c..97a9fef 100644
--- a/arch/arm/mach-uniphier/dram/umc-ld11.c
+++ b/arch/arm/mach-uniphier/dram/umc-ld11.c
@@ -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 */
}
}