mmc: move DesignWare-based drivers to Kconfig
[oweals/u-boot.git] / board / varisys / cyrus / law.c
1 /*
2  * Author: Adrian Cox
3  * Based on corenet_ds law files.
4  *
5  * SPDX-License-Identifier:    GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <asm/fsl_law.h>
10 #include <asm/mmu.h>
11
12 struct 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         /* Limit DCSR to 32M to access NPC Trace Buffer */
23         SET_LAW(CONFIG_SYS_DCSRBAR_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_DCSR),
24 #endif
25 };
26
27 int num_law_entries = ARRAY_SIZE(law_table);