All of lore.kernel.org
 help / color / mirror / Atom feed
From: Faiz Abbas <faiz_abbas@ti.com>
To: u-boot@lists.denx.de
Subject: [PATCH 04/13] arm: mach-k3: sysfw-loader: Add support to load SYSFW from USB
Date: Thu, 2 Jul 2020 13:32:24 +0530	[thread overview]
Message-ID: <20200702080233.27582-5-faiz_abbas@ti.com> (raw)
In-Reply-To: <20200702080233.27582-1-faiz_abbas@ti.com>

Add support for loading system firmware from a USB mass storage device

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
 arch/arm/mach-k3/sysfw-loader.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c
index 513be09c68..0ebd8c56a7 100644
--- a/arch/arm/mach-k3/sysfw-loader.c
+++ b/arch/arm/mach-k3/sysfw-loader.c
@@ -299,6 +299,17 @@ void k3_sysfw_loader(void (*config_pm_pre_callback) (void),
 		ret = k3_sysfw_dfu_download(sysfw_load_address);
 		break;
 #endif
+#if CONFIG_IS_ENABLED(USB_STORAGE)
+	case BOOT_DEVICE_USB:
+		ret = spl_usb_load(&spl_image, &bootdev,
+				   CONFIG_SYS_USB_FAT_BOOT_PARTITION,
+#ifdef CONFIG_K3_SYSFW_IMAGE_NAME
+				   CONFIG_K3_SYSFW_IMAGE_NAME);
+#else
+				   NULL);
+#endif
+#endif
+		break;
 	default:
 		panic("Loading SYSFW image from device %u not supported!\n",
 		      bootdev.boot_device);
-- 
2.17.1

  parent reply	other threads:[~2020-07-02  8:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-02  8:02 [PATCH 00/13] Add support for USB host and peripheral bootmodes on am65x-idk Faiz Abbas
2020-07-02  8:02 ` [PATCH 01/13] spl: usb: Create an API spl_usb_load() Faiz Abbas
2020-07-02  8:02 ` [PATCH 02/13] spl: usb: Only init usb once Faiz Abbas
2020-07-02  8:02 ` [PATCH 03/13] armv7R: K3: am654: Use full malloc in SPL both pre and post reloc Faiz Abbas
2020-07-02  8:02 ` Faiz Abbas [this message]
2020-07-02  8:02 ` [PATCH 05/13] arm: mach-k3: am6_init: Gate mmc related configurations with the appropriate config Faiz Abbas
2020-07-02  8:02 ` [PATCH 06/13] arm: mach-k3: am6_init: Do USB fixups to facilitate host and device boot modes Faiz Abbas
2020-07-03  7:34   ` Vignesh Raghavendra
2020-08-03  6:06     ` Faiz Abbas
2020-07-08  8:01   ` Lokesh Vutla
2020-07-02  8:02 ` [PATCH 07/13] arm: mach-k3: am6_init: Add support for USB boot mode Faiz Abbas
2020-07-02  8:02 ` [PATCH 08/13] arm: dts: k3-am654-r5-base-board: Add USB0 nodes Faiz Abbas
2020-07-02  8:02 ` [PATCH 09/13] arm: dts: k3-am654-base-board: Add support for USB0 in SPL Faiz Abbas
2020-07-02  8:02 ` [PATCH 10/13] configs: am65x_evm: Add support for DFU related configs Faiz Abbas
2020-07-02  8:02 ` [PATCH 11/13] configs: am65x_evm_a53: Enable USB Mass storage and DFU boot modes Faiz Abbas
2020-07-02  8:02 ` [PATCH 12/13] configs: Add new config for supporting USB mass storage boot Faiz Abbas
2020-07-02  8:02 ` [PATCH 13/13] configs: Add defconfig for USB DFU bootmode Faiz Abbas

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=20200702080233.27582-5-faiz_abbas@ti.com \
    --to=faiz_abbas@ti.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.