U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: E Shattow <e@freeshell.de>
To: u-boot@lists.u-boot-project.org
Cc: E Shattow <e@freeshell.de>
Subject: [DNM PATCH v1 4/7] reduced SpacemiT K3 vendor BSP: force UART boot when YMODEM_SUPPORT enabled
Date: Wed, 28 Oct 2026 17:15:52 -0700	[thread overview]
Message-ID: <20261029001555.1890775-5-e@freeshell.de> (raw)
In-Reply-To: <20261029001555.1890775-1-e@freeshell.de>

Do Not Merge

Informational purpose only, to aid mainline development of SpacemiT K3
support.
---
 board/spacemit/k3/spl.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/spacemit/k3/spl.c b/board/spacemit/k3/spl.c
index 522f3977c485..8f640f1affcb 100644
--- a/board/spacemit/k3/spl.c
+++ b/board/spacemit/k3/spl.c
@@ -867,8 +867,13 @@ void board_boot_order(u32* spl_boot_list)
 	u32 boot_mode = get_boot_mode();
 	pr_debug("boot_mode:0x%x\n", boot_mode);
 	if (boot_mode == BOOT_MODE_USB) {
+#if CONFIG_IS_ENABLED(YMODEM_SUPPORT)
+		spl_boot_list[0] = BOOT_DEVICE_UART;
+		spl_boot_list[1] = BOOT_DEVICE_RAM;
+#else
 		update_usb_serial_number();
 		spl_boot_list[0] = BOOT_DEVICE_BOARD;
+#endif /* CONFIG_IS_ENABLED(YMODEM_SUPPORT) */
 	} else {
 		switch (boot_mode) {
 		case BOOT_MODE_SD:
@@ -883,6 +888,9 @@ void board_boot_order(u32* spl_boot_list)
 		case BOOT_MODE_NOR:
 			spl_boot_list[0] = BOOT_DEVICE_NOR;
 			break;
+		case BOOT_MODE_UART:
+			spl_boot_list[0] = BOOT_DEVICE_UART;
+			break;
 		case BOOT_MODE_UFS:
 			spl_boot_list[0] = BOOT_DEVICE_UFS;
 			break;
-- 
2.53.0


  parent reply	other threads:[~2026-10-29  0:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29  0:15 [DNM v1 0/7] Guide to build reduced SpacemiT K3 vendor BSP E Shattow
2026-10-29  0:15 ` [DNM PATCH v1 1/7] reduced SpacemiT K3 vendor BSP: use MKIMAGE build env E Shattow
2026-10-29  0:15 ` [DNM PATCH v1 2/7] reduced SpacemiT K3 vendor BSP: add guards around config optioned k3.c code E Shattow
2026-10-29  0:15 ` [DNM PATCH v1 3/7] reduced SpacemiT K3 vendor BSP: add fallback fastboot buf addr and size def E Shattow
2026-10-29  0:15 ` E Shattow [this message]
2026-10-29  0:15 ` [DNM PATCH v1 5/7] reduced SpacemiT K3 vendor BSP: add UART SPI defconfig E Shattow
2026-10-29  0:15 ` [DNM PATCH v1 6/7] reduced SpacemiT K3 vendor BSP: add UART (no SPI) defconfig E Shattow
2026-10-29  0:15 ` [DNM PATCH v1 7/7] reduced SpacemiT K3 vendor BSP: set uart compatible for mainline OpenSBI E Shattow
2026-10-29  0:33 ` [DNM v1 0/7] Guide to build reduced SpacemiT K3 vendor BSP (continued) E Shattow

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=20261029001555.1890775-5-e@freeshell.de \
    --to=e@freeshell.de \
    --cc=u-boot@lists.u-boot-project.org \
    /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