Peter Tyser | f3c970c | 2008-12-23 16:32:00 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2008 Extreme Engineering Solutions, Inc. |
| 3 | * Copyright 2008 Freescale Semiconductor, Inc. |
| 4 | * |
| 5 | * (C) Copyright 2000 |
| 6 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 7 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 8 | * SPDX-License-Identifier: GPL-2.0+ |
Peter Tyser | f3c970c | 2008-12-23 16:32:00 -0600 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include <common.h> |
| 12 | #include <asm/fsl_law.h> |
| 13 | #include <asm/mmu.h> |
| 14 | |
| 15 | /* |
| 16 | * Notes: |
| 17 | * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window. |
| 18 | * If flash is 8M at default position (last 8M), no LAW needed. |
| 19 | */ |
| 20 | |
| 21 | struct law_entry law_table[] = { |
| 22 | /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */ |
| 23 | SET_LAW(CONFIG_SYS_FLASH_BASE2, LAW_SIZE_256M, LAW_TRGT_IF_LBC), |
| 24 | SET_LAW(CONFIG_SYS_NAND_BASE, LAW_SIZE_1M, LAW_TRGT_IF_LBC), |
Peter Tyser | f3c970c | 2008-12-23 16:32:00 -0600 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | int num_law_entries = ARRAY_SIZE(law_table); |