From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philip Balister Date: Wed, 17 Apr 2019 13:46:29 -0400 Subject: [U-Boot] [PATCH 3/4] zynq_minized: Add configuration header file for board specific environment. In-Reply-To: <20190417174630.7867-1-philip@opensdr.com> References: <20190417174630.7867-1-philip@opensdr.com> Message-ID: <20190417174630.7867-3-philip@opensdr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Philip Balister --- include/configs/zynq_minized.h | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 include/configs/zynq_minized.h diff --git a/include/configs/zynq_minized.h b/include/configs/zynq_minized.h new file mode 100644 index 0000000000..6d89e3da29 --- /dev/null +++ b/include/configs/zynq_minized.h @@ -0,0 +1,54 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2019 Philip Balister . + * + * Configuration settings for the MiniZed board + * See zynq-common.h for Zynq common configs + */ + +#ifndef __CONFIG_ZYNQ_MINIZED_H +#define __CONFIG_ZYNQ_MINIZED_H + +#define CONFIG_EXTRA_ENV_SETTINGS \ + "fit_image=fitImage\0" \ + "bit_file=fpga.bit\0" \ + "load_addr=0x2000000\0" \ + "fit_size=0x800000\0" \ + "flash_off=0x100000\0" \ + "nor_flash_off=0xE2100000\0" \ + "fdt_high=0x20000000\0" \ + "initrd_high=0x20000000\0" \ + "loadbootenv_addr=0x2000000\0" \ + "fdt_addr_r=0x1f00000\0" \ + "kernel_addr_r=0x2000000\0" \ + "ramdisk_addr_r=0x3100000\0" \ + "bootenv=uEnv.txt\0" \ + "bootenv_dev=mmc\0" \ + "qspiboot=echo Copying FIT from QSPI to RAM... (Not Yet) \0" \ + "mmcboot= " \ + "echo Copying fpga.bit from MMC and loading FPGA... && " \ + "load mmc 0:1 ${load_addr} /boot/${bit_file} && " \ + "fpga loadb 0 ${load_addr} ${filesize} && " \ + "echo Copying FIT from MMC to RAM... && " \ + "load mmc 0:1 ${load_addr} /boot/${fit_image} && " \ + "setenv bootargs root=/dev/mmcblk1p1 rootwait && " \ + "bootm ${load_addr}\0" \ + "usbboot=if usb start; then " \ + "echo Copying fpga.bit from USB and loading FPGA... && " \ + "load usb 0 ${load_addr} /boot/${bit_file} && " \ + "fpga loadb 0 ${load_addr} ${filesize} && " \ + "echo Copying FIT from USB to RAM... && " \ + "load usb 0 ${load_addr} /boot/${fit_image} && " \ + "setenv bootargs root=/dev/sda1 rootwait && " \ + "bootm ${load_addr}; fi\0" \ + "usbrecover=if usb start; then " \ + "echo Copying fpga.bit from USB and loading FPGA... && " \ + "load usb 0 ${load_addr} ${bit_file} && " \ + "fpga loadb 0 ${load_addr} ${filesize} && " \ + "echo Copying FIT from USB to RAM... && " \ + "load usb 0 ${load_addr} ${fit_image} && " \ + "bootm ${load_addr}; fi\0" + +#include + +#endif /* __CONFIG_ZYNQ_MINIZED_H */ -- 2.20.1