From patchwork Fri Apr 1 07:16:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 89214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 0FF1F1007D7 for ; Fri, 1 Apr 2011 18:23:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A029E280F1; Fri, 1 Apr 2011 09:23:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i96swTFMX90f; Fri, 1 Apr 2011 09:23:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 96D6728082; Fri, 1 Apr 2011 09:23:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A9D3C28095 for ; Fri, 1 Apr 2011 09:23:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T7B9gECue1la for ; Fri, 1 Apr 2011 09:23:09 +0200 (CEST) X-policyd-weight: IN_SBL_XBL_SPAMHAUS=4.35 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from pollux.denx.de (p4FF073FC.dip.t-dialin.net [79.240.115.252]) by theia.denx.de (Postfix) with ESMTP id 073DC28088 for ; Fri, 1 Apr 2011 09:23:07 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 3EB0D18563703; Fri, 1 Apr 2011 09:16:37 +0200 (CEST) From: Heiko Schocher To: u-boot@lists.denx.de Date: Fri, 1 Apr 2011 09:16:13 +0200 Message-Id: <1301642195-15280-2-git-send-email-hs@denx.de> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1301642195-15280-1-git-send-email-hs@denx.de> References: <1299591018-8944-1-git-send-email-hs@denx.de> <1301642195-15280-1-git-send-email-hs@denx.de> In-Reply-To: <1299591018-8944-1-git-send-email-hs@denx.de> References: <1299591018-8944-1-git-send-email-hs@denx.de> Cc: Valentin Longchamp , Kim Phillips , Holger Brunck , Heiko Schocher Subject: [U-Boot] [PATCH v4 01/23] powerpc, mpc83xx: add missing functions to include/common.h X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 cc: Kim Phillips cc: Holger Brunck cc: Wolfgang Denk cc: Detlev Zundel cc: Valentin Longchamp Signed-off-by: Kim Phillips --- 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 */