]> git.sur5r.net Git - u-boot/blob - board/freescale/c29xpcie/law.c
powerpc/c29xpcie: add support for C29XPCIE board
[u-boot] / board / freescale / c29xpcie / law.c
1 /*
2  * Copyright 2013 Freescale Semiconductor, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the Free
6  * Software Foundation; either version 2 of the License, or (at your option)
7  * any later version.
8  */
9
10 #include <common.h>
11 #include <asm/fsl_law.h>
12 #include <asm/mmu.h>
13
14 struct law_entry law_table[] = {
15         SET_LAW(CONFIG_SYS_FLASH_BASE_PHYS, LAW_SIZE_64M, LAW_TRGT_IF_IFC),
16         SET_LAW(CONFIG_SYS_CPLD_BASE_PHYS, LAW_SIZE_4K, LAW_TRGT_IF_IFC),
17         SET_LAW(CONFIG_SYS_NAND_BASE_PHYS, LAW_SIZE_16K, LAW_TRGT_IF_IFC),
18         SET_LAW(CONFIG_SYS_PLATFORM_SRAM_BASE_PHYS, LAW_SIZE_512K,
19                                         LAW_TRGT_IF_PLATFORM_SRAM),
20 };
21
22 int num_law_entries = ARRAY_SIZE(law_table);