summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2018-07-31 12:44:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-08 09:21:48 +0200
commit54800ba93246ef51a9356f21f72ea3a42c81c08c (patch)
treea58efc45f3b07600f34e532a2ecf80172bf7373c
parent529643163c5ad8f2220355b7d961a5dc714da5a9 (diff)
downloadbarebox-54800ba93246ef51a9356f21f72ea3a42c81c08c.tar.gz
ARM: socfpga: arria10: move debug_ll to common code
Instead of copy+pasting the debug_ll messages to every new board, move them to the respective functions. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/reflex-achilles/lowlevel.c4
-rw-r--r--arch/arm/mach-socfpga/arria10-init.c2
-rw-r--r--arch/arm/mach-socfpga/arria10-sdram.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/boards/reflex-achilles/lowlevel.c b/arch/arm/boards/reflex-achilles/lowlevel.c
index 25e7ad0..fe57518 100644
--- a/arch/arm/boards/reflex-achilles/lowlevel.c
+++ b/arch/arm/boards/reflex-achilles/lowlevel.c
@@ -27,12 +27,8 @@ static noinline void achilles_entry(void)
arria10_init(&mainpll_cfg, &perpll_cfg, pinmux);
- puts_ll("lowlevel init done\n");
-
arria10_ddr_calibration_sequence();
- puts_ll("SDRAM setup done\n");
-
fdt = __dtb_socfpga_arria10_achilles_start + get_runtime_offset();
barebox_arm_entry(0x0, SZ_2G + SZ_1G, fdt);
diff --git a/arch/arm/mach-socfpga/arria10-init.c b/arch/arm/mach-socfpga/arria10-init.c
index f016b84..faf4c86 100644
--- a/arch/arm/mach-socfpga/arria10-init.c
+++ b/arch/arm/mach-socfpga/arria10-init.c
@@ -194,4 +194,6 @@ void arria10_init(struct arria10_mainpll_cfg *mainpll,
arria10_reset_deassert_fpga_peripherals();
INIT_LL();
+
+ puts_ll("lowlevel init done\n");
}
diff --git a/arch/arm/mach-socfpga/arria10-sdram.c b/arch/arm/mach-socfpga/arria10-sdram.c
index 08de0e3..35c355d 100644
--- a/arch/arm/mach-socfpga/arria10-sdram.c
+++ b/arch/arm/mach-socfpga/arria10-sdram.c
@@ -531,5 +531,7 @@ int arria10_ddr_calibration_sequence(void)
if (arria10_sdram_firewall_setup())
puts_ll("FW: Error Configuring Firewall\n");
+ puts_ll("SDRAM setup done\n");
+
return 0;
}