Move ARM supplied dev boards to new board/arm directory
PATCH 1/1 Move ARM supplied dev boards to new board/arm directory
Completely replaces the patch
[PATCH][ARM] Move ARM supplied dev boards to new board/armltd directory submitted Tue, 18 Mar 2008.
This patch will allow code common to all ARM supplied development boards to be shared.
This patch is also available for test fromgit://linux-arm.org/u-boot-armdev.git as branch 080312_move
This patch is made against u-boot commit
commit fdeb932b1c8a3b615463995c3452d30ee0b12a33
Merge: 3515fd1... 1f2a997...
Author: Wolfgang Denk <[email protected]>
Date: Tue Mar 18 22:15:58 2008 +0100
Merge branch 'master' of git://www.denx.de/git/u-boot-blackfin
---
Move ARM supplied dev boards to new board/arm directory Signed-off-by Peter Pearse <[email protected]>
---
Makefile +3 -3
@@ -2330,7 +2330,7 @@ ap720t_config \ ap920t_config \ ap926ejs_config \ ap946es_config: unconfig - @board/integratorap/split_by_variant.sh $@ + @board/arm/integratorap/split_by_variant.sh $@ integratorcp_config \ cp_config \
@@ -2342,7 +2342,7 @@ cp966_config \ cp922_config \ cp922_XA10_config \ cp1026_config: unconfig - @board/integratorcp/split_by_variant.sh $@ + @board/arm/integratorcp/split_by_variant.sh $@ kb9202_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
@@ -2459,7 +2459,7 @@ VCMA9_config : unconfig versatile_config \ versatileab_config \ versatilepb_config : unconfig - @board/versatile/split_by_variant.sh $@ + @board/arm/versatile/split_by_variant.sh $@ voiceblue_config: unconfig @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
board/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +1 -1
@@ -1,15 +1,7 @@ /* - * armboot - Startup Code for ARM926EJS CPU-core + * asm.S - Assembler code common to development boards supplied by ARM
Ltd.
*
- * Copyright (c) 2003 Texas Instruments
- *
- * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
- *
- * Copyright (c) 2001 Marius Gr?ger <[email protected]> - * Copyright (c) 2002 Alex Z?pke <[email protected]> - * Copyright (c) 2002 Gary Jennejohn <[email protected]> - * Copyright (c) 2003 Richard Woodruff <[email protected]> - * Copyright (c) 2003 Kshitij <[email protected]> + * Copyright (c) 2008 ARM Ltd.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -30,16 +22,15 @@
* MA 02111-1307 USA
*/
+/*
+ * Whilst some cores and/or core modules may provide explicit
+ * software reset, these are not used because they may have unwanted
+ * side effects. For U-Boot's purposes calling the reset vector suffices.
+ * If necessary, we could set some registers, update the MMU, etc.
+ */
+
.align 5
.globl reset_cpu
reset_cpu:
- ldr r1, rstctl1 /* get clkm1 reset ctl */
- mov r3, #0x0
- strh r3, [r1] /* clear it */
- mov r3, #0x8
- strh r3, [r1] /* force dsp+arm reset */
-_loop_forever:
- b _loop_forever
+ b 0
-rstctl1:
- .word 0xfffece10
(quoted diff) +0 -0
b/board/arm/integratorap/Makefile
similarity index 100%
rename from board/integratorap/Makefile
rename to board/arm/integratorap/Makefile
(quoted diff) +0 -0
b/board/arm/integratorap/config.mk
similarity index 100%
rename from board/integratorap/config.mk
rename to board/arm/integratorap/config.mk
board/arm/integratorap/flash.c renamed from board/integratorap/flash.c +0 -0
(quoted diff) +0 -0
b/board/arm/integratorap/integratorap.c
similarity index 100%
rename from board/integratorap/integratorap.c
rename to board/arm/integratorap/integratorap.c
(quoted diff) +0 -0
b/board/arm/integratorap/lowlevel_init.S
similarity index 100%
rename from board/integratorap/lowlevel_init.S
rename to board/arm/integratorap/lowlevel_init.S
(quoted diff) +0 -0
b/board/arm/integratorap/memsetup.S
similarity index 100%
rename from board/integratorap/memsetup.S
rename to board/arm/integratorap/memsetup.S
(quoted diff) +0 -0
b/board/arm/integratorap/split_by_variant.sh similarity index 80%
rename from board/integratorap/split_by_variant.sh rename to board/arm/integratorap/split_by_variant.sh index 4b94d8f..25f4fd2 100755
board/arm/integratorap/split_by_variant.sh renamed from board/integratorap/split_by_variant.sh +15 -16
@@ -12,32 +12,32 @@ echo " 1 /* Integrator/AP */" >> tmp.fil # Set the core module defines according to Core Module # --------------------------------------------------------- cpu="arm_intcm" -variant="unknown core module" +variant="generic core module" if [ "$1" = "" ] then - echo "$0:: No parameters - using arm_intcm" + echo "$0:: No parameters - using core arm_unknown" else case "$1" in ap7_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM7TDMI" ;; ap966) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM966E-S" ;; ap922_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM922T" ;; integratorap_config | \ ap_config) - cpu="arm_intcm" - variant="unspecified core module" + cpu="arm_unknown" + variant="generic core module" ;; ap720t_config)
@@ -48,7 +48,7 @@ else ;; ap922_XA10_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM922T_XA10" echo -n "#define CONFIG_CM922T_XA10" >> tmp.fil echo " 1 /* CPU core is ARM922T_XA10 */" >> tmp.fil
@@ -76,18 +76,18 @@ else ;; *) - echo "$0:: Unknown core module" - variant="unknown core module" - cpu="arm_intcm" + echo "$0:: Unknown core, generic core module" + variant="generic core module" + cpu="arm_unknown" ;; esac fi -if [ "$cpu" = "arm_intcm" ] +if [ "$cpu" = "arm_unknown" ] then - echo "/* Core module undefined/not ported */" >> tmp.fil - echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil + echo "/* Core unknown/not ported */" >> tmp.fil + echo "#define CONFIG_arm_unknown 1" >> tmp.fil echo -n "#undef CONFIG_CM_MULTIPLE_SSRAM" >> tmp.fil echo -n " /* CM may not have " >> tmp.fil echo "multiple SSRAM mapping */" >> tmp.fil
@@ -105,15 +105,16 @@ then fi mkdir -p ${obj}include -mkdir -p ${obj}board/integratorap +mkdir -p ${obj}board/arm/integratorap mv tmp.fil ${obj}include/config.h # --------------------------------------------------------- # Ensure correct core object loaded first in U-Boot image # --------------------------------------------------------- -sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//'
${src}board/integratorap/u-boot.lds.template > ${obj}board/integratorap/u-boot.lds
+sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//' \
+${src}board/arm/integratorap/u-boot.lds.template > \+${obj}board/arm/integratorap/u-boot.lds
# --------------------------------------------------------- # Complete the configuration
# ---------------------------------------------------------
-$MKCONFIG -a integratorap arm $cpu integratorap; +$MKCONFIG -a integratorap arm $cpu integratorap arm NULL;
echo "Variant:: $variant with core $cpu"
-
(quoted diff) +0 -0
b/board/arm/integratorap/u-boot.lds.template similarity index 100%
rename from board/integratorap/u-boot.lds.template rename to board/arm/integratorap/u-boot.lds.template
(quoted diff) +0 -0
b/board/arm/integratorcp/Makefile
similarity index 100%
rename from board/integratorcp/Makefile
rename to board/arm/integratorcp/Makefile
(quoted diff) +0 -0
b/board/arm/integratorcp/config.mk
similarity index 100%
rename from board/integratorcp/config.mk
rename to board/arm/integratorcp/config.mk
board/arm/integratorcp/flash.c renamed from board/integratorcp/flash.c +0 -0
(quoted diff) +0 -0
b/board/arm/integratorcp/integratorcp.c
similarity index 100%
rename from board/integratorcp/integratorcp.c
rename to board/arm/integratorcp/integratorcp.c
(quoted diff) +0 -0
b/board/arm/integratorcp/lowlevel_init.S
similarity index 100%
rename from board/integratorcp/lowlevel_init.S
rename to board/arm/integratorcp/lowlevel_init.S
(quoted diff) +0 -0
b/board/arm/integratorcp/memsetup.S
similarity index 100%
rename from board/integratorcp/memsetup.S
rename to board/arm/integratorcp/memsetup.S
(quoted diff) +0 -0
b/board/arm/integratorcp/split_by_variant.sh similarity index 82%
rename from board/integratorcp/split_by_variant.sh rename to board/arm/integratorcp/split_by_variant.sh index 79a6a9d..22d86a5 100755
board/arm/integratorcp/split_by_variant.sh renamed from board/integratorcp/split_by_variant.sh +13 -15
@@ -9,32 +9,32 @@ echo " /* Integrator board */" >> tmp.fil echo -n "#define CONFIG_ARCH_CINTEGRATOR" >> tmp.fil echo " 1 /* Integrator/CP */" >> tmp.fil -cpu="arm_intcm" -variant="unknown core module" +cpu="arm_unknown" +variant="generic core module" if [ "$1" = "" ] then - echo "$0:: No parameters - using arm_intcm" + echo "$0:: No parameters - using arm_unknown" else case "$1" in ap966) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM966E-S" ;; ap922_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM922T" ;; integratorcp_config | \ cp_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unspecified core module" ;; cp922_XA10_config) - cpu="arm_intcm" + cpu="arm_unknown" variant="unported core module CM922T_XA10" echo -n "#define CONFIG_CM922T_XA10" >> tmp.fil echo " 1 /* CPU core is ARM922T_XA10 */" >> tmp.fil
@@ -54,7 +54,6 @@ else echo " 1 /* CPU core is ARM926EJ-S */ " >> tmp.fil ;; - cp946es_config) cpu="arm946es" variant="Core module CM946E-S"
@@ -70,19 +69,19 @@ else ;; *) - echo "$0:: Unknown core module" - variant="unknown core module" - cpu="arm_intcm" + echo "$0:: Unknown core" + variant="generic core module" + cpu="arm_unknown" ;; esac fi -if [ "$cpu" = "arm_intcm" ] +if [ "$cpu" = "arm_unknown" ] then echo "/* Core module undefined/not ported */" >> tmp.fil - echo "#define CONFIG_ARM_INTCM 1" >> tmp.fil + echo "#define CONFIG_arm_unknown 1" >> tmp.fil echo -n "#undef CONFIG_CM_MULTIPLE_SSRAM" >> tmp.fil echo -n " /* CM may not have " >> tmp.fil echo "multiple SSRAM mapping */" >> tmp.fil
@@ -100,15 +99,16 @@ then fi mkdir -p ${obj}include -mkdir -p ${obj}board/integratorcp +mkdir -p ${obj}board/arm/integratorcp mv tmp.fil ${obj}include/config.h # --------------------------------------------------------- # Ensure correct core object loaded first in U-Boot image # --------------------------------------------------------- -sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//'
${src}board/integratorcp/u-boot.lds.template > ${obj}board/integratorcp/u-boot.lds
+sed -r 's/CPU_FILE/cpu\/'$cpu'\/start.o/; s/#.*//' \
+${src}board/arm/integratorcp/u-boot.lds.template > \+${obj}board/arm/integratorcp/u-boot.lds
# --------------------------------------------------------- # Complete the configuration
# ---------------------------------------------------------
-$MKCONFIG -a integratorcp arm $cpu integratorcp; +$MKCONFIG -a integratorcp arm $cpu integratorcp arm NULL;
echo "Variant:: $variant with core $cpu"
-
(quoted diff) +0 -0
b/board/arm/integratorcp/u-boot.lds.template similarity index 100%
rename from board/integratorcp/u-boot.lds.template rename to board/arm/integratorcp/u-boot.lds.template
board/arm/src.c renamed from cpu/arm926ejs/versatile/timer.c +7 -18
@@ -1,20 +1,7 @@/* -* (C) Copyright 2003 -* Texas Instruments <www.ti.com> +* src.c - c code common to development boards supplied by ARM Ltd. * -* (C) Copyright 2002 -* Sysgo Real-Time Solutions, GmbH <www.elinos.com> -* Marius Groeger <[email protected]> -* -* (C) Copyright 2002 -* Sysgo Real-Time Solutions, GmbH <www.elinos.com> -* Alex Zuepke <[email protected]> -* -* (C) Copyright 2002-2004 -* Gary Jennejohn, DENX Software Engineering, <[email protected]> -* -* (C) Copyright 2004 -* Philippe Robin, ARM Ltd. <[email protected]> +* Copyright (c) 2008 ARM Ltd. * * See file CREDITS for list of people who contributed to this * project.
@@ -26,7 +13,7 @@* * 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 +* 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
@@ -34,6 +21,9 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ +/* +* Timer routines applicable to all ARM supplied development boards +*/ #include <common.h> #include <arm926ejs.h>
@@ -47,10 +37,12 @@ static ulong timestamp;static ulong lastdec;/* nothing really to do with interrupts, just starts up a counter. */ -int timer_init (void ) +int timer_init (void ) { - *(volatile ulong *)(CFG_TIMERBASE +0 ) =CFG_TIMER_RELOAD ;/*
TimerLoad */
- *(volatile ulong *)(CFG_TIMERBASE + 4) = CFG_TIMER_RELOAD; /*
TimerValue */
+ /* TimerLoad */
+ *(volatile ulong *)(CFG_TIMERBASE + 0) = CFG_TIMER_RELOAD;
+ /* TimerValue */
+ *(volatile ulong *)(CFG_TIMERBASE + 4) = CFG_TIMER_RELOAD;
*(volatile ulong *)(CFG_TIMERBASE + 8) = 0x8C;
/* init the timestamp and lastdec value */
@@ -63,40 +55,54 @@ int timer_init (void)
* timer without interrupts
*/
-void reset_timer (void)
+void reset_timer(void)
{
reset_timer_masked ();
}
-ulong get_timer (ulong base)
+ulong get_timer(ulong base)
{
- return get_timer_masked () - base;
+ return get_timer_masked() - base;
}
-void set_timer (ulong t)
+void set_timer(ulong t)
{
timestamp = t;
}
/* delay x useconds AND perserve advance timstamp value */
-void udelay (unsigned long usec)
+void udelay(unsigned long usec)
{
ulong tmo, tmp;
- if(usec >= 1000){ /* if "big" number, spread normalization to seconds
*/
- tmo = usec / 1000; /* start to normalize for usec to ticks per sec */
- tmo *= CFG_HZ; /* find number of "ticks" to wait to achieve target
*/
- tmo /= 1000; /* finish normalize. */
- }else{ /* else small number, don't kill it prior to HZ multiply */
+ if (usec >= 1000) {
+ /* "big" number,
+ * spread normalization to seconds
+ * start to normalize for usec to ticks per sec
+ * find number of "ticks" to wait to achieve target
+ * finish normalize.
+ */
+ tmo = usec / 1000;
+ tmo *= CFG_HZ;
+ tmo /= 1000;
+ } else {
+ /* small number,
+ * don't kill it prior to HZ multiply
+ */
tmo = usec * CFG_HZ;
tmo /= (1000*1000);
}
tmp = get_timer (0); /* get current timestamp */
- if( (tmo + tmp + 1) < tmp ) /* if setting this fordward will roll time
stamp */
- reset_timer_masked (); /* reset "advancing" timestamp to 0, set
lastdec value */
+ if ((tmo + tmp + 1) < tmp)
+ /* if setting this forward will roll time stamp
+ * reset "advancing" timestamp to 0
+ * set lastdec value
+ */
+ reset_timer_masked ();
else
- tmo += tmp; /* else, set advancing stamp wake up time */
+ /* else, set advancing stamp wake up time */
+ tmo += tmp;
while (get_timer_masked () < tmo)/* loop till event */
/*NOP*/;
@@ -113,14 +119,17 @@ ulong get_timer_masked (void)
{
ulong now = READ_TIMER; /* current tick value */
- if (lastdec >= now) { /* normal mode (non roll) */
- /* normal mode */
- timestamp += lastdec - now; /* move stamp fordward with absoulte diff
ticks */
- } else { /* we have overflow of the count down timer */
+ if (lastdec >= now) {
+ /* normal mode (non roll) */
+ /* move stamp forward with absolute diff ticks */
+ timestamp += lastdec - now;
+ } else {
+ /* we have overflow of the count down timer */
/* nts = ts + ld + (TLV - now)
* ts=old stamp, ld=time that passed before passing through -1
* (TLV-now) amount of time after passing though -1
- * nts = new "advancing time stamp"...it could also roll and cause
problems.
+ * nts = new "advancing time stamp"
+ * ...it could also roll and cause problems.
*/
timestamp += lastdec + TIMER_LOAD_VAL - now;
}
@@ -136,11 +145,18 @@ void udelay_masked (unsigned long usec)
ulong endtime;
signed long diff;
- if (usec >= 1000) { /* if "big" number, spread normalization to
seconds */
- tmo = usec / 1000; /* start to normalize for usec to ticks per sec */
- tmo *= CFG_HZ; /* find number of "ticks" to wait to achieve target
*/
- tmo /= 1000; /* finish normalize. */
- } else { /* else small number, don't kill it prior to HZ multiply */
+ if (usec >= 1000) {
+ /* if "big" number, spread normalization to seconds */
+ /* start to normalize for usec to ticks per sec */
+ tmo = usec / 1000;
+ /* find number of "ticks" to wait to achieve target */
+ tmo *= CFG_HZ;
+ /* finish normalize. */
+ tmo /= 1000;
+ } else {
+ /* else small number,
+ * don't kill it prior to HZ multiply
+ */
tmo = usec * CFG_HZ;
tmo /= (1000*1000);
}
board/arm/versatile/Makefile renamed from board/versatile/Makefile +2 -2
@@ -25,8 +25,8 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a -COBJS := versatile.o flash.o -SOBJS := lowlevel_init.o +COBJS := versatile.o flash.o ../src.o +SOBJS := lowlevel_init.o ../asm.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS))
board/arm/versatile/config.mk renamed from board/versatile/config.mk +0 -0
board/arm/versatile/flash.c renamed from board/versatile/flash.c +0 -0
(quoted diff) +0 -0
b/board/arm/versatile/lowlevel_init.S
similarity index 100%
rename from board/versatile/lowlevel_init.S
rename to board/arm/versatile/lowlevel_init.S
(quoted diff) +0 -0
b/board/arm/versatile/split_by_variant.sh
similarity index 94%
rename from board/versatile/split_by_variant.sh
rename to board/arm/versatile/split_by_variant.sh
index ccded7e..1662946 100755
board/arm/versatile/split_by_variant.sh renamed from board/versatile/split_by_variant.sh +1 -2
@@ -25,7 +25,6 @@ else variant=AB926EJ-S ;; - *) echo "$0:: Unrecognised config - using versatilepb_config" echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
@@ -38,5 +37,5 @@ fi # --------------------------------------------------------- # Complete the configuration # --------------------------------------------------------- -$MKCONFIG -a versatile arm arm926ejs versatile NULL versatile +$MKCONFIG -a versatile arm arm926ejs versatile arm NULL echo "Variant:: $variant"
board/arm/versatile/u-boot.lds renamed from board/versatile/u-boot.lds +0 -0
(quoted diff) +0 -0
b/board/arm/versatile/versatile.c
similarity index 100%
rename from board/versatile/versatile.c
rename to board/arm/versatile/versatile.c
(quoted diff) +0 -0
b/cpu/arm926ejs/versatile/Makefile
deleted file mode 100644
index c335d5c..0000000
cpu/arm926ejs/versatile/Makefile deleted +0 -47
47 lines not on this page · raw message
cpu/arm_unknown/Makefile renamed from cpu/arm_intcm/Makefile +0 -0
cpu/arm_unknown/config.mk renamed from cpu/arm_intcm/config.mk +0 -0
cpu/arm_unknown/cpu.c renamed from cpu/arm_intcm/cpu.c +0 -0
cpu/arm_unknown/start.S renamed from cpu/arm_intcm/start.S +0 -0
---
PATCH 1/1 Move ARM supplied dev boards to new board/arm directory
Quoted 28 lines · Peter Pearse
Completely replaces the patch
[PATCH][ARM] Move ARM supplied dev boards to new board/armltd directory submitted Tue, 18 Mar 2008.This patch will allow code common to all ARM supplied development boards to be shared.
This patch is also available for test from
Makefile +0
-0@$(MKCONFIG) $(@:_config=) arm arm925t voiceblueboard/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +1
-1@@ -1,15 +1,7 @@ /* - * armboot - Startup Code for ARM926EJS CPU-core + * asm.S - Assembler code common to development boards supplied by ARMLtd.
*
- * Copyright (c) 2003 Texas Instruments
- *
- * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
- *
Quoted 6 lines
- * Copyright (c) 2001 Marius Gr?ger <[email protected]> - * Copyright (c) 2002 Alex Z?pke <[email protected]> - * Copyright (c) 2002 Gary Jennejohn <[email protected]> - * Copyright (c) 2003 Richard Woodruff <[email protected]> - * Copyright (c) 2003 Kshitij <[email protected]> + * Copyright (c) 2008 ARM Ltd.
Personaly I'll prefer you do not remove the copyright
Quoted 28 lines
*
* See file CREDITS for list of people who contributed to this
* project.board/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +4
-0@@ -30,16 +22,15 @@ * MA 02111-1307 USA */ +/* + * Whilst some cores and/or core modules may provide explicit + * software reset, these are not used because they may have unwanted + * side effects. For U-Boot's purposes calling the reset vectorsuffices.
+ * If necessary, we could set some registers, update the MMU, etc.
+ */board/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +2
-8+ .align 5 .globl reset_cpu reset_cpu: - ldr r1, rstctl1 /* get clkm1 reset ctl */ - mov r3, #0x0 - strh r3, [r1] /* clear it */ - mov r3, #0x8 - strh r3, [r1] /* force dsp+arm reset */ -_loop_forever: - b _loop_forever + b 0 -rstctl1:
board/arm/asm.S
Quoted 10 lines
board/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +1
-9- .word 0xfffece10 - * Sysgo Real-Time Solutions, GmbH <www.elinos.com> - * Alex Zuepke <[email protected]> - * - * (C) Copyright 2002-2004 - * Gary Jennejohn, DENX Software Engineering, <[email protected]> - * - * (C) Copyright 2004 - * Philippe Robin, ARM Ltd. <[email protected]> + * Copyright (c) 2008 ARM Ltd.
Personaly I'll prefer you do not remove the copyright
board/arm/asm.S line 17
Quoted 10 lines
*
* See file CREDITS for list of people who contributed to this
* project.board/arm/asm.S renamed from cpu/arm926ejs/versatile/reset.S +1
-1@@ -26,7 +13,7 @@ * * 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 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the static ulong lastdec;
BTW your patch is wrapped by your email client
Best Regards,
J.
PATCH 1/1 Move ARM supplied dev boards to new board/arm directory
Quoted 16 lines · In message <[email protected]> you wrote:
Quoted 10 lines
/*
- * armboot - Startup Code for ARM926EJS CPU-core
+ *asm.S- Assembler code common to development boards supplied by ARM Ltd.
*
- * Copyright (c) 2003 Texas Instruments
- *
- * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
- *Quoted 6 lines
- * Copyright (c) 2001 Marius Gr=F6ger <[email protected]> - * Copyright (c) 2002 Alex Z=FCpke <[email protected]> - * Copyright (c) 2002 Gary Jennejohn <[email protected]> - * Copyright (c) 2003 Richard Woodruff <[email protected]> - * Copyright (c) 2003 Kshitij <[email protected]> + * Copyright (c) 2008 ARM Ltd.
Quoted 1 line
Personaly I'll prefer you do not remove the copyright
This is not a matter of preferences.
Removing copyright entries is a strict TABU.
Never, never ever do that!
Best regards,
Wolfgang Denk
Signature · 5 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 Death, when unnecessary, is a tragic thing. -- Flint, "Requiem for Methuselah", stardate 5843.7
PATCH 1/1 Move ARM supplied dev boards to new board/arm directory
Quoted 33 lines
-----Original Message-----
From: wd at denx.de [mailto:wd at denx.de]
Sent: 19 March 2008 20:16
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Peter Pearse; U-Boot-Users
Subject: Re: [U-Boot-Users] [PATCH] [ARM] [RESUBMIT] Move ARM supplied dev boards to new board/arm directoryQuoted 4 lines · In message <[email protected]> you wrote:
Quoted 4 lines
/*
- * armboot - Startup Code for ARM926EJS CPU-core
+ *asm.S- Assembler code common to development boardssupplied by
Quoted 13 lines
Quoted 7 lines
+ ARM
Ltd.
*
- * Copyright (c) 2003 Texas Instruments
- *
- * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------
- *Quoted 6 lines
- * Copyright (c) 2001 Marius Gr=F6ger <[email protected]> - * Copyright (c) 2002 Alex Z=FCpke <[email protected]> - * Copyright (c) 2002 Gary Jennejohn <[email protected]> - * Copyright (c) 2003 Richard Woodruff <[email protected]> - * Copyright (c) 2003 Kshitij <[email protected]> + * Copyright (c) 2008 ARM Ltd.Quoted 1 line
Personaly I'll prefer you do not remove the copyright
This is not a matter of preferences.
Quoted 8 lines
Removing copyright entries is a strict TABU.
Never, never ever do that!
Best regards,
Wolfgang Denk
I wouldn't remove copyright intentionally.
Here git -M has decided that a new file
board/arm/arm.S
is actually a modified old file
cpu/arm926ejs/versatile/reset.S
Since the new file contained different code, I removed the old copyright lines and added a new one.
Perhaps a git guru can suggest how I avoid this in future, other than inspecting every patch and modifying by hand.
(Although I'll do that if necessary)
----------------reset.S code:
.align 5 .globl reset_cpu reset_cpu: ldr r1, rstctl1 /* get clkm1 reset ctl */ mov r3, #0x0 strh r3, [r1] /* clear it */ mov r3, #0x8 strh r3, [r1] /* force dsp+arm reset */
_loop_forever:
b _loop_forever
rstctl1:
.word 0xfffece10
----------------board/arm/asm.S
.align 5 .globl reset_cpu reset_cpu: b 0
----------------
Regards
Peter
PATCH 1/1 Move ARM supplied dev boards to new board/arm directory
Quoted 7 lines · Peter Pearse
Here git -M has decided that a new file
board/arm/arm.Sis actually a modified old file
cpu/arm926ejs/versatile/reset.S
Eh, don't worry about that. Git is just using a heuristic to guess where that file might have come from, as enabled by the -M flag. There's no problem if git gets it wrong, as the important fact is that the _content_ of the files are still intact and correct. Identifying a copy or a move is purely a secondary side effect for the purpose of exposing smaller change-sets to the users here.
jdl