From patchwork Fri May 20 08:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 1972 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3AA3F3F039 for ; Fri, 20 May 2022 10:26:32 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id o10-20020aa7c7ca000000b0042a4f08405fsf5194630eds.22 for ; Fri, 20 May 2022 01:26:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653035192; cv=pass; d=google.com; s=arc-20160816; b=ZDlrfUiusVpKZLl/XCoEKUgjZE4zEq3yPSrGKmALajAmKhi8fDOX17BYl7CrM/m/Sw nf0gMRc0NQFzK0HJJtEvQAXkOEP2bRybCaNkCoeMjVkVXc+lQuxSo5v/5KdWqDlWcKwZ LN+KFSld/0xWhaMH3zVs3+kfGsxD7BkU/3ByEoWA3mKHTQDhFRzBN8sCRjSomd3f/uPe Rsol53vnUuMlVHWmCrxBzEhtBjUdHCdEmmkSzWOS4xxfy5utuvZ5ZtGJ0CCTK9j/sF27 Guu/YdZr8kYw7FwQKqHzQ14ntFshJ/joRTb1FMdYWjosv6W093nYiiMmojG44IafoEk+ wBtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=PYnpjj9aTb15BYKJpTDuqwERNzh1xsAxPFU8X/08JsU=; b=xMYkk3t23CNc6498ytw/4UOiEYXP5sA2x1YrTc1QxJhw/mx0fcCXWGXspSj9edvtvC VefTytLPCzS88XDrnHGEJpug+Q9cJ1IMYrLv+iIt9asnDvpcp+4Ot3Lj6YZ5UxyGx0mQ TO3Gw22/mODJsOEpsMN/aBCvVR6QBi6/fDxM/rZ5QbMratL7oeU7YkWnRJrvn52C2q1u nkihdMJcLOUMAbte2m/NN4vm1/cxBgTnCrsultIDNp31Z+VC3uqerf1tTBLQQWis5J0o 6JN5QwVes0iNBjTuFXZVANIhyG2wKuZeiVHJBFC6uUp+vha+liMoHfRSDC7RXkt/oVdh LVkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FdOZIH6y; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=PYnpjj9aTb15BYKJpTDuqwERNzh1xsAxPFU8X/08JsU=; b=K0ovRmdzaXzQz9LJLpBX06EPnur6TOjj9EOWzerSwm6jVDcEWGpYMLWKPQ3qKXTbvx 5aebB7qYZw9X1NaD9fIplX6cWzey3ABY4/4zM2BoiTJIXKfNZOOeHx/+l0spE/W2i09T 1CRTeCx/wvyQCPEJ6oI6Uy1Q5sVQwWi/EF1tA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=PYnpjj9aTb15BYKJpTDuqwERNzh1xsAxPFU8X/08JsU=; b=WP21PnVtGMJVufM/HG3MlvwbB0JeNYxNJxHqtydaJpzTzR+pLWOrdfPrn4HmAGOOAP 8Zk66zYZysDhvY9KytiYfjA2gLjet2CkglZESFPELUPLew2xXM5n5K5P/mCXUpTOLZFp ZSkB1bk/QzdJtibrjCF6ss9RYwhBsjKrkehTUOfm7FUYBM/B06I4c+aSWu6X/BIikbbS fZKzN8fSdBg/FWr+h++H7+X5tmhp3WKZ0IlvjDxp1TV6f9USNSWXasK9RO4wf06AJ6b6 YvhpSfr9vb64YNKgj4DqCc4ozugMikPWeDclz7dFly7kw/t2y0o7dI1asm5Pwf6rOcxW hMIA== X-Gm-Message-State: AOAM531KNgG/a1d72ZUMW1Bu8Z34NsQBUq25JXd0y8zzYsiPuatA1fe1 oDohrilfji+gUQflYYVcouOdH5Vc X-Google-Smtp-Source: ABdhPJzaxjIuBcRpbVG8JYZVgkf9hw/xQKLt85uy/c0v6VWwmmO2wM5oPoGpxW+qiMmQZlJFZ84fVA== X-Received: by 2002:a17:906:c142:b0:6f5:2632:adb7 with SMTP id dp2-20020a170906c14200b006f52632adb7mr7764026ejc.637.1653035192077; Fri, 20 May 2022 01:26:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:8a10:b0:6f4:91cc:ac07 with SMTP id sc16-20020a1709078a1000b006f491ccac07ls468976ejc.0.gmail; Fri, 20 May 2022 01:26:31 -0700 (PDT) X-Received: by 2002:a17:906:6a0b:b0:6f4:d4d7:7c83 with SMTP id qw11-20020a1709066a0b00b006f4d4d77c83mr7720504ejc.667.1653035191142; Fri, 20 May 2022 01:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653035191; cv=none; d=google.com; s=arc-20160816; b=p2GzOZXvkttP6HjdWhC0s+0a5F8takfPXXpqm+l5W5h1mYLSaUSlMGZjLHlflU985u P7TDfuGuZjH0arnqCbQozkhjFw9b2ErYwmmgCev8JDX0rxC1/NZQBe86yNRH2Tddx+ab QeLrBeG9UvN8UHbnuHMnZdDERR01y3hEGZjdZizcRg3YAAavrZIm7kgpjl3R08iapv+9 1czJKaeJdcXSkc6qtQksrNuPs8AIqL6+Re+2hGp5mHN7pHF4dkPUzs1JXnkJptimN1aS 9sEItRa+KyMBmAU4GQE0DrJ0iXQxvikUsaKeNdKHjaaFaysZwjiMLzNdszrupQ+yz7IK Rx0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=hdVd9UW4XRRImpNCnWkWosTRRCBXJ0bcYcL5qzII9dY=; b=CY4eFSVVDFFk0f99T1JCDdjda/KRUVAjKR63SXM1cZ9LcqHTV/genRJO6ttrDhEDD8 mXTPTm9mzxS9u0EjiiqvPqpGSUXMYCQU5kzY9FqSFaps0TDnIXRR3zMQ9HLFriR8UAVN fpCdx4XESwYT2cpB7z/xuyOJrIKjz7bwVl53rMdwF77PHOO5IEYtt/2ocvxnLdAwL8ZR ckM1T85tFJ/8VXSp928oPKwwP/MtRuWmNfsh4xUnkAVKbjvzivdO+1goMBt1SsopbHjc +JTRzOGotTBBual5m5/K+6N60AxgQC5cNTVzuXZOq+3ehcAEeq1DsT6GvQ2p7xRhR7mM 5LVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FdOZIH6y; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f8-20020a1709063f4800b006f3a96bb6d9sor3503330ejj.2.2022.05.20.01.26.31 for (Google Transport Security); Fri, 20 May 2022 01:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:9e83:b0:6fe:9f59:a4a4 with SMTP id fx3-20020a1709069e8300b006fe9f59a4a4mr4826758ejc.163.1653035190733; Fri, 20 May 2022 01:26:30 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-53-154.cust.vodafonedsl.it. [188.217.53.154]) by smtp.gmail.com with ESMTPSA id el9-20020a170907284900b006f3ef214e55sm2896544ejc.187.2022.05.20.01.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 01:26:30 -0700 (PDT) From: Tommaso Merciai To: Cc: linux-amarula@amarulasolutions.com, Tommaso Merciai , Fabio Estevam Subject: [PATCH 6/8] imx8mm_evk: Add an entry for USB boot Date: Fri, 20 May 2022 10:26:21 +0200 Message-Id: <20220520082623.1788887-7-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> References: <20220520082623.1788887-1-tommaso.merciai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FdOZIH6y; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add an entry for USB boot so that U-Boot could be loaded via the Serial Download Protocol. Signed-off-by: Fabio Estevam Signed-off-by: Tommaso Merciai --- 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 7eeec6c485..a92a12a511 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;