From: Peter Pearse Date: Sat, 29 Mar 2008 15:20:42 -0000 Subject: [U-Boot-Users] [PATCH v2 1/7] Separate omap24xx specific code from arm1136 In-Reply-To: Message-ID: <000501c891b0$741d5490$3a4d010a@Emea.Arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: Guennadi Liakhovetski [mailto:lg at denx.de] > Sent: 26 March 2008 19:41 > To: u-boot-users at lists.sourceforge.net > Cc: Wolfgang Denk; Sascha Hauer; Peter Pearse > Subject: [PATCH v2 1/7] Separate omap24xx specific code from arm1136 > > From: Sascha Hauer > > Move omap24xx code to cpu/arm1136/omap24xx, rename > include/asm-arm/arch-arm1136 to cpu/arm1136/omap24xx. > > Signed-off-by: Sascha Hauer > Signed-off-by: Guennadi Liakhovetski > ---snip--- > diff --git a/cpu/arm1136/omap24xx/interrupts.c > b/cpu/arm1136/omap24xx/interrupts.c > new file mode 100644 > index 0000000..a50fa39 > --- /dev/null > +++ b/cpu/arm1136/omap24xx/interrupts.c > @@ -0,0 +1,159 @@ > +/* > + * (C) Copyright 2004 > + * Texas Instruments > + * Richard Woodruff > + * > + * (C) Copyright 2002 > + * Sysgo Real-Time Solutions, GmbH > + * Marius Groeger > + * Alex Zuepke > + * > + * (C) Copyright 2002 > + * Gary Jennejohn, DENX Software Engineering, > + * > + * 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. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, > + * MA 02111-1307 USA > + */ > + > +#include > +#include > +#include > + > +#define TIMER_LOAD_VAL 0 > + > +/* macro to read the 32 bit timer */ > +#define READ_TIMER (*(volatile ulong *)(CFG_TIMERBASE+TCRR)) I'm assuming you have no objection to me patching this to #define READ_TIMER (*((volatile ulong *)(CFG_TIMERBASE+TCRR))) to get apollon & omap2420h4 to build with arm-linux-gcc (GCC) 4.0.0 (DENX ELDK 4.0 4.0.0) . Then I can submit for merge tomorrow (Sunday) Regards Peter