157072338SChunhe Lan /* 257072338SChunhe Lan * Copyright 2013 Freescale Semiconductor, Inc. 357072338SChunhe Lan * 4*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 557072338SChunhe Lan */ 657072338SChunhe Lan 757072338SChunhe Lan #include <common.h> 857072338SChunhe Lan #include <asm/fsl_law.h> 957072338SChunhe Lan #include <asm/mmu.h> 1057072338SChunhe Lan 1157072338SChunhe Lan struct law_entry law_table[] = { 1257072338SChunhe Lan SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 1357072338SChunhe Lan SET_LAW(CONFIG_SYS_QMAN_MEM_PHYS, LAW_SIZE_4M, 1457072338SChunhe Lan LAW_TRGT_IF_DPAA_SWP_SRAM), 1557072338SChunhe Lan SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC), 1657072338SChunhe Lan }; 1757072338SChunhe Lan 1857072338SChunhe Lan int num_law_entries = ARRAY_SIZE(law_table); 19