From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 2/3] sifive: fu540: Add U-Boot proper sector start
Date: Mon, 20 Apr 2020 19:07:34 +0530 [thread overview]
Message-ID: <20200420133735.23599-2-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20200420133735.23599-1-jagan@amarulasolutions.com>
Add U-Boot proper sector start offset for SiFive FU540.
This value is based on the partition layout supported
by SiFive FU540.
u-boot.itb need to write on this specific offset so-that
the SPL will retrieve it from here and load.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- none
common/spl/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 07eee56219..1ebb30344a 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -308,7 +308,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
ARCH_MX6 || ARCH_MX7 || \
ARCH_ROCKCHIP || ARCH_MVEBU || ARCH_SOCFPGA || \
ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
- OMAP44XX || OMAP54XX || AM33XX || AM43XX
+ OMAP44XX || OMAP54XX || AM33XX || AM43XX || TARGET_SIFIVE_FU540
help
Use sector number for specifying U-Boot location on MMC/SD in
raw mode.
@@ -325,6 +325,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
OMAP54XX || AM33XX || AM43XX || ARCH_K3
default 0x4000 if ARCH_ROCKCHIP
+ default 0x822 if TARGET_SIFIVE_FU540
help
Address on the MMC to load U-Boot from, when the MMC is being used
in raw mode. Units: MMC sectors (1 sector = 512 bytes).
--
2.17.1
next prev parent reply other threads:[~2020-04-20 13:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 13:37 [PATCH v2 1/3] sifive: fu540: Add sample SD gpt partition layout Jagan Teki
2020-04-20 13:37 ` Jagan Teki [this message]
2020-04-29 13:58 ` [PATCH v2 2/3] sifive: fu540: Add U-Boot proper sector start Bin Meng
2020-04-29 14:04 ` Pragnesh Patel
2020-04-29 14:37 ` Bin Meng
2020-04-29 14:30 ` Pragnesh Patel
2020-04-20 13:37 ` [PATCH v2 3/3] doc: sifive: fu540: Document Boot from MMC Jagan Teki
2020-04-29 13:56 ` Bin Meng
2020-04-29 15:47 ` Pragnesh Patel
2020-04-29 15:56 ` Jagan Teki
2020-04-29 16:02 ` Pragnesh Patel
2020-04-29 13:53 ` [PATCH v2 1/3] sifive: fu540: Add sample SD gpt partition layout Pragnesh Patel
2020-04-29 13:54 ` 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=20200420133735.23599-2-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