From patchwork Thu Oct 20 15:58:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 78539 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp856336qge; Thu, 20 Oct 2016 08:59:02 -0700 (PDT) X-Received: by 10.25.67.10 with SMTP id q10mr1013675lfa.63.1476979142759; Thu, 20 Oct 2016 08:59:02 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id b82si668521lfe.164.2016.10.20.08.59.02; Thu, 20 Oct 2016 08:59:02 -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 C8AC0B3825; Thu, 20 Oct 2016 17:58:56 +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 1Sq272TLse60; Thu, 20 Oct 2016 17:58:56 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6B42EA7668; Thu, 20 Oct 2016 17:58:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B857A755F for ; Thu, 20 Oct 2016 17:58:40 +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 W37PeADCkgrY for ; Thu, 20 Oct 2016 17:58:40 +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-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by theia.denx.de (Postfix) with ESMTPS id 3A7F9A7548 for ; Thu, 20 Oct 2016 17:58:37 +0200 (CEST) Received: by mail-lf0-f41.google.com with SMTP id b75so88597142lfg.3 for ; Thu, 20 Oct 2016 08:58:37 -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=ePh6PHudONHvm3hlMOv7TqDlP/wmVcMTsrbiUHEIp3I=; b=RoIe0OMrJIfuQR5pZDFEDWctU1LM3D+XxCQvG/WHfJJyWftQk6WeigsWWJmXkytA7H qmKRfYm7GTDiyqb8cT/rN6B16PxjIWKPkDrYv8k2Zjx4jTzK4TvV/xo8f5WwHFb3hr7D hNrG8inHcCFUQRQsqKT+h6SRFjvYGBhmtxjzc= 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=ePh6PHudONHvm3hlMOv7TqDlP/wmVcMTsrbiUHEIp3I=; b=ailXOUIpkauH4jpYaqiXEjq00dE+bpScNqO80GNH+ETJPe/zQfpCX69YHAEiUqEBBj D0zTOiXrwTIlnbCjO8FteRi27rF3fz6QvNslu8hABiEDsV/GA6oLHBQsZQoZoFPgX1a8 +rQuvJek8kss91a1DS116YWxhqr/vAz+K/9eYwFODUbaX7KzQtVXDQPcUUyVkMQsDkFS 7h4gzjoa+rluYT4xnaZ0sOtZPdBhAg+TNuSveIgUDZMPnXfos3CeOTFUCXA6y2RnpS+H +E3hYDfHuY3DqW7sMKSIn8tMx2VV8TN1bFmQrl99M/Ge1WTi884HIQF2qfQMCU965YnV OeXg== X-Gm-Message-State: ABUngvdArqClpu5/EGD6Xky1QSzv+By+nr9Te+aenXjdv8LoXQ1ONqCl4lOLVBJJi84Nv9/C X-Received: by 10.25.192.20 with SMTP id q20mr2713916lff.66.1476979116466; Thu, 20 Oct 2016 08:58:36 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id s83sm12452951lja.35.2016.10.20.08.58.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2016 08:58:35 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 20 Oct 2016 18:58:29 +0300 Message-Id: <20161020155831.4212-3-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 2/4] ti_omap5_common: Respect USB controller number in fastboot 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" On "fastboot reboot-bootloader" we check "dofastboot" variable and do "fastboot 0" command in U-Boot if it's 1. But there are boards which have USB controller number other than 0, so it should be respected when performing "fastboot" command. This patch reuses CONFIG_FASTBOOT_USB_DEV option toprovide correct USB controller number to "fastboot" command. Signed-off-by: Sam Protsenko --- include/configs/ti_omap5_common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.9.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 29b7d96..144a880 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -110,11 +110,15 @@ DFUARGS \ NETARGS \ +#ifndef CONFIG_FASTBOOT_USB_DEV +#define CONFIG_FASTBOOT_USB_DEV 0 +#endif #define CONFIG_BOOTCOMMAND \ "if test ${dofastboot} -eq 1; then " \ "echo Boot fastboot requested, resetting dofastboot ...;" \ "setenv dofastboot 0; saveenv;" \ - "echo Booting into fastboot ...; fastboot 0;" \ + "echo Booting into fastboot ...; " \ + "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \ "fi;" \ "run findfdt; " \ "run envboot; " \