u-boot/board/freescale
Timur Tabi 9ff32d8ccf mpc86xx: set the DDR BATs after calculating true DDR size
After determining how much DDR is actually in the system, set DBAT0 and
IBAT0 accordingly.  This ensures that the CPU won't attempt to access
(via speculation) addresses outside of actual memory.

On 86xx systems, DBAT0 and IBAT0 (the BATs for DDR) are initialized to 2GB
and kept that way.  If the system has less than 2GB of memory (typical for
an MPC8610 HPCD), the CPU may attempt to access this memory during
speculation.  The zlib code is notorious for generating such memory reads,
and indeed on the MPC8610, uncompressing the Linux kernel causes a machine
check (without this patch).

Currently we are limited to power of two sized DDR since we only use a
single bat.  If a non-power of two size is used that is less than
CONFIG_MAX_MEM_MAPPED u-boot will crash.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-03-30 10:50:22 -05:00
..
common ppc/85xx: Add PIB/ATM support for MPC8569mds 2010-01-25 22:13:26 -06:00
m547xevb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m548xevb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5208evbe ColdFire: Add M5208EVB and MCF520x CPU support 2009-07-14 09:27:17 -05:00
m5235evb ColdFire: Remove platforms mii.c file 2008-11-03 09:45:58 -07:00
m5249evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5253demo Convert DM9000 driver for CONFIG_NET_MULTI 2009-06-15 00:13:55 -07:00
m5253evbe Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5271evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5272c3 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5275evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5282evb Small fix to m5282evb 2009-04-04 22:47:01 +02:00
m5329evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m5373evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m52277evb ColdFire: Add SBF support for M52277EVB 2008-11-03 09:45:58 -07:00
m53017evb Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
m54451evb ColdFire: Update for M54451EVB 2009-07-14 09:27:14 -05:00
m54455evb ColdFire: Remove platforms mii.c file 2008-11-03 09:45:58 -07:00
mpc832xemds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc837xemds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc837xerdb mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc5121ads 5xxx, fdt: move fdt_fixup_memory() to cpu.c file 2009-12-08 22:13:02 +01:00
mpc7448hpc2 ppc: Enable full relocation to RAM 2009-10-03 10:15:45 +02:00
mpc8260ads mpc8260: move FDT memory node fixup into common CPU code. 2009-11-22 23:16:28 +01:00
mpc8266ads rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8313erdb Generic udelay() with watchdog support 2009-12-05 01:08:53 +01:00
mpc8315erdb mpc83xx: Add NAND boot support for MPC8315E-RDB boards 2010-01-07 18:33:52 -06:00
mpc8323erdb rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8349emds mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc8349itx Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
mpc8360emds 83xx, uec: split enet_interface in two variables 2010-01-31 22:37:12 -08:00
mpc8360erdk 83xx: Replace CONFIG_ECC_INIT_VIA_DDRC references 2009-07-02 11:15:49 -05:00
mpc8536ds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8540ads ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8541cds 85xx: Move to a common linker script 2009-08-28 17:12:39 -05:00
mpc8544ds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8548cds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8555cds 85xx: Move to a common linker script 2009-08-28 17:12:39 -05:00
mpc8560ads ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8568mds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8569mds Nand boot: Add nand boot support for MPC8569mds board 2010-01-27 14:22:40 -06:00
mpc8572ds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
mpc8610hpcd mpc86xx: set the DDR BATs after calculating true DDR size 2010-03-30 10:50:22 -05:00
mpc8641hpcn mpc86xx: set the DDR BATs after calculating true DDR size 2010-03-30 10:50:22 -05:00
mx31ads Convert CS8900 Ethernet driver to CONFIG_NET_MULTI API 2009-08-25 13:35:54 -07:00
mx31pdk Convert SMC911X Ethernet driver to CONFIG_NET_MULTI API 2009-07-22 22:53:44 -07:00
mx51evk Prepare v2010.03-rc1 2010-03-12 23:06:04 +01:00
p1_p2_rdb PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00
p2020ds PCIe, USB: Replace 'end point' references with 'endpoint' 2010-01-17 23:06:44 +01:00