1
2
3
4
5
6
7
8#include <common.h>
9#include <asm/fsl_law.h>
10#include <asm/mmu.h>
11
12struct law_entry law_table[] = {
13 SET_LAW(CONFIG_SYS_LBC0_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_LBC),
14 SET_LAW(CONFIG_SYS_LBC1_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
15#ifdef CONFIG_SYS_BMAN_MEM_PHYS
16 SET_LAW(CONFIG_SYS_BMAN_MEM_PHYS, LAW_SIZE_2M, LAW_TRGT_IF_BMAN),
17#endif
18#ifdef CONFIG_SYS_QMAN_MEM_PHYS
19 SET_LAW(CONFIG_SYS_QMAN_MEM_PHYS, LAW_SIZE_2M, LAW_TRGT_IF_QMAN),
20#endif
21#ifdef CONFIG_SYS_DCSRBAR_PHYS
22
23 SET_LAW(CONFIG_SYS_DCSRBAR_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_DCSR),
24#endif
25};
26
27int num_law_entries = ARRAY_SIZE(law_table);
28