uboot-mt623x/drivers
Mingkai Hu 9f3243612c ppc/85xx: add boot from NAND/eSDHC/eSPI support
The MPC8536E is capable of booting form NAND/eSDHC/eSPI, this patch
implements these three bootup methods in a unified way - all of these
use the general cpu/mpc85xx/start.S, and load the main image to L2SRAM
which lets us use the SPD to initialize the SDRAM.

For all three bootup methods, the bootup process can be divided into two
stages: the first stage will initialize the corresponding controller,
configure the L2SRAM, then copy the second stage image to L2SRAM and
jump to it. The second stage image is just like the general U-Boot image
to configure all the hardware and boot up to U-Boot command line.

When boot from NAND, the eLBC controller will first load the first stage
image to internal 4K RAM buffer because it's also stored on the NAND
flash. The first stage image, also call 4K NAND loader, will initialize
the L2SRAM, load the second stage image to L2SRAM and jump to it. The 4K
NAND loader's code comes from the corresponding nand_spl directory, along
with the code twisted by CONFIG_NAND_SPL.

When boot from eSDHC/eSPI, there's no such a first stage image because
the CPU ROM code does the same work. It will initialize the L2SRAM
according to the config addr/word pairs on the fixed address and
initialize the eSDHC/eSPI controller, then load the second stage image
to L2SRAM and jump to it.

The macro CONFIG_SYS_RAMBOOT is used to control the code to produce the
second stage image for all different bootup methods. It's set in the
board config file when one of the bootup methods above is selected.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2009-10-03 09:04:28 -05:00
..
bios_emulator Update Freescale copyrights to remove "All Rights Reserved" 2009-07-29 09:59:22 +02:00
block Misc SATA fixups 2009-10-03 09:04:10 -05:00
dma ColdFire: Fix compile warning messages 2009-08-26 03:44:31 -05:00
fpga fpga: Fix Spartan III FPGA booting 2009-02-21 22:52:44 +01:00
gpio Kirkwood: add Marvell Kirkwood gpio driver 2009-07-23 00:19:28 +02:00
hwmon Misc ds1722 fixups 2009-10-03 09:04:10 -05:00
i2c fsl_i2c: increase I2C timeout values and make them configurable 2009-10-03 09:04:15 -05:00
input License cleanup: remove unintended "All Rights Reserved" notices. 2009-10-03 09:04:13 -05:00
misc ppc/85xx: add boot from NAND/eSDHC/eSPI support 2009-10-03 09:04:28 -05:00
mmc Minor coding style cleanup. 2009-08-10 10:38:34 +02:00
mtd ppc4xx: Big cleanup of PPC4xx defines 2009-10-03 09:04:22 -05:00
net sk98lin: fix compile warnings 2009-10-03 09:04:23 -05:00
pci driver/fsl_pci: Add fsl_pci_init_port function to initialize a PCI controller 2009-08-28 17:12:43 -05:00
pcmcia Misc ti_pci1410a fixups 2009-10-03 09:04:10 -05:00
power OMAP3 Move twl4030 mmc function 2009-07-29 09:57:43 +02:00
qe UEC FIXED PHY: Determine fixed-phy port using UEC interface name. 2009-08-10 16:07:54 -07:00
rtc Add driver for the ST M41T94 SPI RTC 2009-08-25 12:57:55 +02:00
serial stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
spi Coldfire: Consolidate DSPI driver 2009-07-14 09:46:09 -05:00
twserial drivers/twserial: Add protocol driver for "three wire serial" interface. 2009-03-30 09:38:36 +02:00
usb usb: bugfix driver/usb/host/ehci-hcd.c function ehci_submit_root 2009-07-23 23:27:06 +02:00
video bus_vcxk.c: fix warning: unused variable 'lineptr' 2009-08-09 22:49:16 +02:00
watchdog at91sam9: add watchdog support 2009-04-04 20:42:19 +02:00