From: Rodolfo Giometti <giometti@enneenne.com>
To: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>,
"Michele Dionisio" <michele@cynny.com>,
linux-mtd@lists.infradead.org,
"Gregory Clément" <gregory.clement@free-electrons.com>,
"Brian Norris" <computersforpeace@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: NAND support for Armada 370
Date: Thu, 9 Jan 2014 17:33:26 +0100 [thread overview]
Message-ID: <20140109163326.GD17831@enneenne.com> (raw)
In-Reply-To: <20140108233603.GB2595@localhost>
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
On Wed, Jan 08, 2014 at 08:36:03PM -0300, Ezequiel Garcia wrote:
> Hi Rodolfo,
>
> Sorry for being so unresponsive these days, I've been on vacation.
> I'll review your patch on Monday.
Ok.
> In fact, already took a quick look and it looks good. I have a few
> doubts:
>
> 1. Do we need the ECC layout? (MTD already provides defaults)
Ok, I did some testes and we can safely remove it! :)
> 2. Is this compatible with Marvell's U-Boot? (can you write from U-Boot,
> and read from Linux, and viceversa?)
Till now all our tests are ok! :)
Attached is the new patch release.
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
[-- Attachment #2: 0001-mtd-pxa3xx_nand.c-add-support-for-2048-bytes-page-si.patch --]
[-- Type: text/x-diff, Size: 1192 bytes --]
>From 4463f70a77f6aaea216b53e620171c37fb1d4eb3 Mon Sep 17 00:00:00 2001
From: Rodolfo Giometti <giometti@linux.it>
Date: Mon, 6 Jan 2014 16:18:49 +0100
Subject: [PATCH] mtd pxa3xx_nand.c: add support for 2048 bytes page size
layout
Tested-by: Michele Dionisio <michele@cynny.com>
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
drivers/mtd/nand/pxa3xx_nand.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index 31aae53..fdc179c 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1360,6 +1360,16 @@ static int pxa_ecc_init(struct pxa3xx_nand_info *info,
* Required ECC: 4-bit correction per 512 bytes
* Select: 16-bit correction per 2048 bytes
*/
+ } else if (strength == 4 && ecc_stepsize == 512 && page_size == 2048) {
+ info->ecc_bch = 1;
+ info->chunk_size = 2048;
+ info->spare_size = 32;
+ info->ecc_size = 32;
+ ecc->mode = NAND_ECC_HW;
+ ecc->size = info->chunk_size;
+ ecc->strength = 16;
+ return 1;
+
} else if (strength == 4 && ecc_stepsize == 512 && page_size == 4096) {
info->ecc_bch = 1;
info->chunk_size = 2048;
--
1.8.1.2
WARNING: multiple messages have this Message-ID (diff)
From: giometti@enneenne.com (Rodolfo Giometti)
To: linux-arm-kernel@lists.infradead.org
Subject: NAND support for Armada 370
Date: Thu, 9 Jan 2014 17:33:26 +0100 [thread overview]
Message-ID: <20140109163326.GD17831@enneenne.com> (raw)
In-Reply-To: <20140108233603.GB2595@localhost>
On Wed, Jan 08, 2014 at 08:36:03PM -0300, Ezequiel Garcia wrote:
> Hi Rodolfo,
>
> Sorry for being so unresponsive these days, I've been on vacation.
> I'll review your patch on Monday.
Ok.
> In fact, already took a quick look and it looks good. I have a few
> doubts:
>
> 1. Do we need the ECC layout? (MTD already provides defaults)
Ok, I did some testes and we can safely remove it! :)
> 2. Is this compatible with Marvell's U-Boot? (can you write from U-Boot,
> and read from Linux, and viceversa?)
Till now all our tests are ok! :)
Attached is the new patch release.
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
Freelance ICT Italia - Consulente ICT Italia - www.consulenti-ict.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mtd-pxa3xx_nand.c-add-support-for-2048-bytes-page-si.patch
Type: text/x-diff
Size: 1192 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140109/2c993927/attachment.bin>
next prev parent reply other threads:[~2014-01-09 16:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-02 12:44 NAND support for Armada 370 Rodolfo Giometti
2014-01-02 13:42 ` Thomas Petazzoni
2014-01-02 13:50 ` Rodolfo Giometti
2014-01-03 11:29 ` Rodolfo Giometti
2014-01-03 14:53 ` Ezequiel Garcia
2014-01-03 15:32 ` Rodolfo Giometti
2014-01-06 15:34 ` Rodolfo Giometti
2014-01-08 23:36 ` Ezequiel Garcia
2014-01-08 23:36 ` Ezequiel Garcia
2014-01-09 16:33 ` Rodolfo Giometti [this message]
2014-01-09 16:33 ` Rodolfo Giometti
2014-01-13 11:10 ` Ezequiel Garcia
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=20140109163326.GD17831@enneenne.com \
--to=giometti@enneenne.com \
--cc=computersforpeace@gmail.com \
--cc=ezequiel.garcia@free-electrons.com \
--cc=gregory.clement@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=michele@cynny.com \
--cc=thomas.petazzoni@free-electrons.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.