resend#2 [PATCH 1/8] ColdFire: Add MCF547x_8x cpu arch
Signed-off-by TsiChungLiew <[email protected]>
--- cpu/mcf547x_8x/Makefile | 48 ++++++ cpu/mcf547x_8x/config.mk | 31 ++++ cpu/mcf547x_8x/cpu.c | 143 +++++++++++++++++ cpu/mcf547x_8x/cpu_init.c | 132 ++++++++++++++++ cpu/mcf547x_8x/interrupts.c | 50 ++++++ cpu/mcf547x_8x/pci.c | 167 ++++++++++++++++++++ cpu/mcf547x_8x/slicetimer.c | 112 +++++++++++++ cpu/mcf547x_8x/speed.c | 43 +++++ cpu/mcf547x_8x/start.S | 361 +++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 1087 insertions(+), 0 deletions(-) create mode 100644 cpu/mcf547x_8x/Makefile create mode 100644 cpu/mcf547x_8x/config.mk create mode 100644 cpu/mcf547x_8x/cpu.c create mode 100644 cpu/mcf547x_8x/cpu_init.c create mode 100644 cpu/mcf547x_8x/interrupts.c create mode 100644 cpu/mcf547x_8x/pci.c create mode 100644 cpu/mcf547x_8x/slicetimer.c create mode 100644 cpu/mcf547x_8x/speed.c create mode 100644 cpu/mcf547x_8x/start.S
cpu/mcf547x_8x/Makefile new file +48 -0
@@ -0,0 +1,48 @@ +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +# CFLAGS += -DET_DEBUG + +LIB = lib$(CPU).a + +START = +COBJS = cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o + +SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) +START := $(addprefix $(obj),$(START)) + +all: $(obj).depend $(START) $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
cpu/mcf547x_8x/config.mk new file +31 -0
@@ -0,0 +1,31 @@ +# +# (C) Copyright 2003 Josef Baumgartner <[email protected]> +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +PLATFORM_RELFLAGS += -ffixed-d7 -msep-data +ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2) +PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC +else +PLATFORM_CPPFLAGS += -m5407 -fPIC +endif
cpu/mcf547x_8x/cpu.c new file +143 -0
143 lines not on this page · raw message
cpu/mcf547x_8x/cpu_init.c new file +132 -0
132 lines not on this page · raw message
cpu/mcf547x_8x/interrupts.c new file +50 -0
50 lines not on this page · raw message
cpu/mcf547x_8x/pci.c new file +167 -0
167 lines not on this page · raw message
cpu/mcf547x_8x/slicetimer.c new file +112 -0
112 lines not on this page · raw message
cpu/mcf547x_8x/speed.c new file +43 -0
43 lines not on this page · raw message
cpu/mcf547x_8x/start.S new file +361 -0
361 lines not on this page · raw message
Signature · 1 line
1.5.2