resend#2 [PATCH 2/3] ColdFire: Add MCF5227x cpu and MCF52277EVB support-2
Signed-off-by TsiChungLiew <[email protected]>
--- cpu/mcf5227x/Makefile | 48 ++++++ cpu/mcf5227x/config.mk | 31 ++++ cpu/mcf5227x/cpu.c | 75 +++++++++ cpu/mcf5227x/cpu_init.c | 146 ++++++++++++++++ cpu/mcf5227x/interrupts.c | 52 ++++++ cpu/mcf5227x/speed.c | 120 ++++++++++++++ cpu/mcf5227x/start.S | 356 ++++++++++++++++++++++++++++++++++++++++ include/asm-m68k/immap_5227x.h | 343 ++++++++++++++++++++++++++++++++++++++ 8 files changed, 1171 insertions(+), 0 deletions(-) create mode 100644 cpu/mcf5227x/Makefile create mode 100644 cpu/mcf5227x/config.mk create mode 100644 cpu/mcf5227x/cpu.c create mode 100644 cpu/mcf5227x/cpu_init.c create mode 100644 cpu/mcf5227x/interrupts.c create mode 100644 cpu/mcf5227x/speed.c create mode 100644 cpu/mcf5227x/start.S create mode 100644 include/asm-m68k/immap_5227x.h
cpu/mcf5227x/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 = start.o +COBJS = cpu.o speed.o cpu_init.o interrupts.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/mcf5227x/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=5208 -fPIC +else +PLATFORM_CPPFLAGS += -m5307 -fPIC +endif
cpu/mcf5227x/cpu.c new file +75 -0
75 lines not on this page · raw message
cpu/mcf5227x/cpu_init.c new file +146 -0
146 lines not on this page · raw message
cpu/mcf5227x/interrupts.c new file +52 -0
52 lines not on this page · raw message
cpu/mcf5227x/speed.c new file +120 -0
120 lines not on this page · raw message
cpu/mcf5227x/start.S new file +356 -0
356 lines not on this page · raw message
include/asm-m68k/immap_5227x.h new file +343 -0
343 lines not on this page · raw message
Signature · 1 line
1.5.2