blob: 20b8fedf7a60a42cd9b44cd6a51c256447aef0b2 [file] [log] [blame]
Becky Bruce031976f2008-01-23 16:31:02 -06001/*
Kumar Galab8526212010-12-17 10:42:33 -06002 * Copyright 2008,2010 Freescale Semiconductor, Inc.
Becky Bruce031976f2008-01-23 16:31:02 -06003 *
4 * (C) Copyright 2000
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Becky Bruce031976f2008-01-23 16:31:02 -06008 */
9
10#include <common.h>
11#include <asm/fsl_law.h>
12#include <asm/mmu.h>
13
14struct law_entry law_table[] = {
15#if !defined(CONFIG_SPD_EEPROM)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020016 SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_512M, LAW_TRGT_IF_DDR_1),
Becky Bruce031976f2008-01-23 16:31:02 -060017#endif
Kumar Gala859a86a2008-06-11 00:51:45 -050018 SET_LAW(PIXIS_BASE, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020019 SET_LAW(CONFIG_SYS_FLASH_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
Becky Bruce031976f2008-01-23 16:31:02 -060020};
21
22int num_law_entries = ARRAY_SIZE(law_table);