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 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 A1244C433F5 for ; Sun, 15 May 2022 09:36:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A765684239; Sun, 15 May 2022 11:36:18 +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="VDKNMBIo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E07884099; Sun, 15 May 2022 11:36:00 +0200 (CEST) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 1E9DE83F72 for ; Sun, 15 May 2022 11:35:53 +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-x532.google.com with SMTP id fd25so2212720edb.3 for ; Sun, 15 May 2022 02:35:53 -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=mbjhTBV4XTaJwZYpjbu7yvB0TE9D8NnLKT3iIb8KdSg=; b=VDKNMBIoZD/p6aYHWF4nrM7/cT9l0U43uR0zIyz3phzMzqUmHLjN/2/f7ox2hZp9KH CygDqoy4fQ/QCADfPcXVXaSuM9yC7YWACYFKl5ThUbkShkF5HY+U3kCVUuM8YBAaY6X2 9Sa0YT9ItvX8g18Q9M794uSQdxqb6tFS2kIoM= 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=mbjhTBV4XTaJwZYpjbu7yvB0TE9D8NnLKT3iIb8KdSg=; b=tFUuEJ0leoHEXM9qeJ0kO5jTwBrGtog79htooQcwHAh7PHaPweMkXLZLR5XGECR3EI vXchbgIE/ztu4b/sgKQeMTXnSNEZEvkqmnG1B4sT8pbUO9gQhLGAg6nHO1zjLwAG/K8u JipPabwHiGQ4Ij5QFmHjXFrIVG5Zdha3InWl+gt1o9mxVQNqldz8crI8TSHq4f9mSjpe JiWTh2U3B1Pr13YkGQLMwsmwhB3OSIlBMcn5RJUUAZIyV2h8aouSBZ3tLa6uRMijpD+I 0G85QWEsWPQsQHf/7jBHTy1NGs3tEwfCTZF0Jq7oPnMk7MIZik1hl646wyTeJNOCTSm1 gnsA== X-Gm-Message-State: AOAM533TENKywIhMlipUMATK/Jnp3BkrdmeyD2VY3sR+xgujn4/5vb9E CycfRFmVNcOusIr5KvdNk0o2nw== X-Google-Smtp-Source: ABdhPJyaQEZz90C7+3yEe4yO5IztytR4NJCrpmuysMn7TqJI8+kfH+VB2f0RgGNsmheNi81Lw+k2Ug== X-Received: by 2002:a05:6402:354a:b0:427:d0e1:8ef3 with SMTP id f10-20020a056402354a00b00427d0e18ef3mr7524166edd.66.1652607352325; Sun, 15 May 2022 02:35:52 -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 p6-20020a17090664c600b006f3ef214de8sm2516582ejn.78.2022.05.15.02.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:35:51 -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 V4 5/5] board: bsh: Switch to nand spl load instead of romapi Date: Sun, 15 May 2022 11:35:34 +0200 Message-Id: <20220515093534.1737172-6-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220515093534.1737172-1-michael@amarulasolutions.com> References: <20220515093534.1737172-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(+) --- V3->V4: - none V2->V3: - Add to series and fix if condition V1->V2: - none --- diff --git a/board/bsh/imx8mn_smm_s2/spl.c b/board/bsh/imx8mn_smm_s2/spl.c index 0f61acc630..097b60c055 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