Skip to contentSkip to conversation

ARMV7: S5P: make s5p-common for sharing the code between s5pc1xx and s5pc2xx

PATCH Superseded Minkyu Kang 1 participant 1 message Aug 19, 2010

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARMV7: S5P: make s5p-common for sharing the code between s5pc1xx and s5pc2xx

This patch adds basic support for s5pc210.
s5p-common will be used by all of s5p SoCs.

---
 Makefile                                 |    7 +
 arch/arm/cpu/armv7/s5p-common/Makefile   |   46 +++++++
 arch/arm/cpu/armv7/s5p-common/cpu_info.c |   57 +++++++++
 arch/arm/cpu/armv7/s5p-common/timer.c    |  192 ++++++++++++++++++++++++++++++
 arch/arm/cpu/armv7/s5pc1xx/Makefile      |    2 -
 arch/arm/cpu/armv7/s5pc1xx/cpu_info.c    |   57 ---------
 arch/arm/cpu/armv7/s5pc1xx/timer.c       |  192 ------------------------------
 7 files changed, 302 insertions(+), 251 deletions(-)
 create mode 100644 arch/arm/cpu/armv7/s5p-common/Makefile
 create mode 100644 arch/arm/cpu/armv7/s5p-common/cpu_info.c
 create mode 100644 arch/arm/cpu/armv7/s5p-common/timer.c
 delete mode 100644 arch/arm/cpu/armv7/s5pc1xx/cpu_info.c
 delete mode 100644 arch/arm/cpu/armv7/s5pc1xx/timer.c
Makefile +7 -0
index 9cea069..47f4e7d 100644
@@ -253,6 +253,13 @@ ifeq ($(SOC),omap4)
 LIBS += $(CPUDIR)/omap-common/libomap-common.a
 endif
 
+ifeq ($(SOC),s5pc1xx)
+LIBS += $(CPUDIR)/s5p-common/libs5p-common.a
+endif
+ifeq ($(SOC),s5pc2xx)
+LIBS += $(CPUDIR)/s5p-common/libs5p-common.a
+endif
+
 LIBS := $(addprefix $(obj),$(LIBS))
 .PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
 
arch/arm/cpu/armv7/s5p-common/Makefile new file +46 -0

46 lines not on this page · raw message

arch/arm/cpu/armv7/s5p-common/cpu_info.c new file +57 -0

57 lines not on this page · raw message

arch/arm/cpu/armv7/s5p-common/timer.c new file +192 -0

192 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc1xx/Makefile +0 -2
index 3785593..263945f 100644
@@ -32,9 +32,7 @@ SOBJS	= cache.o
 SOBJS	+= reset.o
 
 COBJS	+= clock.o
-COBJS	+= cpu_info.o
 COBJS	+= sromc.o
-COBJS	+= timer.o
 
 SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
arch/arm/cpu/armv7/s5pc1xx/cpu_info.c deleted +0 -57

57 lines not on this page · raw message

arch/arm/cpu/armv7/s5pc1xx/timer.c deleted +0 -192

192 lines not on this page · raw message

Signature · 1 line
1.7.0.4