From patchwork Mon Oct 24 15:41:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 78980 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2645796qge; Mon, 24 Oct 2016 08:41:44 -0700 (PDT) X-Received: by 10.194.20.3 with SMTP id j3mr14313397wje.30.1477323704184; Mon, 24 Oct 2016 08:41:44 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id r6si16754377wjp.124.2016.10.24.08.41.43; Mon, 24 Oct 2016 08:41:44 -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 BDE24A7574; Mon, 24 Oct 2016 17:41:36 +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 bNczjLo_biep; Mon, 24 Oct 2016 17:41:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52D35A75B8; Mon, 24 Oct 2016 17:41:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A1BAA7549 for ; Mon, 24 Oct 2016 17:41:22 +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 zSoDXIflfHUd for ; Mon, 24 Oct 2016 17:41:22 +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-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by theia.denx.de (Postfix) with ESMTPS id 31B29A7534 for ; Mon, 24 Oct 2016 17:41:18 +0200 (CEST) Received: by mail-lf0-f46.google.com with SMTP id d20so1965874lfj.5 for ; Mon, 24 Oct 2016 08:41:18 -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=redZaPzTO5o8Xi7VQJTRWbvMHUNi3b4aS+tFxUolJZA=; b=TlhMkENMMixR7NLZ2QsqCrXl7+gNP23NTFnW0U3O4/jv1NOG61L32UJkViiJCzajJf fGqDgLtLNl9llf6HrhCcOjTSb6gMOZHad59ZfDKnZhsZOp1j4E2icu5SZAusQ4dsnzK8 3BhIfLMEVU45Q2+yPPGJKZmqHd6A5Jhob3PJo= 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=redZaPzTO5o8Xi7VQJTRWbvMHUNi3b4aS+tFxUolJZA=; b=QWHiUXV+K5aT1S8YY6d25ESOhX2aew+hU9ZtFpx1+1Cv2RIRpg3wNWjU1hqMbyqJjT Sk4j9NBoUnHqCy+C6leq4KmFrDRpT7YKziW5n2v7QelJ3FiJqbZNTBcpChcbFKjhHwoT zfMNnVk2Y/UIMrK0BPHsKlpLZwTbtGDdxrBOFXNG+9U5WYO3tGVB6UNBC6oAS7e7yqpx U9PQ9j9bo7xte45ttFbKuevTHagWKG4tvXmwKNpyD1y8jDH7FLqRfppQTRiq0jcfATy2 diIg+AAn6X5WppAh/ki17dBhQWhFoj7yhmOmi3V1NhJW9eBTqc2sBadayztpGBX00i1p FyYQ== X-Gm-Message-State: ABUngvcmptrljbEm5GHuQXqFZysm4pNc5XoVmcJuIWZ3mH+QOCayRyLakFkka0d9xTZ8d6+c X-Received: by 10.25.161.138 with SMTP id k132mr6515590lfe.116.1477323678212; Mon, 24 Oct 2016 08:41:18 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id h68sm3114664lji.20.2016.10.24.08.41.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Oct 2016 08:41:17 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Mon, 24 Oct 2016 18:41:11 +0300 Message-Id: <20161024154113.19607-3-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 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 --- Changes in v2: - Remove unnecessary check for CONFIG_FASTBOOT_USB_DEV include/configs/ti_omap5_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 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/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 29b7d96..b85fae3 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -114,7 +114,8 @@ "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; " \