Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010-2011 Freescale Semiconductor, Inc. |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/fsl_law.h> |
| 9 | #include <asm/mmu.h> |
| 10 | |
| 11 | struct law_entry law_table[] = { |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 12 | 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 Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 14 | #ifdef CONFIG_VSC7385_ENET |
| 15 | SET_LAW(CONFIG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), |
| 16 | #endif |
Kumar Gala | aff059e | 2011-11-11 08:14:53 -0600 | [diff] [blame] | 17 | SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC), |
| 18 | #ifdef CONFIG_SYS_NAND_BASE_PHYS |
Scott Wood | 5e62187 | 2012-10-02 19:35:18 -0500 | [diff] [blame] | 19 | SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC), |
Kumar Gala | aff059e | 2011-11-11 08:14:53 -0600 | [diff] [blame] | 20 | #endif |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | int num_law_entries = ARRAY_SIZE(law_table); |