From patchwork Wed Jan 25 23:09:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1731930 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=pMLyrlkN; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P2KLS2qB6z23h7 for ; Thu, 26 Jan 2023 10:10:08 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4112684954; Thu, 26 Jan 2023 00:10:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="pMLyrlkN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0374A8091A; Thu, 26 Jan 2023 00:10:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (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 A5E768091A for ; Thu, 26 Jan 2023 00:09:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf29.google.com with SMTP id g10so239692qvo.6 for ; Wed, 25 Jan 2023 15:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=h24h6lPZ72Q49t3/JBsa+KDAFSaIiQ6EF3cPP308jPE=; b=pMLyrlkNJ6BwdRCB772jNXb1i0JSDGgS29IgIVeVAV49MVsw3MTpVANKuuayR2fNAG MmnyXc/1y6R8Ei06Z4YOCRChYaaMNmok/dDvVoZEZiP8Ujpcy3i0drt1tO2Hxk++DbYi 7ElAnb33N/HQFv36fr74Cq/XMLI/lbsG1gE+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h24h6lPZ72Q49t3/JBsa+KDAFSaIiQ6EF3cPP308jPE=; b=088YofZmZQAgvlBSu9wmXRr4Zu/WAVYYNAM8Jg0NV8X/dYIFEFDdysDxsfJSjAX/Sh FbJpwrQvTUBwrwL1AZXK1nZ0yQh5DYQu19V0HVNmUehx2Mkr4I8RcCzjBAlouy8ymtNc qrzKUYl8cvBnZaf28JkwzKGNQphTErknJ1NX3C92bpxbpXcjcv9+Z/7/jKbYYbHoqbHa 6Du/DRGwn+AVwLIsjIE89UzRTIWIxmjYInEKHziSUnKzBPqGO3So1FYqrxIiJEHo6MgM R3ygZxW+zbw2TGiSVMySmBT5S4+HQP70VzqTPQTx18vf4vrh3WTcb6D0PMB/gHY/hFPA o4Zw== X-Gm-Message-State: AO0yUKWPLH6Dc15f2sEMdQ1sFQ13TNzyebWSH8Cxm+cNjVIjzRAB28Eb sIe0eif6583joWO1QGFunWPMFJdt9kqaJnkHLtQ= X-Google-Smtp-Source: AK7set9NRnAMMK0nAmsCqysguj6juN58YODaYtQPln+VRfuWGHhYGvzCpOspHQHtIx9zSfvXXRkhYA== X-Received: by 2002:a05:6214:3109:b0:537:7402:e781 with SMTP id ks9-20020a056214310900b005377402e781mr5457109qvb.50.1674688196255; Wed, 25 Jan 2023 15:09:56 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-3a56-04fb-7eea-5810.res6.spectrum.com. [2603:6081:7b00:6400:3a56:4fb:7eea:5810]) by smtp.gmail.com with ESMTPSA id os37-20020a05620a812500b0070650f5ee2fsm4350768qkn.65.2023.01.25.15.09.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 15:09:56 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] ti: j721e_evm: Add USB to the default boot order Date: Wed, 25 Jan 2023 18:09:55 -0500 Message-Id: <20230125230955.1568039-1-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean This family of platforms typically has a USB port, and so attempting to boot from it, and making it first, will provide a better overall user experience. Signed-off-by: Tom Rini --- include/configs/j721e_evm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index a7210b5cf3ae..48b1cea6e394 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -161,7 +161,14 @@ # define BOOT_TARGET_DHCP(func) #endif +#ifdef CONFIG_CMD_USB +# define BOOT_TARGET_USB(func) func(USB, usb, 0) +#else +# define BOOT_TARGET_USB(func) +#endif + #define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_USB(func) \ func(MMC, mmc, 1) \ func(MMC, mmc, 0) \ BOOT_TARGET_PXE(func) \