1031976f6SBecky Bruce /*
2031976f6SBecky Bruce  * Copyright 2008 Freescale Semiconductor, Inc.
3031976f6SBecky Bruce  *
4031976f6SBecky Bruce  * (C) Copyright 2000
5031976f6SBecky Bruce  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6031976f6SBecky Bruce  *
7031976f6SBecky Bruce  * See file CREDITS for list of people who contributed to this
8031976f6SBecky Bruce  * project.
9031976f6SBecky Bruce  *
10031976f6SBecky Bruce  * This program is free software; you can redistribute it and/or
11031976f6SBecky Bruce  * modify it under the terms of the GNU General Public License as
12031976f6SBecky Bruce  * published by the Free Software Foundation; either version 2 of
13031976f6SBecky Bruce  * the License, or (at your option) any later version.
14031976f6SBecky Bruce  *
15031976f6SBecky Bruce  * This program is distributed in the hope that it will be useful,
16031976f6SBecky Bruce  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17031976f6SBecky Bruce  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18031976f6SBecky Bruce  * GNU General Public License for more details.
19031976f6SBecky Bruce  *
20031976f6SBecky Bruce  * You should have received a copy of the GNU General Public License
21031976f6SBecky Bruce  * along with this program; if not, write to the Free Software
22031976f6SBecky Bruce  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23031976f6SBecky Bruce  * MA 02111-1307 USA
24031976f6SBecky Bruce  */
25031976f6SBecky Bruce 
26031976f6SBecky Bruce #include <common.h>
27031976f6SBecky Bruce #include <asm/fsl_law.h>
28031976f6SBecky Bruce #include <asm/mmu.h>
29031976f6SBecky Bruce 
30031976f6SBecky Bruce struct law_entry law_table[] = {
31031976f6SBecky Bruce #if !defined(CONFIG_SPD_EEPROM)
32*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
33031976f6SBecky Bruce #endif
34*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCIE1_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_1),
35*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCIE2_MEM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_PCIE_2),
36859a86a2SKumar Gala 	SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
37*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_1),
38*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCIE2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCIE_2),
39*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
40*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_PCI_1),
41*6d0f6bcfSJean-Christophe PLAGNIOL-VILLARD 	SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_1)
42031976f6SBecky Bruce };
43031976f6SBecky Bruce 
44031976f6SBecky Bruce int num_law_entries = ARRAY_SIZE(law_table);
45