diff options
author | Simon Glass | 2019-12-28 10:45:06 -0700 |
---|---|---|
committer | Tom Rini | 2020-01-17 14:02:35 -0500 |
commit | 49acd56e4f1b0cb76af73bb1b22db20c81af3f78 (patch) | |
tree | 457e7b68186c0f1f0780408ac170b3e25e74f284 /board | |
parent | 9b4a205f454dd19687aaf9a22a5bc01164182a90 (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')
-rw-r--r-- | board/BuS/eb_cpu5282/eb_cpu5282.c | 3 | ||||
-rw-r--r-- | board/cobra5272/cobra5272.c | 3 | ||||
-rw-r--r-- | board/freescale/m5208evbe/m5208evbe.c | 1 | ||||
-rw-r--r-- | board/freescale/m52277evb/m52277evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m5235evb/m5235evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m5249evb/m5249evb.c | 4 | ||||
-rw-r--r-- | board/freescale/m5253demo/m5253demo.c | 1 | ||||
-rw-r--r-- | board/freescale/m5272c3/m5272c3.c | 4 | ||||
-rw-r--r-- | board/freescale/m5275evb/m5275evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m53017evb/m53017evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m5329evb/m5329evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m5373evb/m5373evb.c | 1 | ||||
-rw-r--r-- | board/freescale/m54418twr/m54418twr.c | 1 | ||||
-rw-r--r-- | board/freescale/m54451evb/m54451evb.c | 1 | ||||
-rw-r--r-- | board/freescale/mpc837xerdb/mpc837xerdb.c | 1 | ||||
-rw-r--r-- | board/sbc8641d/sbc8641d.c | 2 | ||||
-rw-r--r-- | board/socrates/sdram.c | 2 | ||||
-rw-r--r-- | board/sysam/stmark2/stmark2.c | 1 |
18 files changed, 24 insertions, 6 deletions
diff --git a/board/BuS/eb_cpu5282/eb_cpu5282.c b/board/BuS/eb_cpu5282/eb_cpu5282.c index 0b916d2482c..a667413bfc8 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; diff --git a/board/cobra5272/cobra5272.c b/board/cobra5272/cobra5272.c index a0a416b50c1..a79884cb506 100644 --- a/board/cobra5272/cobra5272.c +++ b/board/cobra5272/cobra5272.c @@ -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"); diff --git a/board/freescale/m5208evbe/m5208evbe.c b/board/freescale/m5208evbe/m5208evbe.c index 82cadb2c33d..e448a64abc6 100644 --- a/board/freescale/m5208evbe/m5208evbe.c +++ b/board/freescale/m5208evbe/m5208evbe.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m52277evb/m52277evb.c b/board/freescale/m52277evb/m52277evb.c index 13ce4886e5d..a4b795fc39b 100644 --- a/board/freescale/m52277evb/m52277evb.c +++ b/board/freescale/m52277evb/m52277evb.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m5235evb/m5235evb.c b/board/freescale/m5235evb/m5235evb.c index fbd2e616045..5d403937553 100644 --- a/board/freescale/m5235evb/m5235evb.c +++ b/board/freescale/m5235evb/m5235evb.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m5249evb/m5249evb.c b/board/freescale/m5249evb/m5249evb.c index 9969f71da19..da3adc59541 100644 --- a/board/freescale/m5249evb/m5249evb.c +++ b/board/freescale/m5249evb/m5249evb.c @@ -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"); diff --git a/board/freescale/m5253demo/m5253demo.c b/board/freescale/m5253demo/m5253demo.c index dcf6d7f1dbc..76c18b8504f 100644 --- a/board/freescale/m5253demo/m5253demo.c +++ b/board/freescale/m5253demo/m5253demo.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <init.h> #include <asm/immap.h> #include <netdev.h> #include <asm/io.h> diff --git a/board/freescale/m5272c3/m5272c3.c b/board/freescale/m5272c3/m5272c3.c index d4457abfbdb..1017ef0c2a5 100644 --- a/board/freescale/m5272c3/m5272c3.c +++ b/board/freescale/m5272c3/m5272c3.c @@ -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"); diff --git a/board/freescale/m5275evb/m5275evb.c b/board/freescale/m5275evb/m5275evb.c index a01133612c5..e65e6d0af58 100644 --- a/board/freescale/m5275evb/m5275evb.c +++ b/board/freescale/m5275evb/m5275evb.c @@ -9,6 +9,7 @@ */ #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m53017evb/m53017evb.c b/board/freescale/m53017evb/m53017evb.c index 01f51b7c953..8bdb4ad1276 100644 --- a/board/freescale/m53017evb/m53017evb.c +++ b/board/freescale/m53017evb/m53017evb.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c index 88cdba719c4..d93800b364b 100644 --- a/board/freescale/m5329evb/m5329evb.c +++ b/board/freescale/m5329evb/m5329evb.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m5373evb/m5373evb.c b/board/freescale/m5373evb/m5373evb.c index 37011fb7308..1d52ce047fb 100644 --- a/board/freescale/m5373evb/m5373evb.c +++ b/board/freescale/m5373evb/m5373evb.c @@ -9,6 +9,7 @@ #include <config.h> #include <common.h> +#include <init.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/m54418twr/m54418twr.c b/board/freescale/m54418twr/m54418twr.c index a4943e76ae4..8c90cfe537a 100644 --- a/board/freescale/m54418twr/m54418twr.c +++ b/board/freescale/m54418twr/m54418twr.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <init.h> #include <spi.h> #include <asm/io.h> #include <asm/immap.h> diff --git a/board/freescale/m54451evb/m54451evb.c b/board/freescale/m54451evb/m54451evb.c index 7cb840346c8..82a2b9093b6 100644 --- a/board/freescale/m54451evb/m54451evb.c +++ b/board/freescale/m54451evb/m54451evb.c @@ -8,6 +8,7 @@ */ #include <common.h> +#include <init.h> #include <spi.h> #include <asm/immap.h> #include <asm/io.h> diff --git a/board/freescale/mpc837xerdb/mpc837xerdb.c b/board/freescale/mpc837xerdb/mpc837xerdb.c index 4ad62bcf1d6..45038acf324 100644 --- a/board/freescale/mpc837xerdb/mpc837xerdb.c +++ b/board/freescale/mpc837xerdb/mpc837xerdb.c @@ -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> diff --git a/board/sbc8641d/sbc8641d.c b/board/sbc8641d/sbc8641d.c index 0a9dab89396..d053eaeec34 100644 --- a/board/sbc8641d/sbc8641d.c +++ b/board/sbc8641d/sbc8641d.c @@ -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; diff --git a/board/socrates/sdram.c b/board/socrates/sdram.c index 9ee6f3d154a..8eb4f8fc950 100644 --- a/board/socrates/sdram.c +++ b/board/socrates/sdram.c @@ -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; diff --git a/board/sysam/stmark2/stmark2.c b/board/sysam/stmark2/stmark2.c index 790199a640d..ce8b541ccdf 100644 --- a/board/sysam/stmark2/stmark2.c +++ b/board/sysam/stmark2/stmark2.c @@ -6,6 +6,7 @@ */ #include <common.h> +#include <init.h> #include <spi.h> #include <asm/io.h> #include <asm/immap.h> |