1*031976f6SBecky Bruce /*
2*031976f6SBecky Bruce  * Copyright 2008 Freescale Semiconductor, Inc.
3*031976f6SBecky Bruce  *
4*031976f6SBecky Bruce  * (C) Copyright 2000
5*031976f6SBecky Bruce  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6*031976f6SBecky Bruce  *
7*031976f6SBecky Bruce  * See file CREDITS for list of people who contributed to this
8*031976f6SBecky Bruce  * project.
9*031976f6SBecky Bruce  *
10*031976f6SBecky Bruce  * This program is free software; you can redistribute it and/or
11*031976f6SBecky Bruce  * modify it under the terms of the GNU General Public License as
12*031976f6SBecky Bruce  * published by the Free Software Foundation; either version 2 of
13*031976f6SBecky Bruce  * the License, or (at your option) any later version.
14*031976f6SBecky Bruce  *
15*031976f6SBecky Bruce  * This program is distributed in the hope that it will be useful,
16*031976f6SBecky Bruce  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*031976f6SBecky Bruce  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*031976f6SBecky Bruce  * GNU General Public License for more details.
19*031976f6SBecky Bruce  *
20*031976f6SBecky Bruce  * You should have received a copy of the GNU General Public License
21*031976f6SBecky Bruce  * along with this program; if not, write to the Free Software
22*031976f6SBecky Bruce  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23*031976f6SBecky Bruce  * MA 02111-1307 USA
24*031976f6SBecky Bruce  */
25*031976f6SBecky Bruce 
26*031976f6SBecky Bruce #include <common.h>
27*031976f6SBecky Bruce #include <asm/fsl_law.h>
28*031976f6SBecky Bruce #include <asm/mmu.h>
29*031976f6SBecky Bruce 
30*031976f6SBecky Bruce struct law_entry law_table[] = {
31*031976f6SBecky Bruce #if !defined(CONFIG_SPD_EEPROM)
32*031976f6SBecky Bruce 	SET_LAW_ENTRY(1, CFG_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
33*031976f6SBecky Bruce #endif
34*031976f6SBecky Bruce 	SET_LAW_ENTRY(2, CFG_PCIE1_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_1),
35*031976f6SBecky Bruce 	SET_LAW_ENTRY(3, CFG_PCIE2_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_2),
36*031976f6SBecky Bruce 	SET_LAW_ENTRY(4, PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
37*031976f6SBecky Bruce 	SET_LAW_ENTRY(5, CFG_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
38*031976f6SBecky Bruce 	SET_LAW_ENTRY(6, CFG_PCIE2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_2),
39*031976f6SBecky Bruce 	SET_LAW_ENTRY(7, CFG_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
40*031976f6SBecky Bruce 	SET_LAW_ENTRY(8, CFG_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI_1),
41*031976f6SBecky Bruce 	SET_LAW_ENTRY(9, CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_1)
42*031976f6SBecky Bruce };
43*031976f6SBecky Bruce 
44*031976f6SBecky Bruce int num_law_entries = ARRAY_SIZE(law_table);
45