]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
common: Move testdram() into init.h
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:45:06 +0000 (10:45 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:49 +0000 (23:06 +0530)
This function is called during init so move it to the init header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
20 files changed:
board/BuS/eb_cpu5282/eb_cpu5282.c
board/cobra5272/cobra5272.c
board/freescale/m5208evbe/m5208evbe.c
board/freescale/m52277evb/m52277evb.c
board/freescale/m5235evb/m5235evb.c
board/freescale/m5249evb/m5249evb.c
board/freescale/m5253demo/m5253demo.c
board/freescale/m5272c3/m5272c3.c
board/freescale/m5275evb/m5275evb.c
board/freescale/m53017evb/m53017evb.c
board/freescale/m5329evb/m5329evb.c
board/freescale/m5373evb/m5373evb.c
board/freescale/m54418twr/m54418twr.c
board/freescale/m54451evb/m54451evb.c
board/freescale/mpc837xerdb/mpc837xerdb.c
board/sbc8641d/sbc8641d.c
board/socrates/sdram.c
board/sysam/stmark2/stmark2.c
include/common.h
include/init.h

index 0b916d2482c5f52696e3ff7be10bb4c31e33e7c9..a667413bfc87501240a4acf0e331cae38f72a393 100644 (file)
@@ -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;
index a0a416b50c129726a36e586a54e8fe71a61e8d5b..a79884cb506fa262d25a2ef5a3613959b9ec0a23 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -31,7 +32,7 @@ int dram_init(void)
        return 0;
 };
 
-int testdram (void)
+int testdram(void)
 {
        /* TODO: XXX XXX XXX */
        printf ("DRAM test not implemented!\n");
index 82cadb2c33da2528ff8d7c8143fafd3d23a0d99c..e448a64abc6f768a3468ec8373808dd9c4d88a91 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 13ce4886e5d26513763d9ee790f8d8969292f5cc..a4b795fc39b3c4909a0c85375dafb09dd0089ba6 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index fbd2e616045da8f7baeeea10bba339da1d77f970..5d4039375530e7a639499a7952a66587803abf9c 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 9969f71da19836544a001ce475ff826fd819dad4..da3adc595414c0dd69c0f6851de411fef71df199 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <malloc.h>
 #include <asm/immap.h>
 
@@ -89,7 +90,8 @@ int dram_init(void)
 };
 
 
-int testdram (void) {
+int testdram(void)
+{
        /* TODO: XXX XXX XXX */
        printf ("DRAM test not implemented!\n");
 
index dcf6d7f1dbc292e12ebbf48f5df013595f2ac0b3..76c18b8504fc0eb0fb22671a8282eba37053d996 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <netdev.h>
 #include <asm/io.h>
index d4457abfbdbe3d0880aa7c087824371759915061..1017ef0c2a538ae6b0226113bb639cc7ff132b78 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
@@ -33,7 +34,8 @@ int dram_init(void)
        return 0;
        };
 
-int testdram (void) {
+int testdram(void)
+{
        /* TODO: XXX XXX XXX */
        printf ("DRAM test not implemented!\n");
 
index a01133612c515cba197c606daf24515009a2d251..e65e6d0af5859911ef52662731d95029b29befbe 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 01f51b7c95320a1593f841564548c4e37b12c0ff..8bdb4ad1276072add8aaf06cc34a78a82444936f 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 88cdba719c429e7ccbd643589b619964ca266860..d93800b364bffb8ae76f294377341040036ff0fb 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index 37011fb7308fbcd21e65522068373a816f7944b2..1d52ce047fb6cfd9fd39248f62f20e7442a20ef5 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <asm/immap.h>
 #include <asm/io.h>
 
index a4943e76ae4975ad694ace39b6035d7fbdf846f9..8c90cfe537af9ad95fe52b67c0a2935de3094a92 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spi.h>
 #include <asm/io.h>
 #include <asm/immap.h>
index 7cb840346c8a7e395bb5b693ab03b922bbf8760a..82a2b9093b63965eb01d92f106cf736b241c8ce9 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spi.h>
 #include <asm/immap.h>
 #include <asm/io.h>
index 4ad62bcf1d6b5384fe72b8e816ec0f3e1e175b7c..45038acf32473f9bb2a91902599b4165cd563572 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <hwconfig.h>
 #include <i2c.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/fsl_mpc83xx_serdes.h>
 #include <fdt_support.h>
index 0a9dab893968e70a602a9f60b5d83ebacd9319b8..d053eaeec34f4a95844d489e031df53bb2cfbe0f 100644 (file)
@@ -56,7 +56,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;
index 9ee6f3d154aa18f14a5ef07fe027b10d3b52c539..8eb4f8fc950bb080aeb90106ebc1b4d70f445d15 100644 (file)
@@ -62,7 +62,7 @@ phys_size_t fixed_sdram(void)
 #endif
 
 #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;
index 790199a640dfa87c60c155963742fbf8db671da4..ce8b541ccdf7476c0e064549b9033625ebafe5a4 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <spi.h>
 #include <asm/io.h>
 #include <asm/immap.h>
index f9ad184f4a5f00be6534bb8f1ee81b25326bc0c8..b25744854c71c8c3c31f8284a3311dd5c39853bf 100644 (file)
@@ -59,10 +59,6 @@ void hang            (void) __attribute__ ((noreturn));
 
 #include <display_options.h>
 
-#if defined(CONFIG_SYS_DRAM_TEST)
-int testdram(void);
-#endif /* CONFIG_SYS_DRAM_TEST */
-
 /* lib/uuid.c */
 #include <uuid.h>
 
index cb92c6a4b751fe5cdb1275ded6c30c0c8bb67864..2a33a3fd1e41c54f35b973e9b0a0974b274198ce 100644 (file)
@@ -109,6 +109,8 @@ int dram_init_banksize(void);
 long get_ram_size(long *base, long size);
 phys_size_t get_effective_memsize(void);
 
+int testdram(void);
+
 /**
  * arch_reserve_stacks() - Reserve all necessary stacks
  *