Skip to contentSkip to conversation

ARM: Use syslib functions for all CORTEXA8

PATCH New Stefano Babic 1 participant 1 message Aug 20, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Use syslib functions for all CORTEXA8

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.

---
 arch/arm/cpu/armv7/Makefile                |    3 +-
 arch/arm/cpu/armv7/omap3/Makefile          |    1 -
 arch/arm/cpu/armv7/omap3/syslib.c          |   72 ----------------------------
 arch/arm/cpu/armv7/syslib.c                |   69 ++++++++++++++++++++++++++
 arch/arm/include/asm/arch-mx51/sys_proto.h |    1 +
 5 files changed, 72 insertions(+), 74 deletions(-)
 delete mode 100644 arch/arm/cpu/armv7/omap3/syslib.c
 create mode 100644 arch/arm/cpu/armv7/syslib.c
arch/arm/cpu/armv7/Makefile +2 -1
index ae20299..de4b065 100644
@@ -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
+#########################################################################
arch/arm/cpu/armv7/omap3/Makefile +0 -1
index 79ae267..95526d6 100644
@@ -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
arch/arm/cpu/armv7/omap3/syslib.c deleted +0 -72

72 lines not on this page · raw message

arch/arm/cpu/armv7/syslib.c new file +69 -0

69 lines not on this page · raw message

arch/arm/include/asm/arch-mx51/sys_proto.h +1 -0
index bf500a8..f687503 100644
@@ -26,5 +26,6 @@
 
 u32 get_cpu_rev(void);
 #define is_soc_rev(rev)	((get_cpu_rev() & 0xFF) - rev)
+void sdelay(unsigned long);
 
 #endif
Signature · 1 line
1.6.3.3