From patchwork Mon Aug 24 18:00:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 248236 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2755986ils; Mon, 24 Aug 2020 11:01:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIzmlYH6HvbSrsC0iIdAty+vidogcvZ+3N4EiaR3/17GYSjhvBdW2tZgfjbFMzKq/9c2Xg X-Received: by 2002:a05:6402:1430:: with SMTP id c16mr6441315edx.144.1598292076537; Mon, 24 Aug 2020 11:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598292076; cv=none; d=google.com; s=arc-20160816; b=S02r8mgU+apQAyz7cHFOg0zfK/WoSWFXCI3ZcZ6HX81tmX2rlNjKDuU8FeMbFK7mgG 7hAYcncn3/n+T9sdhBst9R47uIKl+BAeLX06d4ZCbWBoTpZCTolVZF4UE9glLhS1P3o3 xEmZui4IznhrItKUykNLdxqDLEbIZzJrAgxtEcAhe/Ip9Scczeoxm7J4iEDW9UN/RzNo HJCUi3zrN77JiWNvIR2MeHPUUX0tAz4cFQwpwCcHKNw9Jc5+dqK2yvCOq11muqKDAanp DnrPSxx0xVf7CuUIBM6vMo0LVNbvfrfCWlsMG/mbUn8WmiGp7HNq8pbTrC6v9qnHb7Ga JLOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=qq1di7205TlIK8tsuRKB0pIlAkyesPHmnYh4wazrsEpYV1UYznrBEwA6LGC/aVYnkm 3yBZahVMBlmTUqzCHxUNlEI6Vn43VNLlDXxCFsmYbdhkdORNuZ3ZtJRGkNGwjlJvtiu6 AL/UGmvUUm3car8vPhrv/RGmy+nGxvpJ1pDTV4JotZN+OHV0PzURh7CC8e4NyRBD8eEX X+Xoi8yuaGD9kTv9kgLothNd8inuzR1WL1L05cQDHLggvej1/5Lxh68MU8mXZ7c7hBqv cx3hhbj83ZuELYujdZ0FgBiaD75FYs16aEmta6fsB1n50zeQ4ICHSZ9sUcdsTU9WM3ZV oT7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DqggLuLg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id w21si7127259eje.385.2020.08.24.11.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DqggLuLg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B309A81C17; Mon, 24 Aug 2020 20:01:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="DqggLuLg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E54880422; Mon, 24 Aug 2020 20:01:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) (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 CE42480422 for ; Mon, 24 Aug 2020 20:00:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matwey.kornilov@gmail.com Received: by mail-lj1-x243.google.com with SMTP id i10so10716044ljn.2 for ; Mon, 24 Aug 2020 11:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=DqggLuLgWpH7E/E2SV4/s4mkSkN07uf/vQhg/QL44HG1CtuaaK3kX4rG/fejJ2pKcC 4lerWVlD82ZCNyKTe1o0YnsRqKNRyzJelyN50jWlDHL3vFWDHdijwS1v96klLJNNmVWb dEG1TxmGEWcZxpCDWVxTKmzrtcoqkZ4+THn2KDmeS5BLMetM1MnH/kaq8USbR+P1joBE VuaojLhg6vvzlNo94ifKjAhuc1NqmKFnEF1DtP66MxmcvmIZHaO2vWZX326J2W/7F+Ug X/KL7DJCg/Wa4b1R65CBIm7NKuoXdwAWiqAt9Re09DRM3fWYv+XYeC0dKv2VhTkXFin9 xI8g== 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=gi1wAXYZYhPFiOScp7jJB81xozx2UTVNpjW3AIEDR6o=; b=OhkK3aTp4QUd1Ev9IuNlsS9lWyAkvjjOBlHVFvyQ/MARoEZTfSASTUsVveLYCmzjtj Rot+d8eNX6dNZHKWjFN0+hJnOnSvILe6poXVIgx1h3J3+5emmiD5CSRYMeDkJ8tAuMBT hD61l/vOsDrJwHQvSwx3t6T3qmjI3vCfVmIJN9vbTwPmWSuOrhyV93VoIJzghzS28W4L A4zi3vXp5Gxr9zm3DLwLRqTNqixUaxuWeKWMViop4v//xLNp+pUNLZjC4UWQ198UVJph yaF1wPqFj+MvqMoW22rSEQ+qxZ7IQuVQWVoZLcFHlaVjcuhI1LMf5IQWV9iUqzVf9hHv rGjA== X-Gm-Message-State: AOAM533/7NgyeMPq9B2kP9xTCqO30cu8Gyu2u5ELPUn8TDHYPy7wq1Ne 4kvorXs30JR/lBAL8Lz5AgQ= X-Received: by 2002:a2e:9f43:: with SMTP id v3mr3026345ljk.266.1598292058142; Mon, 24 Aug 2020 11:00:58 -0700 (PDT) Received: from oak.local ([188.123.231.180]) by smtp.gmail.com with ESMTPSA id l13sm2456731lfk.18.2020.08.24.11.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:00:57 -0700 (PDT) From: "Matwey V. Kornilov" To: trini@konsulko.com Cc: u-boot@lists.denx.de, "Matwey V. Kornilov" Subject: [PATCH 2/2] am335x_evm: Allow booting from usb-storage device Date: Mon, 24 Aug 2020 21:00:33 +0300 Message-Id: <20200824180033.13681-2-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200824180033.13681-1-matwey.kornilov@gmail.com> References: <20200824180033.13681-1-matwey.kornilov@gmail.com> MIME-Version: 1.0 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.102.3 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Matwey V. Kornilov --- include/configs/am335x_evm.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.26.2 Reviewed-by: Tom Rini diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 9c4ef369c5..103c046137 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -66,6 +66,12 @@ #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \ #devtypel #instance " " +#if CONFIG_IS_ENABLED(CMD_USB) +# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#else +# define BOOT_TARGET_USB(func) +#endif + #if CONFIG_IS_ENABLED(CMD_PXE) # define BOOT_TARGET_PXE(func) func(PXE, pxe, na) #else @@ -84,6 +90,7 @@ func(MMC, mmc, 1) \ func(LEGACY_MMC, legacy_mmc, 1) \ func(NAND, nand, 0) \ + BOOT_TARGET_USB(func) \ BOOT_TARGET_PXE(func) \ BOOT_TARGET_DHCP(func)