]> git.sur5r.net Git - u-boot/commitdiff
ARM64: zynqmp: Move kernel and fdt offsets and sizes to board config file
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 2 Nov 2015 14:15:35 +0000 (19:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Apr 2016 16:29:02 +0000 (18:29 +0200)
Move kernel and fdt offsets and sizes to board config file
as the flash size varies across boards

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h
include/configs/xilinx_zynqmp_ep.h

index 8cea61080d499adae7aef7bac4e55eed5971ff07..a60325517647d110637bea515f0ecd8179db8b5e 100644 (file)
        "kernel_addr=0x80000\0" \
        "fdt_addr=0x7000000\0" \
        "fdt_high=0x10000000\0" \
-       "kernel_size=0x2000000\0" \
-       "fdt_size=0x80000\0" \
+       CONFIG_KERNEL_FDT_OFST_SIZE \
        "sdbootdev=0\0"\
        "sdboot=mmc dev $sdbootdev && mmcinfo && load mmc $sdbootdev:$partid $fdt_addr system.dtb && " \
                "load mmc $sdbootdev:$partid $kernel_addr Image && " \
index aa58b62531d4b76d96aae9b6424af6794cb4c474..4a83eee6d0b84886d8e704c180b28e7f0bc3b894 100644 (file)
 
 #define COUNTER_FREQUENCY      4000000
 
+#define CONFIG_KERNEL_FDT_OFST_SIZE \
+       "kernel_offset=0x400000\0" \
+       "fdt_offset=0x2400000\0" \
+       "kernel_size=0x2000000\0" \
+       "fdt_size=0x80000\0" \
+       "board=ep108\0"
+
 #include <configs/xilinx_zynqmp.h>
 
 #endif /* __CONFIG_ZYNQMP_EP_H */