Timur Tabi | c59e1b4 | 2010-06-14 15:28:24 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010 Freescale Semiconductor, Inc. |
| 3 | * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com> |
| 4 | * Timur Tabi <timur@freescale.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the Free |
| 8 | * Software Foundation; either version 2 of the License, or (at your option) |
| 9 | * any later version. |
| 10 | */ |
| 11 | |
| 12 | #include <common.h> |
| 13 | #include <asm/fsl_law.h> |
| 14 | #include <asm/mmu.h> |
| 15 | |
| 16 | struct law_entry law_table[] = { |
| 17 | SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC), |
| 18 | SET_LAW(PIXIS_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC), |
Matthew McClintock | f45210d | 2013-02-18 10:02:19 +0000 | [diff] [blame] | 19 | SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC), |
Timur Tabi | c59e1b4 | 2010-06-14 15:28:24 -0500 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | int num_law_entries = ARRAY_SIZE(law_table); |