[U-Boot] [PATCH] common: Move dram_init() declaration to common location

Michal Simek michal.simek at xilinx.com
Fri Jan 30 10:58:44 CET 2015


Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

Build tested for Microblaze and x86.
Created based on my discussion with Simon.
---
 arch/arm/include/asm/u-boot-arm.h         | 1 -
 arch/nds32/include/asm/u-boot-nds32.h     | 1 -
 arch/sandbox/include/asm/u-boot-sandbox.h | 1 -
 arch/x86/include/asm/u-boot-x86.h         | 6 ------
 include/common.h                          | 1 +
 5 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h
index f97f3dd1496a..414042d4039b 100644
--- a/arch/arm/include/asm/u-boot-arm.h
+++ b/arch/arm/include/asm/u-boot-arm.h
@@ -36,7 +36,6 @@ int	arch_early_init_r(void);

 /* board/.../... */
 int	board_init(void);
-int	dram_init (void);
 void	dram_init_banksize (void);

 /* cpu/.../interrupt.c */
diff --git a/arch/nds32/include/asm/u-boot-nds32.h b/arch/nds32/include/asm/u-boot-nds32.h
index b07908692a92..dee5f43ae155 100644
--- a/arch/nds32/include/asm/u-boot-nds32.h
+++ b/arch/nds32/include/asm/u-boot-nds32.h
@@ -22,7 +22,6 @@ int	cleanup_before_linux(void);

 /* board/.../... */
 int	board_init(void);
-int	dram_init(void);

 /* cpu/.../interrupt.c */
 void	reset_timer_masked(void);
diff --git a/arch/sandbox/include/asm/u-boot-sandbox.h b/arch/sandbox/include/asm/u-boot-sandbox.h
index d2f1b6566d70..770ab5c9cc07 100644
--- a/arch/sandbox/include/asm/u-boot-sandbox.h
+++ b/arch/sandbox/include/asm/u-boot-sandbox.h
@@ -17,7 +17,6 @@

 /* board/.../... */
 int board_init(void);
-int dram_init(void);

 /* start.c */
 int sandbox_early_getopt_check(void);
diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h
index b98afa801d3a..c24846b3ed50 100644
--- a/arch/x86/include/asm/u-boot-x86.h
+++ b/arch/x86/include/asm/u-boot-x86.h
@@ -26,15 +26,9 @@ unsigned long get_tbclk_mhz(void);
 void timer_set_base(uint64_t base);
 int pcat_timer_init(void);

-/* Architecture specific DRAM init */
-int dram_init(void);
-
 /* cpu/.../interrupts.c */
 int cpu_init_interrupts(void);

-/* board/.../... */
-int dram_init(void);
-
 int cleanup_before_linux(void);
 int x86_cleanup_before_linux(void);
 void x86_enable_caches(void);
diff --git a/include/common.h b/include/common.h
index 4b3e0d3bbd75..81edc7d2788c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -183,6 +183,7 @@ typedef void (interrupt_handler_t)(void *);
 /*
  * Function Prototypes
  */
+int dram_init(void);

 void	hang		(void) __attribute__ ((noreturn));

--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/89bcf589/attachment.sig>


More information about the U-Boot mailing list