From patchwork Sun May 15 09:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Nazzareno Trimarchi X-Patchwork-Id: 1949 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 65E513F02E for ; Sun, 15 May 2022 11:31:57 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id s29-20020a50ab1d000000b00427e495f00csf7767193edc.14 for ; Sun, 15 May 2022 02:31:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652607117; cv=pass; d=google.com; s=arc-20160816; b=FznNULE8mWUPC8pZNHafTjIT3jW6Sen4dS8VAyMwi09gE2e92hNK49dr1MEDiiDrYC cCAp3zC5ytJQlaCkBhVVSG3txT6wncGarA0WjphNZczcbLA5zLOeJQ9hDsyJWwDng9NP riXQC/o0AqOID0e5u1BhL5ODJY5gcPlGibTMqSv3/05C30MJdfND7FLWSRzZvpHrFojF Rm7BBw27EHiqj2dIO6Nh99e4Z4jpxZ+Qr5JourXm6mYz9Q4vgGEwLygQ0ifnzVPFYLP4 kn9sKXPvcpnmLJ/SrXi4yduuYzLMIvlKwlC5RzGgqjHYHi0IqwGrS1kkD300FhCWKyGO N+Jw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=vTue+s4PghITrhzp22vZo2IKhCqIYtN0MNk4dp7nIWc=; b=dLrCWyKXP/rKNdrtM408ExLYcqqxUj5l+4a/k5tkuJJDsA/gAmaXZnwBAEBgj6TZlY mk0m/RrKOjy/7UvRcV0UlDfrDQX3cNVbMxDrapSitDH9VO+vGvsiCaf1Q+sZXFHBy9zE ai4PBakZwOkrukZd6S6YsGgisxqctHnqJpIvQUx0PqT9pIc0CMKm013PIWYsEkIhYX7Q reO0gUwMTNHO4pTSOg0+1A7cBX1xN+4/28Me8quc1Y4LNZK+7BHnHA4/zgph6vnM+Nn1 zOnAgMfUBE5f/sTRVupx2mRoaMz2VvcsGlSyh1povzpmZpSejRgqm/HccqJnsbALhlW1 jQKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZM7LNN6j; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=vTue+s4PghITrhzp22vZo2IKhCqIYtN0MNk4dp7nIWc=; b=pfxbeEA67+YXbePcpgDHrO71HwKnyxukW06zBjZVylHyWep3l0ar/eN5IaBxniY78I or1XC/8q9BXCIF8BcnVuRgqQbkT6VKRvhGtZdYgoWBGuRlIKlkDOZz42QlJca4eBEqSk npYti00JP3+GDdYXsFoKTmvH+P+3ScRQxM67c= 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: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=vTue+s4PghITrhzp22vZo2IKhCqIYtN0MNk4dp7nIWc=; b=VszVvNT2C1YHyTCkB8MnyzUsrugmrWmvt/NEXZLwKUmsQ83+OOGfDCdjKV88dlcbuH xagyqoPH6s5qdHLaxaXt9bjDTx28/iW0SjEKQkssI680ZgDmkLakHVFcSs/sEVTRfz5a JwC5rutVu2/6SDvaa/ZTpRFXAhluA2f+PDakRviJO2rM0/703coIOmSi2qcxeNO/ipnO Y3AuQaIrD5eioGWBUzF/Xa6Cs72hrEKins92tGHmhibxjs0CSAjVNcxgvBLACpdWTq+5 NTPMEM32CoyqQAdDdZ6ptasvsgznf6WymgNLF3NAb0r/i4Egi+Y68NbeU8aGESXDMi9j TE5Q== X-Gm-Message-State: AOAM533mS+d+SVVEpMRkD0u6qWpkNl7IA7kA2UUXblcDY8UEwRs/GVLZ cNSINMtH8DODiKB68w1N6H967rRc X-Google-Smtp-Source: ABdhPJwkEbJy4GG/FXD4B5DTepQupkDtLUq+lMHnBWRFgS5+EAUAtUnkqOEQX9lakmKspniUESly1w== X-Received: by 2002:a17:906:54c3:b0:6ef:d07b:c8ec with SMTP id c3-20020a17090654c300b006efd07bc8ecmr10820589ejp.687.1652607116946; Sun, 15 May 2022 02:31:56 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:3f8a:b0:6f4:31e5:5c0 with SMTP id hr10-20020a1709073f8a00b006f431e505c0ls6002557ejc.4.gmail; Sun, 15 May 2022 02:31:55 -0700 (PDT) X-Received: by 2002:a17:907:72d0:b0:6f5:108c:a34 with SMTP id du16-20020a17090772d000b006f5108c0a34mr10966431ejc.218.1652607115465; Sun, 15 May 2022 02:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652607115; cv=none; d=google.com; s=arc-20160816; b=P256D04Y50n5MdNkg3XX06OlJ/CcReOiAQy7P84r05yhD5mtJyrEZaHg9X1T03Qlnf L76J5kTPapsuFq+hqAFeackU2s9lYe8EGmZt3w7QzkcBfnbXMD77JNv2yivhEgmIgjEs HO1ZKXOzpeU6rlk/4uGGT/KwXKGsrLLaAZqNdmFMSFw+EhOcmxUgMKvyj28uetpc8OC8 byFF8BckUO3HnkVDRxVlQ/PZls/glqSe+3cHC+StvggL7rY6CBPGtyBzDOjTyIn6a7Bu wYAlPdkO0kILj79hpGmIaTbMvaEiGEOH1Hd/iVlMNPePwi6qn8KAZPYcZBRSh8IDkxoX Uhow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=ZSuqSBUGc8fAMe4diPajlZe1A0u5eHe2EuFT/9yueuo=; b=qt+LBeA6e0mMQXu86e8vwVgwn6GekqcSCAeaGR406CrGM/uMVhUdkLWcnmf4X+BkWG aJti2MaUk7azyQm+Nq872W+Aq3XruP9BjeEgYBuP1kgG0xO41Cs+HtlOi49TLQI5BZcZ ThpW1u02oCQsfpGCyX6rtmc0Nx3ClB/X82IglO8nizBoHxL3iJX29gW1duRufvKR41h5 sm4PF9f1MMANozDI12ip1Jo1RTrDg3PoTOvxodjRmH6+0IfotX1lmeZlwTng96eHG3Kq PMa11n6AaDq3rkCz2EoWQwEueQgy24uBULczwWXUtflmgOkMAn0biMRx429gjzCliuaP AeqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ZM7LNN6j; 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 u3-20020aa7db83000000b0042a628e69a2sor1517492edt.61.2022.05.15.02.31.55 for (Google Transport Security); Sun, 15 May 2022 02:31:55 -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:a05:6402:1148:b0:416:a4fb:3c2e with SMTP id g8-20020a056402114800b00416a4fb3c2emr7425783edw.182.1652607115158; Sun, 15 May 2022 02:31:55 -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 d4-20020a170907272400b006f3ef214dfesm2507929ejl.100.2022.05.15.02.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:31:54 -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 V3 5/5] board: bsh: Switch to nand spl load instead of romapi Date: Sun, 15 May 2022 11:31:51 +0200 Message-Id: <20220515093151.1736757-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 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=ZM7LNN6j; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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(+) --- 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; }