u-boot/arch/arm
Michal Simek e6a9ed04e7 ARM64: zynqmp: Add SPL support support
Support RAM and MMC boot mode in SPL also with SPL_FIT images.

In MMC boot mode two boot options are available:
1) Boot flow with ATF(EL3) and full U-Boot(EL2):
 aarch64-linux-gnu-objcopy -O binary bl31.elf bl31.bin
 mkimage -A arm64 -O linux -T kernel -C none -a 0xfffe5000 -e 0xfffe5000
 -d bl31.bin atf.ub
 cp spl/boot.bin <sdcard fat partition>
 cp atf.ub <sdcard fat partition>
 cp u-boot.bin <sdcard fat partition>

2) Boot flow with full U-Boot(EL3):
 cp spl/boot.bin <sdcard>
 cp u-boot*.img <sdcard>

3) emmc boot mode
 dd if=/dev/zero of=sd.img bs=1024 count=1024
 parted sd.img mktable msdos
 parted sd.img mkpart p fat32 0% 100%
 kpartx -a sd.img
 mkfs.vfat /dev/mapper/loop0p1
 mount /dev/mapper/loop0p1 /mnt/
 cp spl/boot.bin /mnt
 cp u-boot.img /mnt
 cp u-boot.bin /mnt
 cp atf.ub /mnt
 umount /dev/mapper/loop0p1
 kpartx -d sd.img
 cp sd.img /tftpboot/

 and program it via u-boot
 tftpb 10000 sd.img
 mmcinfo
 mmc write 10000 0 $filesize
 mmc rescan
 mmc part
 ls mmc 0

psu_init() function contains low level SoC setup generated for every HW
design by Xilinx design tools. xil_io.h is only supporting file to fix
all dependencies from tools. The same solution was used on Xilinx Zynq.

The patch also change CONFIG_SYS_INIT_SP_ADDR to the end of OCM which
stays at the same location all the time.
Bootrom expects starting address to be at 0xfffc0000 that's why this
address is SPL_TEXT_BASE.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2016-05-24 11:15:01 +02:00
..
cpu ARM64: zynqmp: Add SPL support support 2016-05-24 11:15:01 +02:00
dts ARM64: zynqmp: Add missing u-boot,dm-pre-reloc to DTSI 2016-05-24 11:15:01 +02:00
imx-common imx: imx-common: print i.MX 7 SoC names consistently 2016-05-17 17:52:20 +02:00
include ARM64: zynqmp: Add SPL support support 2016-05-24 11:15:01 +02:00
lib Change my mailaddress 2016-05-02 18:37:09 -04:00
mach-at91 Change my mailaddress 2016-05-02 18:37:09 -04:00
mach-bcm283x rpi: remove redundant board files 2016-04-11 20:48:23 -04:00
mach-davinci arm: Add support for LEGO MINDSTORMS EV3 2016-03-14 19:18:40 -04:00
mach-exynos Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mach-highbank ARM: highbank: move SoC sources to mach-highbank 2015-02-21 08:23:51 -05:00
mach-integrator integrator: switch to DM serial port 2015-08-12 20:47:49 -04:00
mach-keystone ARM: keystone2: Add missing privilege ID settings 2016-04-01 17:17:40 -04:00
mach-kirkwood configs: Re-sync with cmd/Kconfig 2016-04-25 15:09:47 -04:00
mach-mvebu configs: Re-sync with cmd/Kconfig 2016-04-25 15:09:47 -04:00
mach-orion5x Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mach-rockchip Revert "rockchip: rk3288: correct sdram setting" 2016-05-02 13:33:18 -04:00
mach-s5pc1xx arm: s5pc1xx: move SoC to mach-s5pc1xx 2015-11-30 17:17:01 +09:00
mach-snapdragon board: Add Qualcomm Dragonboard 410C support 2016-04-01 17:18:27 -04:00
mach-socfpga socfpga: fix broken build if CONFIG_ETH_DESIGNWARE disabled 2016-05-06 18:41:49 +02:00
mach-stm32 stm32: stm32f4: move flash driver to mtd driver location 2016-03-26 18:49:28 -04:00
mach-sunxi arm/arm64: Move barrier instructions into separate header 2016-05-12 11:13:03 -04:00
mach-tegra ARM: tegra: enable GPU node by compatible value 2016-05-04 13:31:03 -07:00
mach-uniphier Fix various typos, scattered over the code. 2016-05-05 21:39:26 -04:00
mach-versatile arm: Remove versatileab board 2015-09-11 15:01:25 -04:00
mach-zynq ARM: zynq: Call ps7_post_config() for SPL 2016-05-24 11:15:01 +02:00
thumb1/include/asm/proc-armv arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD 2015-11-10 15:03:48 +01:00
config.mk arm: clang: Update support slightly 2016-04-01 17:17:39 -04:00
Kconfig ARM64: zynqmp: Add SPL support support 2016-05-24 11:15:01 +02:00
Kconfig.debug arm: debug: add Kconfig entries for lowlevel debug 2014-10-26 22:23:12 +01:00
Makefile arm: Add support for Qualcomm Snapdragon family 2016-04-01 17:18:26 -04:00