public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] zynq_minized: Add configuration header file for board specific environment.
Date: Wed, 17 Apr 2019 13:46:29 -0400	[thread overview]
Message-ID: <20190417174630.7867-3-philip@opensdr.com> (raw)
In-Reply-To: <20190417174630.7867-1-philip@opensdr.com>

Signed-off-by: Philip Balister <philip@opensdr.com>
---
 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 <philip@balister.org>.
+ *
+ * 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 <configs/zynq-common.h>
+
+#endif /* __CONFIG_ZYNQ_MINIZED_H */
-- 
2.20.1

  parent reply	other threads:[~2019-04-17 17:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17 17:46 [U-Boot] [PATCH 1/4] mini-zed: Add ps7 files so SPL works Philip Balister
2019-04-17 17:46 ` [U-Boot] [PATCH 2/4] mini-zed: Update mini-zed dts so we can use it for SPL Philip Balister
2019-04-25 21:28   ` Michal Simek
2019-04-26 13:18     ` Philip Balister
2019-04-27 13:17       ` Michal Simek
2019-04-17 17:46 ` Philip Balister [this message]
2019-04-25 21:30   ` [U-Boot] [PATCH 3/4] zynq_minized: Add configuration header file for board specific environment Michal Simek
2019-04-26 13:59     ` Philip Balister
2019-04-27 13:15       ` Michal Simek
2019-04-17 17:46 ` [U-Boot] [PATCH 4/4] Update defconfig for minized Philip Balister
2019-04-25 21:33   ` Michal Simek
2019-04-26 14:11     ` Philip Balister
2019-04-27 13:13       ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190417174630.7867-3-philip@opensdr.com \
    --to=philip@balister.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox