]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq_common: Option to load bitstream from SD/MMC/eMMC
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Thu, 7 Mar 2013 11:24:02 +0000 (16:54 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 7 Mar 2013 12:00:01 +0000 (13:00 +0100)
This patch adds support to load bitstream from SD/MMC/eMMC cards
through $mmc_loadbit_fat env variable.

User should have a bitstream file named as 'system.bit.bin' on mmc
fat partition 0:0

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
include/configs/zynq_common.h

index 1e473c615273856fdea45e460252af2621b3bc60..768572d478e6679b7e8c7be642ae2d3bcda7fff7 100644 (file)
        "kernel_image=uImage\0" \
        "ramdisk_image=uramdisk.image.gz\0"     \
        "devicetree_image=devicetree.dtb\0"     \
+       "bitstream_image=system.bit.bin\0"      \
+       "loadbit_addr=0x100000\0"       \
        "kernel_size=0x500000\0"        \
        "devicetree_size=0x20000\0"     \
        "ramdisk_size=0x5E0000\0"       \
        "fdt_high=0x20000000\0" \
        "initrd_high=0x20000000\0"      \
+       "mmc_loadbit_fat=echo Loading bitstream from SD/MMC/eMMC to RAM.. && " \
+               "mmcinfo && " \
+               "fatload mmc 0 ${loadbit_addr} ${bitstream_image} && " \
+               "fpga load 0 ${loadbit_addr} ${filesize}\0" \
        "norboot=echo Copying Linux from NOR flash to RAM... && " \
                "cp 0xE2100000 0x3000000 ${kernel_size} && " \
                "cp 0xE2600000 0x2A00000 ${devicetree_size} && " \