[U-Boot] [PATCH v4 01/23] powerpc, mpc83xx: add missing functions to include/common.h

Heiko Schocher hs at denx.de
Fri Apr 1 09:16:13 CEST 2011


add following functions to common.h, to prevent
extern declarations:

void disable_addr_trans(void);
void enable_addr_trans(void);
void ddr_enable_ecc(unsigned int dram_size);

Signed-off-by: Heiko Schocher <hs at denx.de>
cc: Kim Phillips <kim.phillips at freescale.com>
cc: Holger Brunck <holger.brunck at keymile.com>
cc: Wolfgang Denk <wd at denx.de>
cc: Detlev Zundel <dzu at denx.de>
cc: Valentin Longchamp <valentin.longchamp at keymile.com>
---
Changes for v3:
  - new patch in v3, to avoid externs in keymile code
Changes for v4:
  - add the functions in include/common.h not in
    include/mpc83xx.h as Kim Phillips suggested

 include/common.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/common.h b/include/common.h
index d8c912d..2d6980a 100644
--- a/include/common.h
+++ b/include/common.h
@@ -447,6 +447,11 @@ void		out16(unsigned int, unsigned short value);
 #if defined (CONFIG_MPC83xx)
 void		ppcDWload(unsigned int *addr, unsigned int *ret);
 void		ppcDWstore(unsigned int *addr, unsigned int *value);
+void disable_addr_trans(void);
+void enable_addr_trans(void);
+#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
+void ddr_enable_ecc(unsigned int dram_size);
+#endif
 #endif
 
 /* $(CPU)/cpu.c */
-- 
1.7.4



More information about the U-Boot mailing list