Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E5380C433F5 for ; Sun, 15 May 2022 09:27:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22F4B84184; Sun, 15 May 2022 11:26:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.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=amarulasolutions.com header.i=@amarulasolutions.com header.b="agXqkaKY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 99033840DE; Sun, 15 May 2022 11:26:14 +0200 (CEST) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 381BC84197 for ; Sun, 15 May 2022 11:25:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@amarulasolutions.com Received: by mail-ed1-x52f.google.com with SMTP id er5so1257115edb.12 for ; Sun, 15 May 2022 02:25:54 -0700 (PDT) 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:content-transfer-encoding; bh=DAT1p9zvkasU+WLS+OJcn3KlBC2sHgpNgRKfH6x1mzU=; b=agXqkaKYs7zXjLTMxMGKQet1RpeNf3voNDLpQMSla5JDkBxVXmy+GtGrLB8fSWS2gi F3JzXcx7NsN9TQ6/GaWvfAiRhNcnp+nY3hWI4anZty0s4l/Z6snRs/NJB6/ygMwEedPB T2HUIxLAI/qH03O4P7xKwVxridYyy8R0K42mg= 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:content-transfer-encoding; bh=DAT1p9zvkasU+WLS+OJcn3KlBC2sHgpNgRKfH6x1mzU=; b=oKXvUOxxch+tCimqmXpwUDf5wvl4/macaxt4TEb6UZzCBDrhRjIexptBFl7tjcqkMB jXxb6To+8eSQyyB+pXLrRBWn9U/kdSbpDiypZfknAk7VrNsBlSLnTcnuZKbcm9jfSIqt S3doVExG/PnQD0+UIv4Md2BF97b1tvCDba5b0Lto7kbHw5rdV12yV6EctMN+ar8Sgvsw Cm8Np+mIi48fefpRsnCxfdarGC9vCpPaZ32oBsc5bLlWvSta/qu/6uidBFr/iYOfNTPY hX5exDnC9a1x16nFKp654W9bv43BwjAWYrr5LOe5zqgjIRBKwQ0GKBd2eoiSWnApJApr HTIQ== X-Gm-Message-State: AOAM5328b6ky2NCgQsA4M9IxtzuFT+HSfqQyoJnsyH8dmTp+cZug+hPz tjSCFY5CO4FSZWmHinmVBfRhBw== X-Google-Smtp-Source: ABdhPJwkTFVfLR3R2VkKvS4Q+04wqBmlXdgmSF+xZYmhIWKGivTBqoMvDUIZO8eBk/n/oO6jKP0H+w== 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 To: Han Xu , U-Boot-Denx Cc: Ye Li , Stefano Babic , Miquel Raynal , Fabio Estevam , Dario Binacchi , Sean Anderson , linux-amarula@amarulasolutions.com, Jagan Teki , Ariel D'Alessandro , Tom Rini 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 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean romapi is not eble to skip bad block so we need to workaround using the spl Signed-off-by: Michael Trimarchi --- board/bsh/imx8mn_smm_s2/spl.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.25.1