
-----Original Message----- From: Guennadi Liakhovetski [mailto:lg@denx.de] Sent: 26 March 2008 19:41 To: u-boot-users@lists.sourceforge.net Cc: Wolfgang Denk; Sascha Hauer; Peter Pearse Subject: [PATCH v2 1/7] Separate omap24xx specific code from arm1136
From: Sascha Hauer s.hauer@pengutronix.de
Move omap24xx code to cpu/arm1136/omap24xx, rename include/asm-arm/arch-arm1136 to cpu/arm1136/omap24xx.
Signed-off-by: Sascha Hauer s.hauer@pengutronix.de Signed-off-by: Guennadi Liakhovetski lg@denx.de
---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 r-woodruff2@ti.com
- (C) Copyright 2002
- Sysgo Real-Time Solutions, GmbH <www.elinos.com>
- Marius Groeger mgroeger@sysgo.de
- Alex Zuepke azu@sysgo.de
- (C) Copyright 2002
- Gary Jennejohn, DENX Software Engineering, gj@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.
- 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 <common.h> +#include <asm/arch/bits.h> +#include <asm/arch/omap2420.h>
+#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