blob: 7bf5e6815d7b118c7ff6bbcf45595617deb32e4c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Becky Bruce031976f2008-01-23 16:31:02 -06002/*
Kumar Galab8526212010-12-17 10:42:33 -06003 * Copyright 2008,2010 Freescale Semiconductor, Inc.
Becky Bruce031976f2008-01-23 16:31:02 -06004 *
5 * (C) Copyright 2000
6 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Becky Bruce031976f2008-01-23 16:31:02 -06007 */
8
9#include <common.h>
10#include <asm/fsl_law.h>
11#include <asm/mmu.h>
12
13struct law_entry law_table[] = {
14#if !defined(CONFIG_SPD_EEPROM)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020015 SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
Becky Bruce031976f2008-01-23 16:31:02 -060016#endif
Kumar Gala859a86a2008-06-11 00:51:45 -050017 SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020018 SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
Becky Bruce031976f2008-01-23 16:31:02 -060019};
20
21int num_law_entries = ARRAY_SIZE(law_table);