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