blob: f54d92933e7015ee4dcb34c4f0948ef816460ba3 [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)
38 /* I2C */
39tlbentry(XPAR_IIC_EEPROM_BASEADDR, SZ_64K, XPAR_IIC_EEPROM_BASEADDR, 0,
40 AC_R | AC_W | SA_G | SA_I)
41 /* Net */
42tlbentry(XPAR_LLTEMAC_0_BASEADDR, SZ_64K, XPAR_LLTEMAC_0_BASEADDR, 0,
43 AC_R | AC_W | SA_G | SA_I)
44 /*Flash*/
45tlbentry(XPAR_FLASH_MEM0_BASEADDR, SZ_256M, XPAR_FLASH_MEM0_BASEADDR, 0,
46 AC_R | AC_W | SA_G | SA_I)
47tlbtab_end