diff options
author | wdenk <wdenk> | 2005-04-04 12:44:11 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2005-04-04 12:44:11 +0000 |
commit | 8aa1a2d115420b1eb126f69f3547b54d275c3228 (patch) | |
tree | 9167bf91193bcd6b15696a97180df29bc1524c83 /cpu | |
parent | 986ef4340e73c6912a26e0c165c9966ab98618d4 (diff) |
Patch by Steven Scholz, 4 Apr 2005:
- remove all references to CONFIG_INIT_CRITICAL for ARM based boards
- introduce two new configuration options instead:
CONFIG_SKIP_LOWLEVEL_INIT and CONFIG_SKIP_RELOCATE_UBOOT
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm1136/start.S | 4 | ||||
-rw-r--r-- | cpu/arm720t/start.S | 5 | ||||
-rw-r--r-- | cpu/arm920t/start.S | 4 | ||||
-rw-r--r-- | cpu/arm925t/start.S | 4 | ||||
-rw-r--r-- | cpu/arm926ejs/start.S | 4 | ||||
-rw-r--r-- | cpu/at91rm9200/lowlevel.S | 4 | ||||
-rw-r--r-- | cpu/at91rm9200/start.S | 10 | ||||
-rw-r--r-- | cpu/ixp/start.S | 2 | ||||
-rw-r--r-- | cpu/lh7a40x/start.S | 4 | ||||
-rw-r--r-- | cpu/pxa/start.S | 4 | ||||
-rw-r--r-- | cpu/s3c44b0/start.S | 4 | ||||
-rw-r--r-- | cpu/sa1100/start.S | 4 |
12 files changed, 39 insertions, 14 deletions
diff --git a/cpu/arm1136/start.S b/cpu/arm1136/start.S index 27fcc89cc90..c3bf6e37e1c 100644 --- a/cpu/arm1136/start.S +++ b/cpu/arm1136/start.S @@ -129,8 +129,11 @@ next: bl cpy_clk_code /* put dpll adjust code behind vectors */ #endif /* the mask ROM code should have PLL and others stable */ +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit +#endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -147,6 +150,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/arm720t/start.S b/cpu/arm720t/start.S index 0e15965df6b..3695465e709 100644 --- a/cpu/arm720t/start.S +++ b/cpu/arm720t/start.S @@ -119,10 +119,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -150,6 +151,8 @@ copy_loop: cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ + /* Set up the stack */ stack_setup: ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ diff --git a/cpu/arm920t/start.S b/cpu/arm920t/start.S index a7cabf8f321..afe654b8cb4 100644 --- a/cpu/arm920t/start.S +++ b/cpu/arm920t/start.S @@ -156,10 +156,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -176,6 +177,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/arm925t/start.S b/cpu/arm925t/start.S index f74064b97f6..238925936ea 100644 --- a/cpu/arm925t/start.S +++ b/cpu/arm925t/start.S @@ -164,10 +164,11 @@ poll1: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -184,6 +185,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/arm926ejs/start.S b/cpu/arm926ejs/start.S index cd728c5108a..d62940b0714 100644 --- a/cpu/arm926ejs/start.S +++ b/cpu/arm926ejs/start.S @@ -139,10 +139,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -159,6 +160,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/at91rm9200/lowlevel.S b/cpu/at91rm9200/lowlevel.S index 5521e5d3cce..05887adc0c4 100644 --- a/cpu/at91rm9200/lowlevel.S +++ b/cpu/at91rm9200/lowlevel.S @@ -30,7 +30,7 @@ #include <config.h> #include <version.h> -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT /* * some parameters for the board * @@ -197,4 +197,4 @@ SMRDATA1: .word SDRAM .word SDRAM_VAL /* SMRDATA1 is 176 bytes long */ -#endif /* CONFIG_INIT_CRITICAL */ +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ diff --git a/cpu/at91rm9200/start.S b/cpu/at91rm9200/start.S index 89a0aa5dcb0..62315fe1195 100644 --- a/cpu/at91rm9200/start.S +++ b/cpu/at91rm9200/start.S @@ -115,7 +115,7 @@ reset: orr r0,r0,#0xd3 /* was 13 */ msr cpsr,r0 -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT /* scratch stack */ /**** ldr r1, =0x00204000 ****/ /* Insure word alignment */ @@ -141,7 +141,7 @@ reset: orr r0, r0, #0x00001000 @ set bit 12 (I) I-Cache orr r0, r0, #0xC0000000 @ set bits 31:30 (iA, nF) mcr p15, 0, r0, c1, c0, 0 @ write r0 in cp15 control register (cp15 r1) -#endif /* CONFIG_INIT_CRITICAL */ +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ /* * relocate exeception table */ @@ -158,9 +158,11 @@ copyex: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -177,7 +179,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop -#endif /* CONFIG_INIT_CRITICAL */ +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/ixp/start.S b/cpu/ixp/start.S index 3b3c868fe09..2726f659788 100644 --- a/cpu/ixp/start.S +++ b/cpu/ixp/start.S @@ -261,6 +261,7 @@ reset: orr r0,r0,#0x13 msr cpsr,r0 +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -277,6 +278,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/lh7a40x/start.S b/cpu/lh7a40x/start.S index 5dca77363f9..fb748cffc63 100644 --- a/cpu/lh7a40x/start.S +++ b/cpu/lh7a40x/start.S @@ -145,10 +145,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -166,6 +167,7 @@ copy_loop: cmp r0, r2 /* until source end addreee [r2] */ blt copy_loop /* a 'ble' here actually copies */ /* four bytes of bss */ +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/pxa/start.S b/cpu/pxa/start.S index da753a18dac..a8cc0800b0c 100644 --- a/cpu/pxa/start.S +++ b/cpu/pxa/start.S @@ -108,10 +108,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit /* we do sys-critical inits */ #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -128,6 +129,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/s3c44b0/start.S b/cpu/s3c44b0/start.S index fc7f59228ad..7affe87b3a1 100644 --- a/cpu/s3c44b0/start.S +++ b/cpu/s3c44b0/start.S @@ -112,7 +112,7 @@ reset: * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit /* * before relocating, we have to setup RAM timing @@ -122,6 +122,7 @@ reset: bl lowlevel_init #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -151,6 +152,7 @@ vector_copy_loop: stmia r1!, {r3-r10} cmp r0, r2 ble vector_copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: diff --git a/cpu/sa1100/start.S b/cpu/sa1100/start.S index 08e41c7d793..431ee656e8d 100644 --- a/cpu/sa1100/start.S +++ b/cpu/sa1100/start.S @@ -121,10 +121,11 @@ reset: * we do sys-critical inits only at reboot, * not when booting from ram! */ -#ifdef CONFIG_INIT_CRITICAL +#ifndef CONFIG_SKIP_LOWLEVEL_INIT bl cpu_init_crit #endif +#ifndef CONFIG_SKIP_RELOCATE_UBOOT relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ @@ -141,6 +142,7 @@ copy_loop: stmia r1!, {r3-r10} /* copy to target address [r1] */ cmp r0, r2 /* until source end addreee [r2] */ ble copy_loop +#endif /* CONFIG_SKIP_RELOCATE_UBOOT */ /* Set up the stack */ stack_setup: |