From patchwork Mon Sep 5 14:00:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 113369 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 EAD08B6F77 for ; Tue, 6 Sep 2011 00:00:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 51ABC2813A; Mon, 5 Sep 2011 16:00:43 +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 M+qjZ0O+JRsI; Mon, 5 Sep 2011 16:00:43 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 74DE828112; Mon, 5 Sep 2011 16:00:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ADA51280F6 for ; Mon, 5 Sep 2011 16:00:27 +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 OzuD72RdwAaA for ; Mon, 5 Sep 2011 16:00:25 +0200 (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 AM1EHSOBE002.bigfish.com (am1ehsobe002.messaging.microsoft.com [213.199.154.205]) by theia.denx.de (Postfix) with ESMTPS id A140728101 for ; Mon, 5 Sep 2011 16:00:24 +0200 (CEST) Received: from mail28-am1-R.bigfish.com (10.3.201.247) by AM1EHSOBE002.bigfish.com (10.3.204.22) with Microsoft SMTP Server id 14.1.225.22; Mon, 5 Sep 2011 14:00:23 +0000 Received: from mail28-am1 (localhost.localdomain [127.0.0.1]) by mail28-am1-R.bigfish.com (Postfix) with ESMTP id 718B0FE0078; Mon, 5 Sep 2011 14:00:23 +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 mail28-am1 (localhost.localdomain [127.0.0.1]) by mail28-am1 (MessageSwitch) id 1315231223274273_8259; Mon, 5 Sep 2011 14:00:23 +0000 (UTC) Received: from AM1EHSMHS003.bigfish.com (unknown [10.3.201.244]) by mail28-am1.bigfish.com (Postfix) with ESMTP id 363F01098056; Mon, 5 Sep 2011 14:00:23 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS003.bigfish.com (10.3.207.103) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 5 Sep 2011 14:00:22 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.323.7; Mon, 5 Sep 2011 09:00:20 -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 p85E0IQp020736; Mon, 5 Sep 2011 09:00:19 -0500 (CDT) From: Fabio Estevam To: Date: Mon, 5 Sep 2011 11:00:48 -0300 Message-ID: <1315231250-380-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 v4 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 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 2ccb445..646c41e 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..d5bccf2 --- /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 +extern void mx25_fec_init_pins(void); +extern void imx_get_mac_from_fuse(unsigned char *mac); +#endif /* CONFIG_FEC_MXC */ + +#endif /* _SYS_PROTO_H_ */