Skip to contentSkip to conversation

Factor out SC520 sub-features

PATCH New Graeme Russ 2 participants 2 messages Feb 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 Factor out SC520 sub-features

Moved sub-features of the SC520 code which is currently selectively compiled using #ifdef out of sc520.c into individual files selectively compiled via the makefile

---
 cpu/i386/sc520/Makefile      |    4 +
 cpu/i386/sc520/sc520.c       |  277 ------------------------------------------
 cpu/i386/sc520/sc520_pci.c   |  171 ++++++++++++++++++++++++++
 cpu/i386/sc520/sc520_ssi.c   |   92 ++++++++++++++
 cpu/i386/sc520/sc520_timer.c |   73 +++++++++++
 5 files changed, 340 insertions(+), 277 deletions(-)
 create mode 100644 cpu/i386/sc520/sc520_pci.c
 create mode 100644 cpu/i386/sc520/sc520_ssi.c
 create mode 100644 cpu/i386/sc520/sc520_timer.c
cpu/i386/sc520/Makefile +4 -0
index ddfec23..87835b2 100644
@@ -32,6 +32,10 @@ include $(TOPDIR)/config.mk
 LIB	:= $(obj)lib$(SOC).a
 
 COBJS-$(CONFIG_SYS_SC520) += sc520.o
+COBJS-$(CONFIG_SYS_SC520_SSI) += sc520_ssi.o
+COBJS-$(CONFIG_SYS_SC520_TIMER) += sc520_timer.o
+COBJS-$(CONFIG_PCI) += sc520_pci.o
+
 SOBJS-$(CONFIG_SYS_SC520) += sc520_asm.o
 
 SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
cpu/i386/sc520/sc520.c +0 -277

297 lines not on this page · raw message

cpu/i386/sc520/sc520_pci.c new file +171 -0

171 lines not on this page · raw message

cpu/i386/sc520/sc520_ssi.c new file +92 -0

92 lines not on this page · raw message

cpu/i386/sc520/sc520_timer.c new file +73 -0

73 lines not on this page · raw message

#1 lore raw

PATCH 5/7 Factor out SC520 sub-features

Dear Graeme Russ,

Quoted 5 lines · In message <[email protected]> you wrote:

Moved sub-features of the SC520 code which is currently selectively compiled using #ifdef out of sc520.c into individual files selectively compiled via the makefile

Quoted 11 lines
---
 cpu/i386/sc520/Makefile      |    4 +
 cpu/i386/sc520/sc520.c       |  277 --------------------------------------=
----
 cpu/i386/sc520/sc520_pci.c   |  171 ++++++++++++++++++++++++++
 cpu/i386/sc520/sc520_ssi.c   |   92 ++++++++++++++
 cpu/i386/sc520/sc520_timer.c |   73 +++++++++++
 5 files changed, 340 insertions(+), 277 deletions(-)
 create mode 100644 cpu/i386/sc520/sc520_pci.c
 create mode 100644 cpu/i386/sc520/sc520_ssi.c
 create mode 100644 cpu/i386/sc520/sc520_timer.c

Applied to "next" branch. Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When all else fails, read the instructions.