Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[deliverable/linux.git] / arch / cris / arch-v32 / boot / rescue / head.S
1 /* $Id: head.S,v 1.4 2004/11/01 16:10:28 starvik Exp $
2 *
3 * This used to be the rescue code but now that is handled by the
4 * RedBoot based RFL instead. Nothing to see here, move along.
5 */
6
7 #include <asm/arch/hwregs/reg_map_asm.h>
8 #include <asm/arch/hwregs/config_defs_asm.h>
9
10 .text
11
12 ;; Start clocks for used blocks.
13 move.d REG_ADDR(config, regi_config, rw_clk_ctrl), $r1
14 move.d [$r1], $r0
15 or.d REG_STATE(config, rw_clk_ctrl, cpu, yes) | \
16 REG_STATE(config, rw_clk_ctrl, bif, yes) | \
17 REG_STATE(config, rw_clk_ctrl, fix_io, yes), $r0
18 move.d $r0, [$r1]
19
20 ;; Copy 68KB NAND flash to Internal RAM (if NAND boot)
21 move.d 0x38004000, $r10
22 move.d 0x8000, $r11
23 move.d 0x11000, $r12
24 move.d copy_complete, $r13
25 and.d 0x000fffff, $r13
26 or.d 0x38000000, $r13
27
28 #include "../../lib/nand_init.S"
29
30 ;; No NAND found
31 move.d CONFIG_ETRAX_PTABLE_SECTOR, $r10
32 jump $r10 ; Jump to decompresser
33 nop
34
35 copy_complete:
36 move.d 0x38000000 + CONFIG_ETRAX_PTABLE_SECTOR, $r10
37 jump $r10 ; Jump to decompresser
38 nop
This page took 0.034036 seconds and 6 git commands to generate.