blob: 3228a65e536ccc390285d276ad1b4bcad990cdf0 [file] [log] [blame]
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +02001/*
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
27tlbtab:
28tlbtab_start
29 /* SDRAM */
30tlbentry(XPAR_DDR2_SDRAM_MEM_BASEADDR, SZ_256M, CFG_SDRAM_BASE, 0,
31 AC_R | AC_W | AC_X | SA_G | SA_I)
32 /* UART */
33tlbentry(XPAR_UARTLITE_0_BASEADDR, SZ_64K, XPAR_UARTLITE_0_BASEADDR, 0,
34 AC_R | AC_W | SA_G | SA_I)
35 /* PIC */
36tlbentry(XPAR_INTC_0_BASEADDR, SZ_64K, XPAR_INTC_0_BASEADDR, 0,
37 AC_R | AC_W | SA_G | SA_I)
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +020038#ifdef XPAR_IIC_EEPROM_BASEADDR
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +020039 /* I2C */
40tlbentry(XPAR_IIC_EEPROM_BASEADDR, SZ_64K, XPAR_IIC_EEPROM_BASEADDR, 0,
41 AC_R | AC_W | SA_G | SA_I)
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +020042#endif
43#ifdef XPAR_LLTEMAC_0_BASEADDR
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +020044 /* Net */
45tlbentry(XPAR_LLTEMAC_0_BASEADDR, SZ_64K, XPAR_LLTEMAC_0_BASEADDR, 0,
46 AC_R | AC_W | SA_G | SA_I)
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +020047#endif
48#ifdef XPAR_FLASH_MEM0_BASEADDR
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +020049 /*Flash*/
50tlbentry(XPAR_FLASH_MEM0_BASEADDR, SZ_256M, XPAR_FLASH_MEM0_BASEADDR, 0,
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +020051 AC_R | AC_W | AC_X | SA_G | SA_I)
52#endif
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +020053tlbtab_end