Re: [U-Boot] [PATCH 7/9 V3] prepare joining at91rm9200 into at91
+/* reset time */ +at91_tc_t *tc = (at91_tc_t *) AT91_TC_BASE; +lastinc = readl(tc-tc[0].cv) 0x; +timestamp = 0; rm9200 did not zero out the top bits Is this needed ? The datasheet say not, is bit 16 to 31 of cv high or low. +typedef struct at91_mc { +u32 rcr;/* 0x00 MC Remap Control Register */ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 7/9 V3] prepare joining at91rm9200 into at91
Tom wrote: Many copyrights like this Please check + * + * Copyright (C) 1999 2000 2001 Erik Mouw (j.a.k.m...@its.tudelft.nl) and + * Jan-Derk Bakker (j.d.bak...@its.tudelft.nl) + * + * Modified for the at91rm9200dk board by Maybe change to 'Based on the at91rm9200dk board' 'This is the original copyright + * (C) Copyright 2004 + * Gary Jennejohn, DENX Software Engineering, ga...@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 I think, this question can be answered only by Wolfgang Denk. The Copyright are unchanged since first check in. original file is cpu/arm920t/at91rm9200/lowlevel_init.S regards Jens ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 7/9 V3] prepare joining at91rm9200 into at91
Jens Scharsig wrote: * prepare joining at91 and at91rm9200 * please read README.soc-at91 for details It looks like a lot of these files are copies. Please explain in the commit log what you are doing. Such as cpu/arm920t/at91/timer.c is a copy of .. These are the parts changed. 1. 2. It is hard to see what has changed I will try below.. Signed-off-by: Jens Scharsig js_at...@scharsoft.de --- cpu/arm920t/at91/Makefile | 47 + cpu/arm920t/at91/lowlevel_init.S | 177 not much change vs rm9200 cpu/arm920t/at91/reset.c | 59 +++ register access changes cpu/arm920t/at91/timer.c | 163 + white space changes register access changes cpu/arm920t/cpu.c |4 + doc/README.at91-soc| 24 - include/asm-arm/arch-at91/at91_mc.h| 89 include/asm-arm/arch-at91/at91_st.h| 48 + include/asm-arm/arch-at91/at91_tc.h| 79 ++ include/asm-arm/arch-at91/at91rm9200.h | 135 include/asm-arm/arch-at91/hardware.h |2 +- 11 files changed, 825 insertions(+), 2 deletions(-) create mode 100644 cpu/arm920t/at91/Makefile create mode 100644 cpu/arm920t/at91/lowlevel_init.S create mode 100644 cpu/arm920t/at91/reset.c create mode 100644 cpu/arm920t/at91/timer.c create mode 100644 include/asm-arm/arch-at91/at91_mc.h create mode 100644 include/asm-arm/arch-at91/at91_st.h create mode 100644 include/asm-arm/arch-at91/at91_tc.h create mode 100644 include/asm-arm/arch-at91/at91rm9200.h diff --git a/cpu/arm920t/at91/Makefile b/cpu/arm920t/at91/Makefile new file mode 100644 index 000..6e683f6 --- /dev/null +++ b/cpu/arm920t/at91/Makefile @@ -0,0 +1,47 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, w...@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 + +LIB = $(obj)lib$(SOC).a + +SOBJS+= lowlevel_init.o +COBJS+= reset.o +COBJS+= timer.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +# + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# diff --git a/cpu/arm920t/at91/lowlevel_init.S b/cpu/arm920t/at91/lowlevel_init.S new file mode 100644 index 000..ecd3d7e --- /dev/null +++ b/cpu/arm920t/at91/lowlevel_init.S @@ -0,0 +1,177 @@ +/* + * Memory Setup stuff - taken from blob memsetup.S Many copyrights like this Please check + * + * Copyright (C) 1999 2000 2001 Erik Mouw (j.a.k.m...@its.tudelft.nl) and + * Jan-Derk Bakker (j.d.bak...@its.tudelft.nl) + * + * Modified for the at91rm9200dk board by Maybe change to 'Based on the at91rm9200dk board' 'This is the original copyright + * (C) Copyright 2004 + * Gary Jennejohn, DENX Software Engineering, ga...@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 ws extra tab Apply globally + * 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 config.h +#include version.h + +#ifndef CONFIG_SKIP_LOWLEVEL_INIT + +#define
[U-Boot] [PATCH 7/9 V3] prepare joining at91rm9200 into at91
* prepare joining at91 and at91rm9200 * please read README.soc-at91 for details Signed-off-by: Jens Scharsig js_at...@scharsoft.de --- cpu/arm920t/at91/Makefile | 47 + cpu/arm920t/at91/lowlevel_init.S | 177 cpu/arm920t/at91/reset.c | 59 +++ cpu/arm920t/at91/timer.c | 163 + cpu/arm920t/cpu.c |4 + doc/README.at91-soc| 24 - include/asm-arm/arch-at91/at91_mc.h| 89 include/asm-arm/arch-at91/at91_st.h| 48 + include/asm-arm/arch-at91/at91_tc.h| 79 ++ include/asm-arm/arch-at91/at91rm9200.h | 135 include/asm-arm/arch-at91/hardware.h |2 +- 11 files changed, 825 insertions(+), 2 deletions(-) create mode 100644 cpu/arm920t/at91/Makefile create mode 100644 cpu/arm920t/at91/lowlevel_init.S create mode 100644 cpu/arm920t/at91/reset.c create mode 100644 cpu/arm920t/at91/timer.c create mode 100644 include/asm-arm/arch-at91/at91_mc.h create mode 100644 include/asm-arm/arch-at91/at91_st.h create mode 100644 include/asm-arm/arch-at91/at91_tc.h create mode 100644 include/asm-arm/arch-at91/at91rm9200.h diff --git a/cpu/arm920t/at91/Makefile b/cpu/arm920t/at91/Makefile new file mode 100644 index 000..6e683f6 --- /dev/null +++ b/cpu/arm920t/at91/Makefile @@ -0,0 +1,47 @@ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, w...@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 + +LIB= $(obj)lib$(SOC).a + +SOBJS += lowlevel_init.o +COBJS += reset.o +COBJS += timer.o + +SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) + +all: $(obj).depend $(LIB) + +$(LIB):$(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +# + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +# diff --git a/cpu/arm920t/at91/lowlevel_init.S b/cpu/arm920t/at91/lowlevel_init.S new file mode 100644 index 000..ecd3d7e --- /dev/null +++ b/cpu/arm920t/at91/lowlevel_init.S @@ -0,0 +1,177 @@ +/* + * Memory Setup stuff - taken from blob memsetup.S + * + * Copyright (C) 1999 2000 2001 Erik Mouw (j.a.k.m...@its.tudelft.nl) and + *Jan-Derk Bakker (j.d.bak...@its.tudelft.nl) + * + * Modified for the at91rm9200dk board by + * (C) Copyright 2004 + * Gary Jennejohn, DENX Software Engineering, ga...@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 config.h +#include version.h + +#ifndef CONFIG_SKIP_LOWLEVEL_INIT + +#define AT91_PMC_MOR 0xFC20 /* Main oscillator register */ +#define AT91_PMC_PLLAR 0xFC28 +#define AT91_PMC_PLLBR 0xFC2C +#define AT91_PMC_MCKR 0xFC30 + +#define AT91_PIOC_ASR 0xF870 +#define AT91_PIOC_BSR 0xF874 +#define AT91_PIOC_PDR 0xF804 + +#define AT91_MC_EBI_CSA0xFF60 +#define AT91_MC_EBI_CFG0xFF64 +#define AT91_MC_SMC_CSR0 0xFF70 + +#define AT91_MC_SDRAMC_MR 0xFF90 +#define AT91_MC_SDRAMC_TR 0xFF94 +#define AT91_MC_SDRAMC_CR 0xFF98 + +_MTEXT_BASE: +#undef START_FROM_MEM