blob: 079095d008394d4fdbc20b5f1909713fc303dfac [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Timur Tabi9b45b5a2010-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 Tabi9b45b5a2010-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 McClintockcd99caa2013-02-18 10:02:19 +000015 SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_32K, LAW_TRGT_IF_LBC),
Timur Tabi9b45b5a2010-06-14 15:28:24 -050016};
17
18int num_law_entries = ARRAY_SIZE(law_table);