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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 7D5B9C07E97 for ; Sat, 3 Jul 2021 19:59:53 +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 03AD361462 for ; Sat, 3 Jul 2021 19:59:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03AD361462 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91C6D82BD3; Sat, 3 Jul 2021 21:59:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625342356; bh=MB1bqEMBoCnMpfw9tKunu3uVytMHJkKktzxlmAc7Vf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rt2fTggYMBO8czXSDqtLB60DgNTb6uhhGKQPOFcMa+bcrt2MUJQRnyHStSmDIC4mb U5Z6iBwiZR+kL9Nl7BV5kz6AP/NRWX6gOM0oOcl/HuBI9N9GMgNw816TkuiEF9HIRb dit496ulv7Xmzp1POtjoecVncb2szaqBtwgXfKZZftrQMF0sT1Tv548JSnDpZZ9sL6 ABIOibxjxDBVD6np6bICJBe4ojisQcqUolI+PWYKGyir+pnflu5XoHNZyh/jH7yhGs NWyB5Y3mz9lw1F4hnlPbRDJKUdF+micdKr/Hh7CnguFoPJ+Pkb+reHo1HcP632RACL Qc5+V7lXDi7QA== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:abf0:6b86:fce4:4efb]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 70DFC82BD1; Sat, 3 Jul 2021 21:59:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625342352; bh=MB1bqEMBoCnMpfw9tKunu3uVytMHJkKktzxlmAc7Vf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QK3zO3sJKRxJiZsCA/v6mgY75OYwq92CQ7pIFP/oAHGh5TF3z1t+4TI85dOtLsnsv Dyqu8BAeasO0UmnspG+6ZhU3CkVME+WsJAfznsLINZg0gsdTsn993zVO+fPBHPEfJF 2xAs0wAVCwLAILzYkvoKNHKQm10umENMjDfoGig6Ug6RMUFS7eExlBeY7zjLSOv40B 5XAzvfzewZYqKY2NJSQr2i7DYM2TAih8bd51I6FU2vslH/+qZAMjprwEX1ZIV7WK5p 03uDhda/mUw5uuWLJvF/vozXuwH4aXIoZLfiC1praOWRV+C97LzYuz4BLyhxjVrGZK nTle8q73IhrcA== From: Fabio Estevam To: sbabic@denx.de Cc: marex@denx.de, u-boot@lists.denx.de, frieder.schrempf@kontron.de, tharvey@gateworks.com, uboot-imx@nxp.com, Fabio Estevam Subject: [PATCH 6/8] imx8mm_evk: Add an entry for USB boot Date: Sat, 3 Jul 2021 16:58:35 -0300 Message-Id: <20210703195837.28153-7-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210703195837.28153-1-festevam@denx.de> References: <20210703195837.28153-1-festevam@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add an entry for USB boot so that U-Boot could be loaded via the Serial Download Protocol. Signed-off-by: Fabio Estevam --- board/freescale/imx8mm_evk/spl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c index 4ef7f6f18060..c707e57f1ff5 100644 --- a/board/freescale/imx8mm_evk/spl.c +++ b/board/freescale/imx8mm_evk/spl.c @@ -33,6 +33,8 @@ DECLARE_GLOBAL_DATA_PTR; int spl_board_boot_device(enum boot_device boot_dev_spl) { switch (boot_dev_spl) { + case USB_BOOT: + return BOOT_DEVICE_BOARD; case SD2_BOOT: case MMC2_BOOT: return BOOT_DEVICE_MMC1; -- 2.25.1