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