xref: /rk3399_rockchip-uboot/board/freescale/p1010rdb/law.c (revision ad89da0c33f8d9f5a4e28974ad594ff679a74e8c)
149249e13SPoonam Aggrwal /*
249249e13SPoonam Aggrwal  * Copyright 2010-2011 Freescale Semiconductor, Inc.
349249e13SPoonam Aggrwal  *
4*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
549249e13SPoonam Aggrwal  */
649249e13SPoonam Aggrwal 
749249e13SPoonam Aggrwal #include <common.h>
849249e13SPoonam Aggrwal #include <asm/fsl_law.h>
949249e13SPoonam Aggrwal #include <asm/mmu.h>
1049249e13SPoonam Aggrwal 
1149249e13SPoonam Aggrwal struct law_entry law_table[] = {
1249249e13SPoonam Aggrwal 	SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_32M, LAW_TRGT_IF_IFC),
1349249e13SPoonam Aggrwal 	SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_128K, LAW_TRGT_IF_IFC),
1449249e13SPoonam Aggrwal 	SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_IFC),
1549249e13SPoonam Aggrwal };
1649249e13SPoonam Aggrwal 
1749249e13SPoonam Aggrwal int num_law_entries = ARRAY_SIZE(law_table);
18