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