From patchwork Mon Sep 5 18:02:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 113422 X-Patchwork-Delegate: sbabic@denx.de 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 BBC3EB6F7D for ; Tue, 6 Sep 2011 04:17:29 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C083280D0; Mon, 5 Sep 2011 20:17:28 +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 Xys+TpuSZ-aa; Mon, 5 Sep 2011 20:17:27 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6ABB280D1; Mon, 5 Sep 2011 20:17:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98808280D1 for ; Mon, 5 Sep 2011 20:17:23 +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 0BToyFj3pqDw for ; Mon, 5 Sep 2011 20:17:22 +0200 (CEST) X-Greylist: delayed 905 seconds by postgrey-1.27 at theia; Mon, 05 Sep 2011 20:17:20 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from VA3EHSOBE002.bigfish.com (va3ehsobe002.messaging.microsoft.com [216.32.180.12]) by theia.denx.de (Postfix) with ESMTPS id 08658280D0 for ; Mon, 5 Sep 2011 20:17:20 +0200 (CEST) Received: from mail110-va3-R.bigfish.com (10.7.14.241) by VA3EHSOBE002.bigfish.com (10.7.40.22) with Microsoft SMTP Server id 14.1.225.22; Mon, 5 Sep 2011 18:02:14 +0000 Received: from mail110-va3 (localhost.localdomain [127.0.0.1]) by mail110-va3-R.bigfish.com (Postfix) with ESMTP id DCB944D00AF; Mon, 5 Sep 2011 18:02:13 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zzc8kzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail110-va3 (localhost.localdomain [127.0.0.1]) by mail110-va3 (MessageSwitch) id 1315245733716205_14637; Mon, 5 Sep 2011 18:02:13 +0000 (UTC) Received: from VA3EHSMHS005.bigfish.com (unknown [10.7.14.253]) by mail110-va3.bigfish.com (Postfix) with ESMTP id 97741101804D; Mon, 5 Sep 2011 18:02:13 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS005.bigfish.com (10.7.99.15) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 5 Sep 2011 18:02:13 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.323.7; Mon, 5 Sep 2011 13:02:12 -0500 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.240.184]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p85I2AwN017959; Mon, 5 Sep 2011 13:02:10 -0500 (CDT) From: Fabio Estevam To: Date: Mon, 5 Sep 2011 15:02:41 -0300 Message-ID: <1315245763-13217-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: Fabio Estevam Subject: [U-Boot] [PATCH v5 1/3] mx25: Introduce sys_proto.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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Create a sys_proto.h for MX25 as done on other MX25 processors. Signed-off-by: Fabio Estevam --- Changes since v4: - Omit "extern" annotation in function prototype Changes since v3: - No changes. This patch was introduced in v4 arch/arm/cpu/arm926ejs/mx25/generic.c | 1 + arch/arm/include/asm/arch-mx25/imx-regs.h | 4 ---- arch/arm/include/asm/arch-mx25/sys_proto.h | 27 +++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 arch/arm/include/asm/arch-mx25/sys_proto.h diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c index 76e4b5c..3feb449 100644 --- a/arch/arm/cpu/arm926ejs/mx25/generic.c +++ b/arch/arm/cpu/arm926ejs/mx25/generic.c @@ -31,6 +31,7 @@ #ifdef CONFIG_MXC_MMC #include #endif +#include /* * get the system pll clock in Hz diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h index 9e30f7c..33bdb01 100644 --- a/arch/arm/include/asm/arch-mx25/imx-regs.h +++ b/arch/arm/include/asm/arch-mx25/imx-regs.h @@ -34,10 +34,6 @@ #define _IMX_REGS_H #ifndef __ASSEMBLY__ -#ifdef CONFIG_FEC_MXC -extern void mx25_fec_init_pins(void); -extern void imx_get_mac_from_fuse(unsigned char *mac); -#endif /* Clock Control Module (CCM) registers */ struct ccm_regs { diff --git a/arch/arm/include/asm/arch-mx25/sys_proto.h b/arch/arm/include/asm/arch-mx25/sys_proto.h new file mode 100644 index 0000000..1c59c7b --- /dev/null +++ b/arch/arm/include/asm/arch-mx25/sys_proto.h @@ -0,0 +1,27 @@ +/* + * (C) Copyright 2009 + * Stefano Babic, DENX Software Engineering, sbabic@denx.de. + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _SYS_PROTO_H_ +#define _SYS_PROTO_H_ + +#ifdef CONFIG_FEC_MXC +void mx25_fec_init_pins(void); +void imx_get_mac_from_fuse(unsigned char *mac); +#endif /* CONFIG_FEC_MXC */ + +#endif /* _SYS_PROTO_H_ */