public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sam Protsenko <semen.protsenko@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/4] fastboot: Add CONFIG_FASTBOOT_USB_DEV option
Date: Mon, 24 Oct 2016 18:41:10 +0300	[thread overview]
Message-ID: <20161024154113.19607-2-semen.protsenko@linaro.org> (raw)
In-Reply-To: <20161024154113.19607-1-semen.protsenko@linaro.org>

Some boards (like AM57x EVM) has USB OTG controller other than 0. So in
order to use correct controller number in compiled environment we should
define CONFIG_FASTBOOT_USB_DEV option.

For example, when doing "fastboot reboot-bootloader" we want to enter
fastboot mode automatically. But to do so we need to provide controller
number to "fastboot" command. If this procedure is defined in some config
which is common to bunch of boards, and boards have different USB
controller numbers, we can't just hardcode "fastboot 0" in the
environment. We need to use configurable option, which this patch adds.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
Changes in v2: None

 cmd/fastboot/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cmd/fastboot/Kconfig b/cmd/fastboot/Kconfig
index 5d2facc..d555d0a 100644
--- a/cmd/fastboot/Kconfig
+++ b/cmd/fastboot/Kconfig
@@ -41,6 +41,14 @@ config FASTBOOT_BUF_SIZE
 	  downloads. This buffer should be as large as possible for a
 	  platform. Define this to the size available RAM for fastboot.
 
+config FASTBOOT_USB_DEV
+	int "USB controller number"
+	default 0
+	help
+	  Some boards have USB OTG controller other than 0. Define this
+	  option so it can be used in compiled environment (e.g. in
+	  CONFIG_BOOTCOMMAND).
+
 config FASTBOOT_FLASH
 	bool "Enable FASTBOOT FLASH command"
 	help
-- 
2.9.3

  reply	other threads:[~2016-10-24 15:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 15:41 [U-Boot] [PATCH v2 0/4] am57xx: Add fastboot support Sam Protsenko
2016-10-24 15:41 ` Sam Protsenko [this message]
2016-10-24 16:12   ` [U-Boot] [PATCH v2 1/4] fastboot: Add CONFIG_FASTBOOT_USB_DEV option Tom Rini
2016-11-22  2:43   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-10-24 15:41 ` [U-Boot] [PATCH v2 2/4] ti_omap5_common: Respect USB controller number in fastboot Sam Protsenko
2016-10-24 16:12   ` Tom Rini
2016-11-22  2:43   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-10-24 15:41 ` [U-Boot] [PATCH v2 3/4] configs: am57xx: Enable download gadget Sam Protsenko
2016-10-24 16:12   ` Tom Rini
2016-11-22  2:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-10-24 15:41 ` [U-Boot] [PATCH v2 4/4] configs: am57xx: Enable fastboot Sam Protsenko
2016-10-24 16:12   ` Tom Rini
2016-11-21 19:25     ` Sam Protsenko
2016-11-22  2:45   ` [U-Boot] [U-Boot,v2,4/4] " 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=20161024154113.19607-2-semen.protsenko@linaro.org \
    --to=semen.protsenko@linaro.org \
    --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