All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] ARM: zynq: Setup modeboot variable based on boot mode
Date: Fri, 16 Dec 2016 13:38:43 +0100	[thread overview]
Message-ID: <74268a45ebe5050ef966553afed5c45b863e4d03.1481891921.git.michal.simek@xilinx.com> (raw)
In-Reply-To: <628fdc6e96100103ca501323a8f9c098f3c532dc.1481891921.git.michal.simek@xilinx.com>

modeboot variable is used for saving inforation which bootmode
is used.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 board/xilinx/zynq/board.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 5cd9bbf711f7..6a3cbe0a0dc4 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -85,6 +85,12 @@ int board_init(void)
 int board_late_init(void)
 {
 	switch ((zynq_slcr_get_boot_mode()) & ZYNQ_BM_MASK) {
+	case ZYNQ_BM_QSPI:
+		setenv("modeboot", "qspiboot");
+		break;
+	case ZYNQ_BM_NAND:
+		setenv("modeboot", "nandboot");
+		break;
 	case ZYNQ_BM_NOR:
 		setenv("modeboot", "norboot");
 		break;
-- 
1.9.1

  parent reply	other threads:[~2016-12-16 12:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-16 12:38 [U-Boot] [PATCH 1/4] ARM: zynq: Remove CONFIG_BOOTP_SERVERIP Michal Simek
2016-12-16 12:38 ` [U-Boot] [PATCH 2/4] ARM: zynq: Remove spi-max-frequency Michal Simek
2016-12-16 17:28   ` Moritz Fischer
2016-12-20  6:54     ` Michal Simek
2016-12-16 12:38 ` Michal Simek [this message]
2016-12-16 12:38 ` [U-Boot] [PATCH 4/4] ARM: dts: zynq: replace gpio-key, wakeup with wakeup-source property Michal Simek
2016-12-16 13:23   ` Sudeep Holla
2016-12-16 13:30     ` Michal Simek
2016-12-16 13:31       ` Sudeep Holla

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=74268a45ebe5050ef966553afed5c45b863e4d03.1481891921.git.michal.simek@xilinx.com \
    --to=michal.simek@xilinx.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.