1bfe18815SJohn Schmoller /* 2bfe18815SJohn Schmoller * Copyright 2010 Extreme Engineering Solutions, Inc. 3bfe18815SJohn Schmoller * Copyright 2008 Freescale Semiconductor, Inc. 4bfe18815SJohn Schmoller * 5bfe18815SJohn Schmoller * (C) Copyright 2000 6bfe18815SJohn Schmoller * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 7bfe18815SJohn Schmoller * 8*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 9bfe18815SJohn Schmoller */ 10bfe18815SJohn Schmoller 11bfe18815SJohn Schmoller #include <common.h> 12bfe18815SJohn Schmoller #include <asm/fsl_law.h> 13bfe18815SJohn Schmoller #include <asm/mmu.h> 14bfe18815SJohn Schmoller 15bfe18815SJohn Schmoller /* 16bfe18815SJohn Schmoller * Notes: 17bfe18815SJohn Schmoller * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window. 18bfe18815SJohn Schmoller * If flash is 8M at default position (last 8M), no LAW needed. 19bfe18815SJohn Schmoller */ 20bfe18815SJohn Schmoller 21bfe18815SJohn Schmoller struct law_entry law_table[] = { 22bfe18815SJohn Schmoller SET_LAW(CONFIG_SYS_FLASH_BASE2, LAW_SIZE_256M, LAW_TRGT_IF_LBC), 23bfe18815SJohn Schmoller SET_LAW(CONFIG_SYS_NAND_BASE, LAW_SIZE_1M, LAW_TRGT_IF_LBC), 24bfe18815SJohn Schmoller }; 25bfe18815SJohn Schmoller 26bfe18815SJohn Schmoller int num_law_entries = ARRAY_SIZE(law_table); 27