Skip to content
Snippets Groups Projects
Commit 4e143cd6 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: UniPhier: remove meaningless CONFIG_SPL_BUILD ifdefs


This file is only built for SPL.  These ifdef conditionals are
unnecessary because UniPhier platform now supports UART on SPL.
Show appropriate messages on error.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 9fc5f9da
No related branches found
No related tags found
No related merge requests found
...@@ -115,10 +115,8 @@ int ddrphy_training(struct ddrphy __iomem *phy) ...@@ -115,10 +115,8 @@ int ddrphy_training(struct ddrphy __iomem *phy)
do { do {
if (--timeout < 0) { if (--timeout < 0) {
#ifndef CONFIG_SPL_BUILD
printf("%s: error: timeout during DDR training\n", printf("%s: error: timeout during DDR training\n",
__func__); __func__);
#endif
return -1; return -1;
} }
udelay(1); udelay(1);
...@@ -127,10 +125,8 @@ int ddrphy_training(struct ddrphy __iomem *phy) ...@@ -127,10 +125,8 @@ int ddrphy_training(struct ddrphy __iomem *phy)
for (i = 0; i < ARRAY_SIZE(init_sequence); i++) { for (i = 0; i < ARRAY_SIZE(init_sequence); i++) {
if (pgsr0 & init_sequence[i].err_flag) { if (pgsr0 & init_sequence[i].err_flag) {
#ifndef CONFIG_SPL_BUILD
printf("%s: error: %s failed\n", __func__, printf("%s: error: %s failed\n", __func__,
init_sequence[i].description); init_sequence[i].description);
#endif
return -1; return -1;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment