From patchwork Thu Oct 20 15:58:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 78538 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp856255qge; Thu, 20 Oct 2016 08:58:53 -0700 (PDT) X-Received: by 10.25.169.146 with SMTP id s140mr2587032lfe.24.1476979133147; Thu, 20 Oct 2016 08:58:53 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id 3si30372147ljb.92.2016.10.20.08.58.52; Thu, 20 Oct 2016 08:58:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5108A75B9; Thu, 20 Oct 2016 17:58:49 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yWd4dnUw-Mua; Thu, 20 Oct 2016 17:58:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E1DF2A761E; Thu, 20 Oct 2016 17:58:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 543CFA755F for ; Thu, 20 Oct 2016 17:58:39 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TZo0lZ78xR8l for ; Thu, 20 Oct 2016 17:58:39 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by theia.denx.de (Postfix) with ESMTPS id 0CC13A7548 for ; Thu, 20 Oct 2016 17:58:35 +0200 (CEST) Received: by mail-lf0-f47.google.com with SMTP id b75so88596058lfg.3 for ; Thu, 20 Oct 2016 08:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=25Jo5N9ZWN6hqKa/ItU/53mIrLC3pVFg8TYyVVXTzZw=; b=U5k5Z900iuQKRoHqVVWRn4ok8WanFcoc6fRDYoge6kPe756iiBVG8MvqmMXxPSK3wL WO9xDBfXeplmEy0V6dtyYcXc8Mwj1v80Bf7cQNP8q0pFuu5J26h6XY3QmAhJt+kPXNKF wKHFnn0L8V8SaxHX87dzIysRDlEmc9dWExff8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=25Jo5N9ZWN6hqKa/ItU/53mIrLC3pVFg8TYyVVXTzZw=; b=Lft2iMwrd7oTGYFJ/0xX7JyJM+AppWLMboeeADu4ZuF185vu8d9LV6a6Hu69Dm6tiE JyScuv8VsNw8b3NaQamBvdAm1y1ss1h2C6hkBJEI1RY94bfjWp3oosWAq2Q0ro0Zwg9N /jhPAhXBYgI/rpoRc7wSMR2Hxrxqxer+ZfakDsdnjZrb6cWks3qZ0aFEwIf3yZELd9XO g9G8ABoDvS5uqegZUp4qPIJ6aF0klGnFQzWFqK4l9a4jw5Ja/EJ1HLgEChqZ+FHE6zpw UEnCevTrLRr+y0RZ8Q0CXZn9440xgktiUZ29dCM2JWq98w27mHLPFRfqiTEoJcBZSOAc 3tbQ== X-Gm-Message-State: AA6/9RnwCXCsohta/kAKZCzWb0C6gWegp5BemtivFNjrJ0vyHjGSCYXsz2Qlw8xCyraROTNZ X-Received: by 10.25.221.71 with SMTP id u68mr492820lfg.11.1476979114818; Thu, 20 Oct 2016 08:58:34 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id y75sm11390009lfi.43.2016.10.20.08.58.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2016 08:58:34 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 20 Oct 2016 18:58:28 +0300 Message-Id: <20161020155831.4212-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161020155831.4212-1-semen.protsenko@linaro.org> References: <20161020155831.4212-1-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri , Steve Rae Subject: [U-Boot] [PATCH 1/4] fastboot: Add CONFIG_FASTBOOT_USB_DEV option X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- cmd/fastboot/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Tom Rini 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