public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH 5/5] sifive: fu540: Enable SF distro bootcmd
Date: Mon, 20 Apr 2020 19:35:14 +0530	[thread overview]
Message-ID: <20200420140514.25847-6-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200420140514.25847-1-jagan@amarulasolutions.com>

Enable SPI flash(SF) distro boot command in Sifive FU540.

This distro boot will read the boot script at specific
location at the flash and start sourcing the same.

Included the SF device at the last of the target devices
list since all the rest of the devices on the list have
more possibility to boot the distribution due to the
size of the SPI flash is concern.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 include/configs/sifive-fu540.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/configs/sifive-fu540.h b/include/configs/sifive-fu540.h
index 68fda14d76..f21411a701 100644
--- a/include/configs/sifive-fu540.h
+++ b/include/configs/sifive-fu540.h
@@ -43,9 +43,11 @@
 #ifndef CONFIG_SPL_BUILD
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
+	func(SF, sf, 0) \
 	func(DHCP, dhcp, na)
 
 #include <config_distro_bootcmd.h>
+#include <environment/distro/sf.h>
 
 #define TYPE_GUID_LOADER1	"5B193300-FC78-40CD-8002-E86C45580B47"
 #define TYPE_GUID_LOADER2	"2E54B353-1271-4842-806F-E436D6AF6985"
@@ -70,7 +72,8 @@
 	"type_guid_gpt_loader2=" TYPE_GUID_LOADER2 "\0" \
 	"type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \
 	"partitions=" PARTS_DEFAULT "\0" \
-	BOOTENV
+	BOOTENV \
+	BOOTENV_SF
 
 #define CONFIG_PREBOOT \
 	"setenv fdt_addr ${fdtcontroladdr};" \
-- 
2.17.1

  parent reply	other threads:[~2020-04-20 14:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-20 14:05 [PATCH 0/5] riscv: sifive/fu540: Booting from SPI Jagan Teki
2020-04-20 14:05 ` [PATCH 1/5] sifive: fu540: Add " Jagan Teki
2020-04-20 14:24   ` Bin Meng
2020-04-20 14:28     ` Jagan Teki
2020-04-20 14:05 ` [PATCH 2/5] env: Enable SPI flash env for SiFive FU540 Jagan Teki
2020-04-20 14:35   ` Bin Meng
2020-04-20 14:05 ` [PATCH 3/5] sifive: fu540: Mark the default env as SPI flash Jagan Teki
2020-04-20 14:36   ` Bin Meng
2020-04-20 14:05 ` [PATCH 4/5] sifive: fu540: Add boot flash script offset, size Jagan Teki
2020-04-20 14:05 ` Jagan Teki [this message]
2020-04-20 14:46 ` [PATCH 0/5] riscv: sifive/fu540: Booting from SPI Bin Meng

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=20200420140514.25847-6-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox