blob: 49594070b836469ac7345ae4a456c4a55dd8dc2a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Li Yang5f999732011-07-26 09:50:46 -05002/*
3 * Copyright 2010-2011 Freescale Semiconductor, Inc.
Li Yang5f999732011-07-26 09:50:46 -05004 */
5
Tom Rinidec7ea02024-05-20 13:35:03 -06006#include <config.h>
Li Yang5f999732011-07-26 09:50:46 -05007#include <asm/fsl_law.h>
8#include <asm/mmu.h>
9
10struct law_entry law_table[] = {
Tom Rini6a5dccc2022-11-16 13:10:41 -050011 SET_LAW(CFG_SYS_CPLD_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
Li Yang5f999732011-07-26 09:50:46 -050012#ifdef CONFIG_VSC7385_ENET
Tom Rini6a5dccc2022-11-16 13:10:41 -050013 SET_LAW(CFG_SYS_VSC7385_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_LBC),
Li Yang5f999732011-07-26 09:50:46 -050014#endif
Tom Rini6a5dccc2022-11-16 13:10:41 -050015 SET_LAW(CFG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_LBC),
Tom Rinib4213492022-11-12 17:36:51 -050016#ifdef CFG_SYS_NAND_BASE_PHYS
17 SET_LAW(CFG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC),
Kumar Galaaff059e2011-11-11 08:14:53 -060018#endif
Li Yang5f999732011-07-26 09:50:46 -050019};
20
21int num_law_entries = ARRAY_SIZE(law_table);