Message ID | 20220515092538.1736154-6-michael@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCXK73FY3AFRBIUOQOKAMGQERTE3NLQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5746F3F18B for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 11:25:55 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id ay24-20020a056402203800b0042a96a76ba5sf1715105edb.20 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 02:25:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652606754; cv=pass; d=google.com; s=arc-20160816; b=lZTSe//U5yklExj5V+Ol3qzugyL6SAj518xMRlIup5pOliMtoIEhjtP6egpDvLeryo Zy+0kqVcL746E7Mo/hmI1yFv9T+rpxfpHsdnaIwxJDMl5sSvFm2AD8VbokBCVT9JJhlg gJSU5WRf1tfpsr3sR3WzJiLxe/TnEV5YKv+x0aXHkkS2UGPMB3/46JITEuAveW0tf1p9 K6TwLWMY7RgNpwmWgk+aljor+VYDUTmR/LlUf7D7M9YdmjoXdmw+0Ba1oj0B1Ns38Acx tzqo2HK0TqrdKHvkt1snoQZgKFSEFbYD7URMIZf7dKg/P7XSe969YXC84f217UlJd4go F1cw== 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=+ovTP/Nuk3eBMS5p4dBTLJ7I0XEVw5i8DJQpOSiy9KY=; b=wHI8YdMCQLKyuDjwMlL0RYeQ9t3kOCtRE7NGtdiai5DZ0suE5YOwonyIg7VoLOr2iG r11Q/dkPrtw44NpJZ56W+IFBa6t7ye1AZDexT1xsvKeerXC1kneR2Zygw5cRq9e48WD2 gb9/R2vrDhm3UIxfK0OesQTAatB/OYLy+kXOkOf4m8b8dt9KiGDyLmhZVcD4SPN09qW9 a3UZ1cQ9cOLBeUPr/Tef3kyj2rEy9S0HFh2wfRo4qQLhrR8G5k8UXL7N7lTXnuFLjnF/ 2D9t4PkL5pLxNS2Upg8EHLp2jbEBrkHGtGQ7gZS+m/YFypozUWvZhF5ssSxuM0ZOAcKt kGHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=agXqkaKY; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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=+ovTP/Nuk3eBMS5p4dBTLJ7I0XEVw5i8DJQpOSiy9KY=; b=Z3LqnrMf+g/ihgLbIws0R7qSbwObXsNLfaXCQetRiR71amtLQiWLwSbso1IF17j3iA UX9VB07ngrtE6s0CwnsUDlcjyDnzt/Ike+nykaOf/rczi4v6eP8kKPseSXnRw+fsSnzY 4N4AI9Djm6XvrytDnD+O5qMERxlsrH8mr3l0I= 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=+ovTP/Nuk3eBMS5p4dBTLJ7I0XEVw5i8DJQpOSiy9KY=; b=NfRFqYLYgQrtVUX2M3v0Jz6NKrfzC8D0uii81drv5ea+tE4bFY4ExcYfO82v6nCJdB SrZd3x3Otvi4COehZErcPF/SgJwLQ272Dx8HS5+VUFgQZeNSIv3gX1U+1I5idJYbfQAV tkPXub7AHd9I3qdKO5GxR5LziRq/7o4roGRLk9WEWQrdsJjH/dkv7Gv5nwjfV2MKVLKJ qKSiCTDj81s750ovgx6KL6sozGX+7hQDH6uuD3shF0zWQhBz1NVFgtoNkID0yu2gz88K xovnY0g0ZKN6Cbw8OBl4PAkamf/XA8T1W43V8GyYSVN5gUA68B6Yoq54rbvDTlDbZv3A SS7g== X-Gm-Message-State: AOAM532XKmfIBHMCN+Y4KPhSXPFpOrMmP4bwp5i8E1O55FMxeJnKKiwO R7SoLgRC9AYj7MzTHS3Cy6GgtQ0w X-Google-Smtp-Source: ABdhPJzIuFwkwFAkhPwzFdpljh2t62W9/H60BTN7q80QrnhPpkbtM/WP7ufb6eetiJsNNTdXjv9vog== X-Received: by 2002:a17:907:d8b:b0:6f4:99e5:78f with SMTP id go11-20020a1709070d8b00b006f499e5078fmr10829129ejc.37.1652606754818; Sun, 15 May 2022 02:25:54 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:26d2:b0:428:f87:ccd8 with SMTP id x18-20020a05640226d200b004280f87ccd8ls3091959edd.1.gmail; Sun, 15 May 2022 02:25:53 -0700 (PDT) X-Received: by 2002:a05:6402:5413:b0:42a:adef:b360 with SMTP id ev19-20020a056402541300b0042aadefb360mr958718edb.122.1652606753609; Sun, 15 May 2022 02:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652606753; cv=none; d=google.com; s=arc-20160816; b=EKJNlJBZ/YSGgP5uuo2p5ndOOaHkK47DzEDDxXDRIgHrUJpzUJ3HDNhoukzC7R2gUr vYqrFmGAF/xHu6tKXqDnxEqdtjENFWL5avGUBxYHW0Kxa52IOOvJreBktoo4vY2knWs4 gfxssHy9PZ5SilVR421XOJ1FioeVCASXjOCRM6jbjySSNe5DqZMKofJRw2xjYOosxIaW sxfNKK2khhoHuJivHwH7PSY1u0mEMEQcDQSAW0Gh9DEgCf5K22v9RfxJQ8ojmWyaBUaV qsz8AoxSI+o6yAJY1pd0d17Gy2+h2jZv4KhUYV66H7mWagiS7gtNsGvdD4M/holZqzPr pgQA== 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=DAT1p9zvkasU+WLS+OJcn3KlBC2sHgpNgRKfH6x1mzU=; b=sBo8b9osQKzB2QORX6w5+IQW7ZENJvtemBe0ntSEyLntUAF47G21Wjhn/kDvFodS2U zODfS0J//tQVj/TZ0PUtneYraM16FN0dL54KU9n7w+3po3iaVpoWEH1dsQ/9JwI+Jin4 6tYFLMq5l0uO6BalKC35iDtdc9kOZ8KHWRDwXKumuwJlDYGllAJ73sLtTvhlRKkm0nBj 6ljA5S8mZZm+rAp0aT8UG4zWqykl/GF28Xo25TGzdNeyMzH2SHLn/ftc4D1HrhvO+0/n 4Lgtr42QgHZ5/P3Ohs60yEd2TZHluU6949Y9IpofzPOpn6GEflcBo0G9S5+BH1NT3GLl SPxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=agXqkaKY; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 y8-20020aa7d508000000b0041cd124088asor3521257edq.31.2022.05.15.02.25.53 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 15 May 2022 02:25:53 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:aa7:d791:0:b0:42a:62a7:a1bd with SMTP id s17-20020aa7d791000000b0042a62a7a1bdmr7387127edq.247.1652606753367; Sun, 15 May 2022 02:25:53 -0700 (PDT) Received: from localhost.localdomain (mob-109-118-140-232.net.vodafone.it. [109.118.140.232]) by smtp.gmail.com with ESMTPSA id m17-20020a17090677d100b006f3ef214dc5sm2509888ejn.43.2022.05.15.02.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:25:52 -0700 (PDT) From: Michael Trimarchi <michael@amarulasolutions.com> To: Han Xu <han.xu@nxp.com>, U-Boot-Denx <u-boot@lists.denx.de> Cc: Ye Li <ye.li@nxp.com>, Stefano Babic <sbabic@denx.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Fabio Estevam <festevam@denx.de>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Sean Anderson <sean.anderson@seco.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Ariel D'Alessandro <ariel.dalessandro@collabora.com>, Tom Rini <trini@konsulko.com> Subject: [PATCH 5/5] board: bsh: Switch to nand spl load instead of romapi Date: Sun, 15 May 2022 11:25:38 +0200 Message-Id: <20220515092538.1736154-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220515092538.1736154-1-michael@amarulasolutions.com> References: <20220515092538.1736154-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=agXqkaKY; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/board/bsh/imx8mn_smm_s2/spl.c b/board/bsh/imx8mn_smm_s2/spl.c index 0f61acc630..e778cd16c4 100644 --- a/board/bsh/imx8mn_smm_s2/spl.c +++ b/board/bsh/imx8mn_smm_s2/spl.c @@ -18,6 +18,9 @@ int spl_board_boot_device(enum boot_device boot_dev_spl) { + if (IS_ENABLED(CONFIG_NAND_MXS) && get_boot_device() == USB_BOOT) + return BOOT_DEVICE_NAND; + return BOOT_DEVICE_BOOTROM; }
romapi is not eble to skip bad block so we need to workaround using the spl Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> --- board/bsh/imx8mn_smm_s2/spl.c | 3 +++ 1 file changed, 3 insertions(+)