law.c (794a5924972fc8073616e98a2668da4a5f9aea90) | law.c (6d0f6bcf337c5261c08fabe12982178c2c489d76) |
---|---|
1/* 2 * Copyright 2008 Freescale Semiconductor, Inc. 3 * 4 * (C) Copyright 2000 5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 6 * 7 * See file CREDITS for list of people who contributed to this 8 * project. --- 33 unchanged lines hidden (view full) --- 42 * 0xff80_0000 0xffff_ffff FLASH (boot bank) 8M 43 * 44 * Notes: 45 * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window. 46 * If flash is 8M at default position (last 8M), no LAW needed. 47 */ 48 49struct law_entry law_table[] = { | 1/* 2 * Copyright 2008 Freescale Semiconductor, Inc. 3 * 4 * (C) Copyright 2000 5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 6 * 7 * See file CREDITS for list of people who contributed to this 8 * project. --- 33 unchanged lines hidden (view full) --- 42 * 0xff80_0000 0xffff_ffff FLASH (boot bank) 8M 43 * 44 * Notes: 45 * CCSRBAR and L2-as-SRAM don't need a configured Local Access Window. 46 * If flash is 8M at default position (last 8M), no LAW needed. 47 */ 48 49struct law_entry law_table[] = { |
50 SET_LAW(CFG_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI), 51 SET_LAW(CFG_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2), 52 SET_LAW(CFG_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI), 53 SET_LAW(CFG_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2), | 50 SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI), 51 SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2), 52 SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI), 53 SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_1M, LAW_TRGT_IF_PCI_2), |
54 /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */ | 54 /* LBC window - maps 256M 0xf0000000 -> 0xffffffff */ |
55 SET_LAW(CFG_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC), | 55 SET_LAW(CONFIG_SYS_LBC_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_LBC), |
56}; 57 58int num_law_entries = ARRAY_SIZE(law_table); | 56}; 57 58int num_law_entries = ARRAY_SIZE(law_table); |