ARM64: zynqmp: Move kernel and fdt offsets and sizes to board config file

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>
master
Siva Durga Prasad Paladugu 9 years ago committed by Michal Simek
parent 1e8d3830f3
commit 407b76f970
  1. 3
      include/configs/xilinx_zynqmp.h
  2. 7
      include/configs/xilinx_zynqmp_ep.h

@ -165,8 +165,7 @@
"kernel_addr=0x80000\0" \ "kernel_addr=0x80000\0" \
"fdt_addr=0x7000000\0" \ "fdt_addr=0x7000000\0" \
"fdt_high=0x10000000\0" \ "fdt_high=0x10000000\0" \
"kernel_size=0x2000000\0" \ CONFIG_KERNEL_FDT_OFST_SIZE \
"fdt_size=0x80000\0" \
"sdbootdev=0\0"\ "sdbootdev=0\0"\
"sdboot=mmc dev $sdbootdev && mmcinfo && load mmc $sdbootdev:$partid $fdt_addr system.dtb && " \ "sdboot=mmc dev $sdbootdev && mmcinfo && load mmc $sdbootdev:$partid $fdt_addr system.dtb && " \
"load mmc $sdbootdev:$partid $kernel_addr Image && " \ "load mmc $sdbootdev:$partid $kernel_addr Image && " \

@ -24,6 +24,13 @@
#define COUNTER_FREQUENCY 4000000 #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> #include <configs/xilinx_zynqmp.h>
#endif /* __CONFIG_ZYNQMP_EP_H */ #endif /* __CONFIG_ZYNQMP_EP_H */

Loading…
Cancel
Save