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 V4 5/5] board: bsh: Switch to nand spl load instead of romapi
Date: Sun, 15 May 2022 11:35:34 +0200 [thread overview]
Message-ID: <20220515093534.1737172-6-michael@amarulasolutions.com> (raw)
In-Reply-To: <20220515093534.1737172-1-michael@amarulasolutions.com>
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(+)
---
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
next prev parent reply other threads:[~2022-05-15 9:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-15 9:35 [PATCH V4 0/5] MXS nand fixes in SPL Michael Trimarchi
2022-05-15 9:35 ` [PATCH V4 1/5] nand: raw: mxs_nand: Fix specific hook registration Michael Trimarchi
2022-05-20 13:42 ` sbabic
2022-05-15 9:35 ` [PATCH V4 2/5] mtd: nand: mxs_nand_spl: Fix bad block skipping Michael Trimarchi
2022-05-20 13:43 ` sbabic
2022-05-15 9:35 ` [PATCH V4 3/5] arm: mach-imx: cmd_nandbcb fix bad block handling Michael Trimarchi
2022-05-20 13:42 ` sbabic
2022-05-15 9:35 ` [PATCH V4 4/5] spl: spl_nand: Fix bad block handling in fitImage Michael Trimarchi
2022-05-20 13:41 ` sbabic
2022-05-15 9:35 ` Michael Trimarchi [this message]
2022-05-18 10:17 ` [PATCH V4 5/5] board: bsh: Switch to nand spl load instead of romapi Michael Nazzareno Trimarchi
2022-05-18 11:53 ` Stefano Babic
2022-05-15 12:54 ` [PATCH V4 0/5] MXS nand fixes in SPL Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220515093534.1737172-6-michael@amarulasolutions.com \
--to=michael@amarulasolutions.com \
--cc=ariel.dalessandro@collabora.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=festevam@denx.de \
--cc=han.xu@nxp.com \
--cc=jagan@amarulasolutions.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=miquel.raynal@bootlin.com \
--cc=sbabic@denx.de \
--cc=sean.anderson@seco.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox