blob: 5f4d713ca5694966a22ec601e1d24e46896e8b7a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Li Yang5f999732011-07-26 09:50:46 -05002/*
3 * Copyright 2010-2011 Freescale Semiconductor, Inc.
Li Yang5f999732011-07-26 09:50:46 -05004 */
5
6#include <common.h>
7#include <asm/fsl_law.h>
8#include <asm/mmu.h>
9
10struct law_entry law_table[] = {
Li Yang5f999732011-07-26 09:50:46 -050011 SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
12 SET_LAW(CONFIG_SYS_PMC_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_LBC),
Li Yang5f999732011-07-26 09:50:46 -050013#ifdef CONFIG_VSC7385_ENET
14 SET_LAW(CONFIG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
15#endif
Kumar Galaaff059e2011-11-11 08:14:53 -060016 SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC),
17#ifdef CONFIG_SYS_NAND_BASE_PHYS
Scott Wood5e621872012-10-02 19:35:18 -050018 SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC),
Kumar Galaaff059e2011-11-11 08:14:53 -060019#endif
Li Yang5f999732011-07-26 09:50:46 -050020};
21
22int num_law_entries = ARRAY_SIZE(law_table);