blob: 51217ccf05c283bf16f217a80008a54e2b525e81 [file] [log] [blame]
Pali Rohár6763ff82024-06-06 18:33:26 +02001// SPDX-License-Identifier: GPL-2.0+
2// (C) 2022 Pali Rohár <pali@kernel.org>
3
4#include <config.h>
5#include <asm/fsl_law.h>
6
7struct law_entry law_table[] = {
8 SET_LAW(CFG_SYS_FLASH_BASE_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_LBC),
9 SET_LAW(CFG_SYS_NAND_BASE_PHYS, LAW_SIZE_256K, LAW_TRGT_IF_LBC),
10 SET_LAW(CFG_SYS_CPLD_BASE_PHYS, LAW_SIZE_128K, LAW_TRGT_IF_LBC),
11};
12
13int num_law_entries = ARRAY_SIZE(law_table);