1 /* $Id: head.S,v 1.4 2004/11/01 16:10:28 starvik Exp $
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.
7 #include <asm/arch/hwregs/reg_map_asm.h>
8 #include <asm/arch/hwregs/config_defs_asm.h>
12 ;; Start clocks for used blocks.
13 move.d REG_ADDR(config, regi_config, rw_clk_ctrl), $r1
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
20 ;; Copy 68KB NAND flash to Internal RAM (if NAND boot)
21 move.d 0x38004000, $r10
24 move.d copy_complete, $r13
25 and.d 0x000fffff, $r13
28 #include "../../lib/nand_init.S"
31 move.d CONFIG_ETRAX_PTABLE_SECTOR, $r10
32 jump $r10 ; Jump to decompresser
36 move.d 0x38000000 + CONFIG_ETRAX_PTABLE_SECTOR, $r10
37 jump $r10 ; Jump to decompresser