summaryrefslogtreecommitdiff
path: root/board/BuS/eb_cpu5282/eb_cpu5282.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:45:06 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 14:02:35 -0500
commit49acd56e4f1b0cb76af73bb1b22db20c81af3f78 (patch)
tree457e7b68186c0f1f0780408ac170b3e25e74f284 /board/BuS/eb_cpu5282/eb_cpu5282.c
parent9b4a205f454dd19687aaf9a22a5bc01164182a90 (diff)
common: Move testdram() into init.h
This function is called during init so move it to the init header file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/BuS/eb_cpu5282/eb_cpu5282.c')
-rw-r--r--board/BuS/eb_cpu5282/eb_cpu5282.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c
index 0b916d2482..a667413bfc 100644
--- a/board/BuS/eb_cpu5282/eb_cpu5282.c
+++ b/board/BuS/eb_cpu5282/eb_cpu5282.c
@@ -12,6 +12,7 @@
#include "asm/m5282.h"
#include <bmp_layout.h>
#include <env.h>
+#include <init.h>
#include <status_led.h>
#include <bus_vcxk.h>
@@ -98,7 +99,7 @@ int dram_init(void)
}
#if defined(CONFIG_SYS_DRAM_TEST)
-int testdram (void)
+int testdram(void)
{
uint *pstart = (uint *) CONFIG_SYS_MEMTEST_START;
uint *pend = (uint *) CONFIG_SYS_MEMTEST_END;