From: plagnioj@jcrosoft.com (Jean-Christophe PLAGNIOL-VILLARD)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/3] at91: 9x5: add DT parameters to enable PMECC
Date: Thu, 17 Jan 2013 20:38:14 +0100 [thread overview]
Message-ID: <20130117193814.GH7360@game.jcrosoft.org> (raw)
In-Reply-To: <1358393072-14794-3-git-send-email-josh.wu@atmel.com>
On 11:24 Thu 17 Jan , Josh Wu wrote:
> Default ecc correctable setting is 2bits in 512 bytes.
full name sam the soc
>
> Signed-off-by: Josh Wu <josh.wu@atmel.com>
> ---
> change log:
> v2: rebase to v3.8-rc3
>
> arch/arm/boot/dts/at91sam9x5.dtsi | 4 ++++
> arch/arm/boot/dts/at91sam9x5cm.dtsi | 5 ++++-
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
> index 40ac3a4..eedc191 100644
> --- a/arch/arm/boot/dts/at91sam9x5.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5.dtsi
> @@ -480,7 +480,11 @@
> #address-cells = <1>;
> #size-cells = <1>;
> reg = <0x40000000 0x10000000
> + 0xffffe000 0x600 /* PMECC Registers */
> + 0xffffe600 0x200 /* PMECC Error Location Registers */
> + 0x00100000 0x100000 /* ROM code */
I do not like this at all we request 1M of memory where we jsut need a few for
the tables
Best Regards,
J.
> >;
> + atmel,pmecc-lookup-table-offset = <0x8000 0x10000>;
> atmel,nand-addr-offset = <21>;
> atmel,nand-cmd-offset = <22>;
> pinctrl-names = "default";
> diff --git a/arch/arm/boot/dts/at91sam9x5cm.dtsi b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> index 31e7be2..4027ac7 100644
> --- a/arch/arm/boot/dts/at91sam9x5cm.dtsi
> +++ b/arch/arm/boot/dts/at91sam9x5cm.dtsi
> @@ -26,7 +26,10 @@
> ahb {
> nand0: nand at 40000000 {
> nand-bus-width = <8>;
> - nand-ecc-mode = "soft";
> + nand-ecc-mode = "hw";
> + atmel,has-pmecc; /* Enable PMECC */
> + atmel,pmecc-cap = <2>;
> + atmel,pmecc-sector-size = <512>;
> nand-on-flash-bbt;
> status = "okay";
>
> --
> 1.7.9.5
>
next prev parent reply other threads:[~2013-01-17 19:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 3:24 [PATCH v2 0/3] at91: PMECC: enable PMECC in dt for at91sam9x5ek, at91sam9n12ek Josh Wu
2013-01-17 3:24 ` [PATCH v2 1/3] MTD: at91: atmel_nand: for PMECC, add code to choose the ecc bits and sector size according to the ONFI parameter ECC requirement Josh Wu
2013-01-17 3:24 ` [PATCH v2 2/3] at91: 9x5: add DT parameters to enable PMECC Josh Wu
2013-01-17 19:38 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2013-01-17 3:24 ` [PATCH v2 3/3] at91: at91sam9n12: " Josh Wu
2013-01-17 19:36 ` Jean-Christophe PLAGNIOL-VILLARD
2013-01-17 12:12 ` [PATCH v2 0/3] at91: PMECC: enable PMECC in dt for at91sam9x5ek, at91sam9n12ek Artem Bityutskiy
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=20130117193814.GH7360@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).