Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
[platform/kernel/u-boot.git] / board / xilinx / ml507 / init.S
1 /*
2  *  (C) Copyright 2008
3  *  Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
4  *  This work has been supported by: QTechnology  http://qtec.com/
5  *
6  *  This program is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation, either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include <ppc_asm.tmpl>
21 #include <config.h>
22 #include <asm-ppc/mmu.h>
23
24 .section .bootpg,"ax"
25 .globl tlbtab
26
27 tlbtab:
28 tlbtab_start
29         /* SDRAM */
30 tlbentry(XPAR_DDR2_SDRAM_MEM_BASEADDR, SZ_256M, CFG_SDRAM_BASE, 0,
31          AC_R | AC_W | AC_X | SA_G | SA_I)
32         /* UART */
33 tlbentry(XPAR_UARTLITE_0_BASEADDR, SZ_64K, XPAR_UARTLITE_0_BASEADDR, 0,
34          AC_R | AC_W | SA_G | SA_I)
35         /* PIC */
36 tlbentry(XPAR_INTC_0_BASEADDR, SZ_64K, XPAR_INTC_0_BASEADDR, 0,
37          AC_R | AC_W | SA_G | SA_I)
38 #ifdef XPAR_IIC_EEPROM_BASEADDR
39         /* I2C */
40 tlbentry(XPAR_IIC_EEPROM_BASEADDR, SZ_64K, XPAR_IIC_EEPROM_BASEADDR, 0,
41          AC_R | AC_W | SA_G | SA_I)
42 #endif
43 #ifdef XPAR_LLTEMAC_0_BASEADDR
44         /* Net */
45 tlbentry(XPAR_LLTEMAC_0_BASEADDR, SZ_64K, XPAR_LLTEMAC_0_BASEADDR, 0,
46          AC_R | AC_W | SA_G | SA_I)
47 #endif
48 #ifdef XPAR_FLASH_MEM0_BASEADDR
49         /*Flash*/
50 tlbentry(XPAR_FLASH_MEM0_BASEADDR, SZ_256M, XPAR_FLASH_MEM0_BASEADDR, 0,
51          AC_R | AC_W | AC_X | SA_G | SA_I)
52 #endif
53 tlbtab_end