mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ARM: uniphier: remove unneeded if conditionals
The if block does the same as the else block does. The conditional is not necessary at all. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
faefef9994
commit
048c61d674
1 changed files with 2 additions and 8 deletions
|
@ -40,18 +40,12 @@ int ph1_pro4_ddrphy_init(struct ddrphy __iomem *phy, int freq, int size)
|
||||||
writel(0x0000040B, &phy->dcr);
|
writel(0x0000040B, &phy->dcr);
|
||||||
if (freq == 1333) {
|
if (freq == 1333) {
|
||||||
writel(0x85589955, &phy->dtpr[0]);
|
writel(0x85589955, &phy->dtpr[0]);
|
||||||
if (size == 1)
|
writel(0x1a8363c0, &phy->dtpr[1]);
|
||||||
writel(0x1a8363c0, &phy->dtpr[1]);
|
|
||||||
else
|
|
||||||
writel(0x1a8363c0, &phy->dtpr[1]);
|
|
||||||
writel(0x5002c200, &phy->dtpr[2]);
|
writel(0x5002c200, &phy->dtpr[2]);
|
||||||
writel(0x00000b51, &phy->mr0);
|
writel(0x00000b51, &phy->mr0);
|
||||||
} else {
|
} else {
|
||||||
writel(0x999cbb66, &phy->dtpr[0]);
|
writel(0x999cbb66, &phy->dtpr[0]);
|
||||||
if (size == 1)
|
writel(0x1a878400, &phy->dtpr[1]);
|
||||||
writel(0x1a878400, &phy->dtpr[1]);
|
|
||||||
else
|
|
||||||
writel(0x1a878400, &phy->dtpr[1]);
|
|
||||||
writel(0xa00214f8, &phy->dtpr[2]);
|
writel(0xa00214f8, &phy->dtpr[2]);
|
||||||
writel(0x00000d71, &phy->mr0);
|
writel(0x00000d71, &phy->mr0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue