uboot-mt623x/board/freescale
Mingkai Hu 9a1a0aedbb NAND boot: MPC8536DS support
MPC8536E can support booting from NAND flash which uses the
image u-boot-nand.bin. This image contains two parts: a 4K
NAND loader and a main U-Boot image. The former is appended
to the latter to produce u-boot-nand.bin. The 4K NAND loader
includes the corresponding nand_spl directory, along with the
code twisted by CONFIG_NAND_SPL. The main U-Boot image just
like a general U-Boot image except the parts that included by
CONFIG_SYS_RAMBOOT.

When power on, eLBC will automatically load from bank 0 the
4K NAND loader into the FCM buffer RAM where CPU can execute
the boot code directly. In the first stage, the NAND loader
copies itself to RAM or L2SRAM to free up the FCM buffer RAM,
then loads the main image from NAND flash to RAM or L2SRAM
and boot from it.

This patch implements the NAND loader to load the main image
into L2SRAM, so the main image can configure the RAM by using
SPD EEPROM. In the first stage, the NAND loader copies itself
to the second to last 4K address space, and uses the last 4K
address space as the initial RAM for stack.

Obviously, the size of L2SRAM shouldn't be less than the size
of the image used. If so, the workaround is to generate another
image that includes the code to configure the RAM by SPD and
load it to L2SRAM first, then relocate the main image to RAM
to boot up.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-09-30 08:42:06 -05:00
..
common fsl: sys_eeprom: Fix 'may be used uninitialized' warning 2009-09-08 09:10:03 -05: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 mpc5121ads: fix breakage introduced when reordering elpida_mddrc_config[] 2009-09-25 14:16:00 +02:00
mpc7448hpc2 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8260ads rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8266ads rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
mpc8313erdb NAND boot: change NAND loader's relocate SP to CONFIG param 2009-09-15 21:30:09 -05:00
mpc8315erdb mpc83xx: MPC8315ERDB: Use hwconfig for board type selection 2009-07-16 22:47:01 +02: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 mpc83xx: convert all remaining boards over to 83XX_GENERIC_PCI 2009-07-18 19:43:04 -05:00
mpc8360erdk 83xx: Replace CONFIG_ECC_INIT_VIA_DDRC references 2009-07-02 11:15:49 -05:00
mpc8536ds NAND boot: MPC8536DS support 2009-09-30 08:42:06 -05: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 ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8548cds ppc/8xxx: Refactor code to determine if PCI is enabled & agent/host 2009-09-08 09:10:07 -05: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 ppc/8xxx: Refactor code to determine if PCI is enabled & agent/host 2009-09-08 09:10:07 -05:00
mpc8569mds ppc/8xxx: Refactor code to determine if PCI is enabled & agent/host 2009-09-08 09:10:07 -05:00
mpc8572ds ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00
mpc8610hpcd mpc8610hpcd: Use common 86xx fdt fixup code 2009-09-24 12:05:25 -05:00
mpc8641hpcn ppc/8xxx: Refactor code to determine if PCI is enabled & agent/host 2009-09-08 09:10:07 -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
p1_p2_rdb ppc/85xx: 32bit DDR changes for P1020/P1011 2009-09-24 12:04:59 -05:00
p2020ds ppc/85xx: Clean up use of LAWAR defines 2009-09-24 12:04:58 -05:00