From patchwork Mon Oct 24 15:41:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 78979 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2645716qge; Mon, 24 Oct 2016 08:41:33 -0700 (PDT) X-Received: by 10.28.130.138 with SMTP id e132mr23572037wmd.110.1477323693689; Mon, 24 Oct 2016 08:41:33 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id cg3si16740847wjb.86.2016.10.24.08.41.33; Mon, 24 Oct 2016 08:41:33 -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 C7C99A7549; Mon, 24 Oct 2016 17:41:29 +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 G1vtd9RChtwB; Mon, 24 Oct 2016 17:41:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6993FA7574; Mon, 24 Oct 2016 17:41:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 71653A7549 for ; Mon, 24 Oct 2016 17:41:21 +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 4HmgkF-iexfA for ; Mon, 24 Oct 2016 17:41:21 +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-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by theia.denx.de (Postfix) with ESMTPS id 335AAA7534 for ; Mon, 24 Oct 2016 17:41:17 +0200 (CEST) Received: by mail-lf0-f44.google.com with SMTP id b81so191159305lfe.1 for ; Mon, 24 Oct 2016 08:41:17 -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=XtqKJPFIUpDR5eyRpJTYEoz/YMH5rhlnzdOyVn1gw8k=; b=QDCJrNdV+L5whDC+oiLU+Atz7NXoYf37Zlbai7UjwCffNqvpVS2vbc6wq9wtat/Oci k+PQOcyEskYbEDpzkgKiJe/ELu3WoDGOfnq8uibWdDuoyUjQoNEM4jmg7CWY6dNl7C9/ IHP9LJzOopCXCHh49uqXhyi1AaH+oe9mPt+jQ= 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=XtqKJPFIUpDR5eyRpJTYEoz/YMH5rhlnzdOyVn1gw8k=; b=UvDL7r5nVnfDLB5mU41hfgnMfJcdwv9lPIDhDkYTsc0jynPbkTQDrh1Bj0cBevo4vL D0t3K+M9iJzcMxJWMkAf5nJHDGiLZrEyQ8aE+GZvaN6K6QWSu3Iu09EcYjWKIm1/nXC8 /3Pu46u32rEonu5Qs9BKagsW0dmLkgi+SOzFWigT3TAasAWih234LTssBwBRQWUfPVAk 4vUMh1Ik/ZD2pkXOiXGVhDgL6K+Hoj7vaVwAjOfnkiqZGjy4hD+J8IFSZU5bUNPYZkht 8ErwsgT4qVEFMepDQc4Ml9PSxaBV1HNyvPQsPUV/v2rvZvQUCkIWsi2owPJIpuNZZTr8 p5GA== X-Gm-Message-State: ABUngve96e5zaXiA/OKD/JnhtzVQTOibKXtkF/BTaKfh/Gw4Na9UTjlsLHeiEssd9rk9EAi8 X-Received: by 10.25.199.76 with SMTP id x73mr7725747lff.162.1477323676708; Mon, 24 Oct 2016 08:41:16 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u193sm3111829lja.27.2016.10.24.08.41.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Oct 2016 08:41:16 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 24 Oct 2016 18:41:10 +0300 Message-Id: <20161024154113.19607-2-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161024154113.19607-1-semen.protsenko@linaro.org> References: <20161024154113.19607-1-semen.protsenko@linaro.org> Cc: Tom Rini , Praneeth Bajjuri , Steve Rae Subject: [U-Boot] [PATCH v2 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 --- Changes in v2: None 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