ARM: Use syslib functions for all CORTEXA8
authorStefano Babic <sbabic@denx.de>
Mon, 26 Jul 2010 08:05:05 +0000 (10:05 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 29 Sep 2010 09:24:31 +0000 (11:24 +0200)
The OMAP3 cpu directory contains a syslib file with some utilities
that can be shared by all targets using arm cortexa8 processors,
not only OMAP.

Signed-off-by: Stefano Babic <sbabic@denx.de>
arch/arm/cpu/armv7/Makefile
arch/arm/cpu/armv7/omap-common/Makefile
arch/arm/cpu/armv7/syslib.c [moved from arch/arm/cpu/armv7/omap-common/syslib.c with 100% similarity]
arch/arm/include/asm/arch-mx51/sys_proto.h

index ae20299..7743fef 100644 (file)
@@ -27,6 +27,7 @@ LIB   = $(obj)lib$(CPU).a
 
 START  := start.o
 COBJS  := cpu.o
+COBJS  += syslib.o
 
 SRCS   := $(START:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
@@ -44,4 +45,4 @@ include $(SRCTREE)/rules.mk
 
 sinclude $(obj).depend
 
-#########################################################################
\ No newline at end of file
+#########################################################################
index caee726..aedea7b 100644 (file)
@@ -28,7 +28,6 @@ LIB   = $(obj)libomap-common.a
 SOBJS  := reset.o
 
 COBJS  := timer.o
-COBJS  += syslib.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
index bf500a8..f687503 100644 (file)
@@ -26,5 +26,6 @@
 
 u32 get_cpu_rev(void);
 #define is_soc_rev(rev)        ((get_cpu_rev() & 0xFF) - rev)
+void sdelay(unsigned long);
 
 #endif