114aa71e6SLi Yang /* 214aa71e6SLi Yang * Copyright 2010-2011 Freescale Semiconductor, Inc. 314aa71e6SLi Yang * 414aa71e6SLi Yang * See file CREDITS for list of people who contributed to this 514aa71e6SLi Yang * project. 614aa71e6SLi Yang * 714aa71e6SLi Yang * This program is free software; you can redistribute it and/or 814aa71e6SLi Yang * modify it under the terms of the GNU General Public License as 914aa71e6SLi Yang * published by the Free Software Foundation; either version 2 of 1014aa71e6SLi Yang * the License, or (at your option) any later version. 1114aa71e6SLi Yang * 1214aa71e6SLi Yang * This program is distributed in the hope that it will be useful, 1314aa71e6SLi Yang * but WITHOUT ANY WARRANTY; without even the implied warranty of 1414aa71e6SLi Yang * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1514aa71e6SLi Yang * GNU General Public License for more details. 1614aa71e6SLi Yang * 1714aa71e6SLi Yang * You should have received a copy of the GNU General Public License 1814aa71e6SLi Yang * along with this program; if not, write to the Free Software 1914aa71e6SLi Yang * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2014aa71e6SLi Yang * MA 02111-1307 USA 2114aa71e6SLi Yang */ 2214aa71e6SLi Yang 2314aa71e6SLi Yang #include <common.h> 2414aa71e6SLi Yang #include <asm/fsl_law.h> 2514aa71e6SLi Yang #include <asm/mmu.h> 2614aa71e6SLi Yang 2714aa71e6SLi Yang struct law_entry law_table[] = { 28*4589728eSKumar Gala #ifndef CONFIG_NAND_SPL 2914aa71e6SLi Yang SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 3014aa71e6SLi Yang SET_LAW(CONFIG_SYS_PMC_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_LBC), 3114aa71e6SLi Yang #ifdef CONFIG_VSC7385_ENET 3214aa71e6SLi Yang SET_LAW(CONFIG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 3314aa71e6SLi Yang #endif 34*4589728eSKumar Gala #endif 35*4589728eSKumar Gala SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC), 36*4589728eSKumar Gala #ifdef CONFIG_SYS_NAND_BASE_PHYS 37*4589728eSKumar Gala SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 38*4589728eSKumar Gala #endif 3914aa71e6SLi Yang }; 4014aa71e6SLi Yang 4114aa71e6SLi Yang int num_law_entries = ARRAY_SIZE(law_table); 42