blob: 90ec39f744f4ea9662d5d20515077db06a07a841 [file] [log] [blame]
Li Yang5f999732011-07-26 09:50:46 -05001/*
2 * Copyright 2010-2011 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Li Yang5f999732011-07-26 09:50:46 -05005 */
6
7#include <common.h>
8#include <asm/fsl_law.h>
9#include <asm/mmu.h>
10
11struct law_entry law_table[] = {
Li Yang5f999732011-07-26 09:50:46 -050012 SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
13 SET_LAW(CONFIG_SYS_PMC_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_LBC),
Li Yang5f999732011-07-26 09:50:46 -050014#ifdef CONFIG_VSC7385_ENET
15 SET_LAW(CONFIG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
16#endif
Kumar Galaaff059e2011-11-11 08:14:53 -060017 SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC),
18#ifdef CONFIG_SYS_NAND_BASE_PHYS
Scott Wood5e621872012-10-02 19:35:18 -050019 SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC),
Kumar Galaaff059e2011-11-11 08:14:53 -060020#endif
Li Yang5f999732011-07-26 09:50:46 -050021};
22
23int num_law_entries = ARRAY_SIZE(law_table);