U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mayuresh Chitale <mchitale@ventanamicro.com>
To: u-boot@lists.denx.de
Cc: Mayuresh Chitale <mchitale@ventanamicro.com>,
	Tom Rini <trini@konsulko.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Raymond Mao <raymond.mao@linaro.org>,
	Maxim Moskalets <maximmosk4@gmail.com>,
	Igor Opaniuk <igor.opaniuk@gmail.com>,
	Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Simon Glass <sjg@chromium.org>,
	Julien Masson <jmasson@baylibre.com>,
	Roman Stratiienko <r.stratiienko@gmail.com>,
	Paul HENRYS <paul.henrys_ext@softathome.com>,
	Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: [PATCH v1 1/3] riscv: image: Add new image type for RV64
Date: Tue, 11 Mar 2025 13:35:03 +0000	[thread overview]
Message-ID: <20250311133506.124914-2-mchitale@ventanamicro.com> (raw)
In-Reply-To: <20250311133506.124914-1-mchitale@ventanamicro.com>

Similar to ARM and X86, introduce a new image type which allows u-boot
to distinguish between images built for 32-bit vs 64-bit Risc-V CPUs.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
---
 boot/image.c    | 3 ++-
 include/image.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/boot/image.c b/boot/image.c
index abac254e026..03d5e59b634 100644
--- a/boot/image.c
+++ b/boot/image.c
@@ -92,7 +92,8 @@ static const table_entry_t uimage_arch[] = {
 	{	IH_ARCH_ARC,		"arc",		"ARC",		},
 	{	IH_ARCH_X86_64,		"x86_64",	"AMD x86_64",	},
 	{	IH_ARCH_XTENSA,		"xtensa",	"Xtensa",	},
-	{	IH_ARCH_RISCV,		"riscv",	"RISC-V",	},
+	{	IH_ARCH_RISCV,		"riscv",	"RISC-V 32 Bit",},
+	{	IH_ARCH_RISCV64,	"riscv64",	"RISC-V 64 Bit",},
 	{	-1,			"",		"",		},
 };
 
diff --git a/include/image.h b/include/image.h
index 8a9f779d3ff..12b31166e86 100644
--- a/include/image.h
+++ b/include/image.h
@@ -139,6 +139,7 @@ enum {
 	IH_ARCH_X86_64,			/* AMD x86_64, Intel and Via */
 	IH_ARCH_XTENSA,			/* Xtensa	*/
 	IH_ARCH_RISCV,			/* RISC-V */
+	IH_ARCH_RISCV64,		/* RISC-V 64 bit*/
 
 	IH_ARCH_COUNT,
 };
-- 
2.43.0


  reply	other threads:[~2025-03-11 13:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-11 13:35 [PATCH v1 0/3] Risc-V 32 bit/64 bit images Mayuresh Chitale
2025-03-11 13:35 ` Mayuresh Chitale [this message]
2025-03-12 11:51   ` [PATCH v1 1/3] riscv: image: Add new image type for RV64 Максим Москалец
2025-04-03 10:56     ` Mayuresh Chitale
2025-03-11 13:35 ` [PATCH v1 2/3] riscv: Select appropriate image type Mayuresh Chitale
2025-03-11 13:35 ` [PATCH v1 3/3] booti/bootm: riscv: Verify image arch type Mayuresh Chitale
2025-03-11 13:59   ` Heinrich Schuchardt
2025-04-03 10:58     ` Mayuresh Chitale

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=20250311133506.124914-2-mchitale@ventanamicro.com \
    --to=mchitale@ventanamicro.com \
    --cc=igor.opaniuk@gmail.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jmasson@baylibre.com \
    --cc=maximmosk4@gmail.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=paul.henrys_ext@softathome.com \
    --cc=r.stratiienko@gmail.com \
    --cc=raymond.mao@linaro.org \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=trini@konsulko.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