1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright 2013-2015 Arcturus Networks, Inc. 3*4882a593Smuzhiyun * http://www.arcturusnetworks.com/products/ucp1020/ 4*4882a593Smuzhiyun * based on board/freescale/p1_p2_rdb_pc/spl.c 5*4882a593Smuzhiyun * original copyright follows: 6*4882a593Smuzhiyun * Copyright 2013 Freescale Semiconductor, Inc. 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * SPDX-License-Identifier: GPL-2.0+ 9*4882a593Smuzhiyun */ 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #include <common.h> 12*4882a593Smuzhiyun #include <asm/fsl_law.h> 13*4882a593Smuzhiyun #include <asm/mmu.h> 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun struct law_entry law_table[] = { 16*4882a593Smuzhiyun #ifdef CONFIG_VSC7385_ENET 17*4882a593Smuzhiyun SET_LAW(CONFIG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 18*4882a593Smuzhiyun #endif 19*4882a593Smuzhiyun SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC), 20*4882a593Smuzhiyun #ifdef CONFIG_SYS_NAND_BASE_PHYS 21*4882a593Smuzhiyun SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC), 22*4882a593Smuzhiyun #endif 23*4882a593Smuzhiyun }; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun int num_law_entries = ARRAY_SIZE(law_table); 26