From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D04CC4338F for ; Thu, 29 Jul 2021 12:00:26 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D98560F21 for ; Thu, 29 Jul 2021 12:00:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9D98560F21 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A680182F00; Thu, 29 Jul 2021 13:59:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="wQyQ4RRv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D6A4E82DFB; Thu, 29 Jul 2021 09:21:25 +0200 (CEST) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 983B082DF1 for ; Thu, 29 Jul 2021 09:21:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mkorpershoek@baylibre.com Received: by mail-wm1-x32a.google.com with SMTP id l11-20020a7bc34b0000b029021f84fcaf75so6107600wmj.1 for ; Thu, 29 Jul 2021 00:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wOdHuJ8bzGKrTZoaGkHFTl2j8CkHaoIFOL5h1XfWE6s=; b=wQyQ4RRvtnzhBTbWhofCPSUbvlL5jwbOMZPa5kttxurSejzFsSM1qrxzpkprQLi674 +7fChvHD3rhSUkuvdmJiTj6GhCxbnHAespEQUx7Hnv1ubo2+YhSMEd00lwO2MgZpfEAN j+90EyYPFTCXLIo77gI6WBLfNoJNR9TVmh7/bCPNIgImRSD7DtrjGnoFaFvJ9i+KbS5V cXRfyqHcc6Q/xHVjpkVSeVFNodJZeCOWmUWrkL7CeFl7iitFPiqfJ/yOVaAaVRJo65+e KvF8f0bO7tt6xT6+8Qem2T68Nvsf53u6Iio5lGldoajAa11aUg8OXI7OVwWKtXh3nnBT TO4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wOdHuJ8bzGKrTZoaGkHFTl2j8CkHaoIFOL5h1XfWE6s=; b=T3N/pv5KbqmDp69uQ6H4Pra6okZiiC/3fRnLcP4PFDJtcaL3QxiNA9Ha+v+e23luSq Q+0xBrQcNO2zauOb1EovWxMNJhY4kLzh3pEVPrf8TKQEscTqlYSH4/W/iOW/juOCCZty h8K5DsLS+p3wRs3pwL83hHkdXI12dU6LwMhpaocTFZyjwm8oeOdL7ZiXMC2uleHf8x6h B6yYJxZct+dYvBtcjivLvCTRySQFfnMA5D3skV53u7dmYVqC2NYhZvjtI7Z4aek3eKLO irw6e+gCiWDXdNUMcVJO6gYa9qw/gNz278Op0daTatt78/WuJAe3DCUX0cVim450HXtE 8A3Q== X-Gm-Message-State: AOAM532h3S47WiXVMDkvoxjZPdSLPyW3p7nmBH5ExPjgW3M8XxXS1SF+ mVLX/YgCrPe5bakJGaPowKxVmg== X-Google-Smtp-Source: ABdhPJwa+deQssA11kI+Ms2TrTDmtTBtUgX6m1dfVyiZ1oBjpU/KjdazO2aCyq8QpMywks4RTOyfjQ== X-Received: by 2002:a05:600c:3554:: with SMTP id i20mr3356615wmq.68.1627543279031; Thu, 29 Jul 2021 00:21:19 -0700 (PDT) Received: from groot.home ([2a01:cb19:826e:8e00:b844:cc86:4a22:410b]) by smtp.gmail.com with ESMTPSA id q5sm2298185wrx.33.2021.07.29.00.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 00:21:18 -0700 (PDT) From: Mattijs Korpershoek To: Neil Armstrong Cc: u-boot-amlogic@groups.io, u-boot@lists.denx.de, Mattijs Korpershoek Subject: [PATCH 3/6] configs: meson64_android: use CONFIG_FASTBOOT_USB_DEV Date: Thu, 29 Jul 2021 09:21:10 +0200 Message-Id: <20210729072113.208099-4-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210729072113.208099-1-mkorpershoek@baylibre.com> References: <20210729072113.208099-1-mkorpershoek@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 29 Jul 2021 13:59:28 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Right now, when running fastboot we use a hard-coded "0" for the device number. Use the Kconfig option named CONFIG_FASTBOOT_USB_DEV instead. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 661de76fd7..4027a7fe0d 100644 --- a/include/configs/meson64_android.h +++ b/include/configs/meson64_android.h @@ -38,7 +38,7 @@ "fi;" \ "if test \"${run_fastboot}\" -eq 1; then " \ "echo Running Fastboot...;" \ - "fastboot 0;" \ + "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \ "fi\0" #define BOOTENV_DEV_NAME_FASTBOOT(devtypeu, devtypel, instance) \ @@ -69,7 +69,7 @@ "fi;" \ "if test \"${run_recovery}\" -eq 1; then " \ "echo Running Recovery...;" \ - "fastboot 0;" \ + "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \ "fi\0" #define BOOTENV_DEV_NAME_RECOVERY(devtypeu, devtypel, instance) \ -- 2.30.2