blob: ec3bb8fe8061ba3972c14d3e413d174eb0fa1c38 [file] [log] [blame]
Niel Fouriedb7241d2021-01-21 13:19:20 +01001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2016 Keymile AG
4 * Rainer Boschung <rainer.boschung@keymile.com>
5 *
6 * Copyright 2013 Freescale Semiconductor, Inc.
7 */
8
9#include <config.h>
10#include <asm/fsl_law.h>
11
12struct law_entry law_table[] = {
Tom Rini6a5dccc2022-11-16 13:10:41 -050013 SET_LAW(CFG_SYS_BMAN_MEM_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_BMAN),
14 SET_LAW(CFG_SYS_QMAN_MEM_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_QMAN),
15 SET_LAW(CFG_SYS_DCSRBAR_PHYS, LAW_SIZE_4M, LAW_TRGT_IF_DCSR),
16 SET_LAW(CFG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_IFC),
Tom Rinib4213492022-11-12 17:36:51 -050017 SET_LAW(CFG_SYS_NAND_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_IFC),
Tom Rini6a5dccc2022-11-16 13:10:41 -050018 SET_LAW(CFG_SYS_QRIO_BASE_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_IFC),
Niel Fouriedb7241d2021-01-21 13:19:20 +010019 SET_LAW(SYS_LAWAPP_BASE_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_IFC),
20/* other application LAW are not used in u-boot */
21};
22
23int num_law_entries = ARRAY_SIZE(law_table);