blob: 079095d008394d4fdbc20b5f1909713fc303dfac [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Timur Tabic59e1b42010-06-14 15:28:24 -05002/*
3 * Copyright 2010 Freescale Semiconductor, Inc.
4 * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
5 * Timur Tabi <timur@freescale.com>
Timur Tabic59e1b42010-06-14 15:28:24 -05006 */
7
8#include <common.h>
9#include <asm/fsl_law.h>
10#include <asm/mmu.h>
11
12struct law_entry law_table[] = {
13 SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_256M, LAW_TRGT_IF_LBC),
14 SET_LAW(PIXIS_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_LBC),
Matthew McClintockf45210d2013-02-18 10:02:19 +000015 SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC),
Timur Tabic59e1b42010-06-14 15:28:24 -050016};
17
18int num_law_entries = ARRAY_SIZE(law_table);