]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARMV7: OMAP: Move syslib.c to omap-common since it can be shared by OMAP3 and OMAP4
authorSteve Sakoman <steve@sakoman.com>
Wed, 4 Aug 2010 16:39:40 +0000 (09:39 -0700)
committerSandeep Paulraj <s-paulraj@ti.com>
Wed, 8 Sep 2010 18:50:17 +0000 (14:50 -0400)
The functions in syslib.c can be shared, so this patch moves it from
cpu/omap3 to cpu/omap-common

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/cpu/armv7/omap-common/Makefile
arch/arm/cpu/armv7/omap-common/syslib.c [moved from arch/arm/cpu/armv7/omap3/syslib.c with 97% similarity]
arch/arm/cpu/armv7/omap3/Makefile
arch/arm/include/asm/arch-omap4/sys_proto.h

index 3a4a304e45b5a7577fe20f10e648e10230771b0e..caee7263b15cb81acb6d74c5f3b9a4af747c678b 100644 (file)
@@ -26,7 +26,9 @@ include $(TOPDIR)/config.mk
 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))
similarity index 97%
rename from arch/arm/cpu/armv7/omap3/syslib.c
rename to arch/arm/cpu/armv7/omap-common/syslib.c
index 9ced495c8d01b733d980a0f0b620c75f7727a372..f9ed9a307b7c0142a0e1bce1469c9acc1168906c 100644 (file)
@@ -23,8 +23,6 @@
 
 #include <common.h>
 #include <asm/io.h>
-#include <asm/arch/mem.h>
-#include <asm/arch/clocks.h>
 #include <asm/arch/sys_proto.h>
 
 /************************************************************
index 79ae26706e710e7227fbd1b1d0e5d77719318ade..95526d6893da16000b116b9e9324a0ac33ab22a1 100644 (file)
@@ -32,7 +32,6 @@ COBJS += board.o
 COBJS  += clock.o
 COBJS  += gpio.o
 COBJS  += mem.o
-COBJS  += syslib.o
 COBJS  += sys_info.o
 
 COBJS-$(CONFIG_EMIF4)  += emif4.o
index ad0c640dfd8a511b272c4e6d24f0c9e7dcd5522c..4813e9e21d97f9d527c47d074c1d1269b0b974a6 100644 (file)
@@ -33,6 +33,9 @@ void watchdog_init(void);
 u32 get_device_type(void);
 void invalidate_dcache(u32);
 void set_muxconf_regs(void);
+void sr32(void *, u32, u32, u32);
+u32 wait_on_value(u32, u32, void *, u32);
+void sdelay(unsigned long);
 
 extern const struct omap_sysinfo sysinfo;