more verbose logging
[pandora-x-loader.git] / board / omap4430panda / platform.S
1 /*
2  * Board specific setup info
3  *
4  * (C) Copyright 2004-2006
5  * Texas Instruments, <www.ti.com>
6  * Richard Woodruff <r-woodruff2@ti.com>
7  *
8  * See file CREDITS for list of people who contributed to this
9  * project.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License as
13  * published by the Free Software Foundation; either version 2 of
14  * the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24  * MA 02111-1307 USA
25  */
26
27 #include <config.h>
28 #include <asm/arch/cpu.h>
29 #include <asm/arch/mem.h>
30 #include <asm/arch/clocks.h>
31
32 _TEXT_BASE:
33         .word   TEXT_BASE       /* sdram load addr from config.mk */
34
35 .globl lowlevel_init
36 lowlevel_init:
37         ldr     sp,     SRAM_STACK
38         str     ip,     [sp]    /* stash old link register */
39         mov     ip,     lr      /* save link reg across call */
40         bl      s_init          /* go setup pll,mux,memory */
41         ldr     ip,     [sp]    /* restore save ip */
42         mov     lr,     ip      /* restore link reg */
43
44         /* back to arch calling code */
45         mov     pc,     lr
46
47         /* the literal pools origin */
48         .ltorg
49
50 SRAM_STACK:
51         .word LOW_LEVEL_SRAM_STACK