2 * (C) Copyright 2006 Embedded Artists AB <www.embeddedartists.com>
4 * Slight modifications made to support the SMN42 board from Siemens.
5 * 2007 Gary Jennejohn garyj@denx.de
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include <asm/arch/hardware.h>
27 /* some parameters for the board */
28 /* setting up the CPU-internal memory */
29 #define SRAM_START 0x40000000
30 #define SRAM_SIZE 0x00004000
31 #define BCFG0_VALUE 0x1000ffef
32 #define BCFG1_VALUE 0x10005D2F
33 #define BCFG2_VALUE 0x10005D2F
35 * For P0.18 to set ZZ to the SRAMs to 1. Also set P0.2 (SCL) and P0.3 (SDA)
36 * for the bit-banger I2C driver correctly.
38 #define IO0_VALUE 0x4000C
75 /* set up memory control register for bank 0 */
80 /* set up memory control register for bank 1 */
85 /* set up memory control register for bank 2 */
90 /* set IO0DIR to make P0.2, P0.3 and P0.18 outputs */
100 /* set up PINSEL2 for bus-pins */
104 ldr r3, PINSEL2_VALUE
109 /* move vectors to beginning of SRAM */
111 mov r0, #0 /*_start*/
112 ldmneia r0!, {r3-r10}
113 stmneia r2!, {r3-r10}
117 /* Set-up MEMMAP register, so vectors are taken from SRAM */
119 mov r1, #0x02 /* vectors re-mapped to static RAM */
122 /* everything is fine now */