mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: narmstrong@baylibre.com (Neil Armstrong)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH u-boot 2/5] config: meson-gx-common: Enable USB boot
Date: Thu, 14 Jun 2018 13:43:38 +0200	[thread overview]
Message-ID: <1528976621-8397-3-git-send-email-narmstrong@baylibre.com> (raw)
In-Reply-To: <1528976621-8397-1-git-send-email-narmstrong@baylibre.com>

Add USB as boot target depending on the configuration.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 include/configs/meson-gx-common.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/configs/meson-gx-common.h b/include/configs/meson-gx-common.h
index 6e61b70..7435f34 100644
--- a/include/configs/meson-gx-common.h
+++ b/include/configs/meson-gx-common.h
@@ -23,10 +23,17 @@
 #define GICD_BASE			0xc4301000
 #define GICC_BASE			0xc4302000
 
+#ifdef CONFIG_CMD_USB
+#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
+#else
+#define BOOT_TARGET_DEVICES_USB(func)
+#endif
+
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 2) \
+	BOOT_TARGET_DEVICES_USB(func) \
 	func(PXE, pxe, na) \
 	func(DHCP, dhcp, na)
 
-- 
2.7.4

  parent reply	other threads:[~2018-06-14 11:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-14 11:43 [PATCH u-boot 0/5] Amlogic Meson GX Updates for v2018.07 Neil Armstrong
2018-06-14 11:43 ` [PATCH u-boot 1/5] adc: meson-saradc: fix regmap_init_mem call Neil Armstrong
2018-06-19 18:43   ` [U-Boot,u-boot,1/5] " Tom Rini
2018-06-14 11:43 ` Neil Armstrong [this message]
2018-06-19 18:43   ` [U-Boot,u-boot,2/5] config: meson-gx-common: Enable USB boot Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 3/5] clk: add Amlogic meson clock driver Neil Armstrong
2018-06-19 18:43   ` [U-Boot,u-boot,3/5] " Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 4/5] meson: use the " Neil Armstrong
2018-06-19 18:43   ` [U-Boot,u-boot,4/5] " Tom Rini
2018-06-14 11:43 ` [PATCH u-boot 5/5] configs: Update Meson GX configs Neil Armstrong
2018-06-19 18:43   ` [U-Boot,u-boot,5/5] " Tom Rini

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=1528976621-8397-3-git-send-email-narmstrong@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=linus-amlogic@lists.infradead.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

all inboxes | Powered by JetHome®