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 | |
Tom Rini | dec7ea0 | 2024-05-20 13:35:03 -0600 | [diff] [blame] | 6 | #include <config.h> |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 7 | #include <asm/fsl_law.h> |
| 8 | #include <asm/mmu.h> |
| 9 | |
| 10 | struct law_entry law_table[] = { |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 11 | SET_LAW(CFG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 12 | #ifdef CONFIG_VSC7385_ENET |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 13 | SET_LAW(CFG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC), |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 14 | #endif |
Tom Rini | 6a5dccc | 2022-11-16 13:10:41 -0500 | [diff] [blame] | 15 | SET_LAW(CFG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC), |
Tom Rini | b421349 | 2022-11-12 17:36:51 -0500 | [diff] [blame] | 16 | #ifdef CFG_SYS_NAND_BASE_PHYS |
| 17 | SET_LAW(CFG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC), |
Kumar Gala | aff059e | 2011-11-11 08:14:53 -0600 | [diff] [blame] | 18 | #endif |
Li Yang | 5f99973 | 2011-07-26 09:50:46 -0500 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | int num_law_entries = ARRAY_SIZE(law_table); |