Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Becky Bruce | 031976f | 2008-01-23 16:31:02 -0600 | [diff] [blame] | 2 | /* |
Kumar Gala | b852621 | 2010-12-17 10:42:33 -0600 | [diff] [blame] | 3 | * Copyright 2008,2010 Freescale Semiconductor, Inc. |
Becky Bruce | 031976f | 2008-01-23 16:31:02 -0600 | [diff] [blame] | 4 | * |
| 5 | * (C) Copyright 2000 |
| 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Becky Bruce | 031976f | 2008-01-23 16:31:02 -0600 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <asm/fsl_law.h> |
| 11 | #include <asm/mmu.h> |
| 12 | |
| 13 | struct law_entry law_table[] = { |
| 14 | #if !defined(CONFIG_SPD_EEPROM) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 15 | SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1), |
Becky Bruce | 031976f | 2008-01-23 16:31:02 -0600 | [diff] [blame] | 16 | #endif |
Kumar Gala | 859a86a | 2008-06-11 00:51:45 -0500 | [diff] [blame] | 17 | SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC), |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 18 | SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC), |
Becky Bruce | 031976f | 2008-01-23 16:31:02 -0600 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | int num_law_entries = ARRAY_SIZE(law_table); |