2 * Copyright 2010 Extreme Engineering Solutions, Inc.
3 * Copyright 2008 Freescale Semiconductor, Inc.
6 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 * SPDX-License-Identifier: GPL-2.0+
12 #include <asm/fsl_law.h>
17 * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window.
18 * If flash is 8M at default position (last 8M), no LAW needed.
21 struct law_entry law_table[] = {
22 SET_LAW(CONFIG_SYS_FLASH_BASE2, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
23 SET_LAW(CONFIG_SYS_NAND_BASE, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
26 int num_law_entries = ARRAY_SIZE(law_table);