Replace printf() with pr_() to specify proper loglevel.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
 
 #include <common.h>
 #include <linux/bitops.h>
+#include <linux/delay.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
+#include <linux/printk.h>
 #include <linux/psci.h>
 #include <linux/sizes.h>
 #include <asm/processor.h>
        }
 
        if (!timeout)
-               printf("warning: some of secondary CPUs may not boot\n");
+               pr_warn("warning: some of secondary CPUs may not boot\n");
 
        uniphier_cache_disable();
 }
 
 #include <spl.h>
 #include <libfdt.h>
 #include <nand.h>
+#include <stdio.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 #include <../drivers/mtd/nand/denali.h>
 
 #include "init.h"
        printf("\n");
 
        if (uniphier_set_fdt_file())
-               printf("fdt_file environment was not set correctly\n");
+               pr_warn("fdt_file environment was not set correctly\n");
 
        return 0;
 }
 
 
 #include <common.h>
 #include <spl.h>
+#include <stdio.h>
 #include <linux/log2.h>
 
 #include "../init.h"
 
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <common.h>
+#include <stdio.h>
 #include <linux/errno.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 
 #include "soc-info.h"
 
        printf(" (model %d, revision %d)\n", model, rev);
 
        if (model < required_model) {
-               printf("Only model %d or newer is supported.\n",
+               pr_err("Only model %d or newer is supported.\n",
                       required_model);
                return -ENOTSUPP;
        } else if (rev < required_rev) {
-               printf("Only revision %d or newer is supported.\n",
+               pr_err("Only revision %d or newer is supported.\n",
                       required_rev);
                return -ENOTSUPP;
        }
 
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 #include <linux/sizes.h>
 
 #include "../soc-info.h"
 
        param = uniphier_get_ddrmphy_param();
        if (!param) {
-               printf("unsupported SoC\n");
+               pr_err("unsupported SoC\n");
                return CMD_RET_FAILURE;
        }
 
 
  */
 
 #include <common.h>
+#include <stdio.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 #include <linux/sizes.h>
 
 #include "../soc-info.h"
 
        param = uniphier_get_ddrphy_param();
        if (!param) {
-               printf("unsupported SoC\n");
+               pr_err("unsupported SoC\n");
                return CMD_RET_FAILURE;
        }
 
 
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <common.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 
 #include "ddrphy-init.h"
 #include "ddrphy-regs.h"
                freq_e = DRAM_FREQ_1600M;
                break;
        default:
-               printf("unsupported DRAM frequency %d MHz\n", freq);
+               pr_err("unsupported DRAM frequency %d MHz\n", freq);
                return -EINVAL;
        }
 
 
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#include <common.h>
+#include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
+#include <linux/printk.h>
 #include <linux/sizes.h>
 #include <asm/processor.h>
+#include <time.h>
 
 #include "../init.h"
 #include "../soc-info.h"
        }
 
        if (dgsl_min != dgsl_max)
-               printf("DQS Gateing System Latencies are not all leveled.\n");
+               pr_warn("DQS Gateing System Latencies are not all leveled.\n");
 
        return dgsl_max;
 }
 
        nr_dx = width / 8;
 
-       writel(MPHY_PIR_ZCALBYP,        phy_base + MPHY_PIR);
+       writel(MPHY_PIR_ZCALBYP, phy_base + MPHY_PIR);
        /*
         * Disable RGLVT bit (Read DQS Gating LCDL Delay VT Compensation)
         * to avoid read error issue.
        u32 init_flag = MPHY_PIR_INIT;
        u32 done_flag = MPHY_PGSR0_IDONE;
        int timeout = 50000; /* 50 msec is long enough */
-#ifdef DISPLAY_ELAPSED_TIME
-       ulong start = get_timer(0);
+       unsigned long start = 0;
+
+#ifdef DEBUG
+       start = get_timer(0);
 #endif
 
        for (s = seq; s->description; s++) {
                }
        }
 
-#ifdef DISPLAY_ELAPSED_TIME
-       printf("%s: info: elapsed time %ld msec\n", get_timer(start));
-#endif
+       pr_debug("DDRPHY training: elapsed time %ld msec\n", get_timer(start));
 
        return 0;
 }
 
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <linux/errno.h>
+#include <linux/kernel.h>
+#include <linux/printk.h>
 #include <linux/sizes.h>
+#include <asm/global_data.h>
 
 #include "sg-regs.h"
 #include "soc-info.h"
                if (ret)
                        return -ENOSPC;
 
-               printf("   Reserved memory region for DRAM PHY training: addr=%lx size=%lx\n",
-                      rsv_addr, rsv_size);
+               pr_notice("   Reserved memory region for DRAM PHY training: addr=%lx size=%lx\n",
+                         rsv_addr, rsv_size);
        }
 
        return 0;