]> git.ipfire.org Git - people/ms/u-boot.git/blame - board/freescale/common/p_corenet/law.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / freescale / common / p_corenet / law.c
CommitLineData
d1712369 1/*
e02aea61 2 * Copyright 2008-2011 Freescale Semiconductor, Inc.
d1712369
KG
3 *
4 * (C) Copyright 2000
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
d1712369
KG
8 */
9
10#include <common.h>
11#include <asm/fsl_law.h>
12#include <asm/mmu.h>
13
14struct law_entry law_table[] = {
15 SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
be1ff615 16#ifdef CONFIG_SYS_BMAN_MEM_PHYS
d1712369 17 SET_LAW(CONFIG_SYS_BMAN_MEM_PHYS, LAW_SIZE_2M, LAW_TRGT_IF_BMAN),
be1ff615
KG
18#endif
19#ifdef CONFIG_SYS_QMAN_MEM_PHYS
d1712369 20 SET_LAW(CONFIG_SYS_QMAN_MEM_PHYS, LAW_SIZE_2M, LAW_TRGT_IF_QMAN),
be1ff615 21#endif
f8bc7bb5 22#ifdef PIXIS_BASE_PHYS
d1712369 23 SET_LAW(PIXIS_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
f8bc7bb5
KG
24#endif
25#ifdef CPLD_BASE_PHYS
26 SET_LAW(CPLD_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
27#endif
d1712369 28#ifdef CONFIG_SYS_DCSRBAR_PHYS
f110fe94
SG
29 /* Limit DCSR to 32M to access NPC Trace Buffer */
30 SET_LAW(CONFIG_SYS_DCSRBAR_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_DCSR),
d1712369 31#endif
e02aea61
KG
32#ifdef CONFIG_SYS_NAND_BASE_PHYS
33 SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
34#endif
d1712369
KG
35};
36
37int num_law_entries = ARRAY_SIZE(law_table);