From: Ivo Clarysse <ivo.clarysse@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] MX21: Fix nand booting
Date: Mon, 22 Mar 2010 15:57:47 +0100 [thread overview]
Message-ID: <ba216b431003220757q3cc1dc6s267c6e760bb7f313@mail.gmail.com> (raw)
Fixes booting from NAND on i.MX21-based systems.
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
---
diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
index afd5637..2eac6fe 100644
--- a/drivers/nand/nand_imx.c
+++ b/drivers/nand/nand_imx.c
@@ -1085,12 +1085,18 @@ void __nand_boot_init imx_nand_load_image(void
*dest, int size)
writew(0x4, host.regs + NFC_WRPROT);
tmp = readw(host.regs + NFC_CONFIG1);
+#ifdef CONFIG_ARCH_IMX21
+ tmp |= NFC_ECC_EN;
+ tmp &= ~NFC_INT_MSK;
+ writew(tmp, host.regs + NFC_CONFIG1);
+#else
tmp |= NFC_ECC_EN | NFC_INT_MSK;
if (nfc_is_v21())
/* currently no support for 218 byte OOB with stronger ECC */
tmp |= NFC_ECC_MODE;
tmp &= ~NFC_SP_EN;
writew(tmp, host.regs + NFC_CONFIG1);
+#endif /* CONFIG_ARCH_IMX21 */
if (nfc_is_v21()) {
if (host.pagesize_2k) {
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2010-03-22 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 14:57 Ivo Clarysse [this message]
2010-03-23 7:48 ` Sascha Hauer
[not found] ` <ba216b431003240217k4348191fn5b651bb36c9dbf47@mail.gmail.com>
2010-03-24 9:19 ` Ivo Clarysse
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=ba216b431003220757q3cc1dc6s267c6e760bb7f313@mail.gmail.com \
--to=ivo.clarysse@gmail.com \
--cc=barebox@lists.infradead.org \
/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