From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] at91sam9x5: add pmecc support
Date: Wed, 17 Oct 2012 20:04:24 +0200 [thread overview]
Message-ID: <1350497065-21893-2-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1350497065-21893-1-git-send-email-plagnioj@jcrosoft.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/mach-at91/at91sam9x5_devices.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/at91sam9x5_devices.c b/arch/arm/mach-at91/at91sam9x5_devices.c
index 26a380d..4e59d8d 100644
--- a/arch/arm/mach-at91/at91sam9x5_devices.c
+++ b/arch/arm/mach-at91/at91sam9x5_devices.c
@@ -135,9 +135,19 @@ static struct resource nand_resources[] = {
},
[1] = {
.start = AT91_BASE_SYS + AT91_PMECC,
- .end = AT91_BASE_SYS + AT91_PMECC + 512 - 1,
+ .end = AT91_BASE_SYS + AT91_PMECC + 0x600 - 1,
.flags = IORESOURCE_MEM,
- }
+ },
+ [2] = {
+ .start = AT91_BASE_SYS + AT91_PMERRLOC,
+ .end = AT91_BASE_SYS + AT91_PMERRLOC + 0x200 - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [3] = {
+ .start = AT91SAM9X5_ROM_BASE,
+ .end = AT91SAM9X5_ROM_BASE + AT91SAM9X5_ROM_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
};
void __init at91_add_device_nand(struct atmel_nand_data *data)
@@ -150,6 +160,8 @@ void __init at91_add_device_nand(struct atmel_nand_data *data)
csa = at91_sys_read(AT91_MATRIX_EBICSA);
at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_EBI_CS3A_SMC_NANDFLASH);
+ data->pmecc_lookup_table_offset = 0x8000;
+
/* enable pin */
if (data->enable_pin)
at91_set_gpio_output(data->enable_pin, 1);
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-10-17 18:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-17 18:00 [PATCH 0/3] at91sam9x5 add nand " Jean-Christophe PLAGNIOL-VILLARD
2012-10-17 18:04 ` [PATCH 1/3] nand: atmel add " Jean-Christophe PLAGNIOL-VILLARD
2012-10-17 18:04 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-10-17 18:04 ` [PATCH 3/3] at91sam9x5ek: switch to hw pmecc nand support Jean-Christophe PLAGNIOL-VILLARD
2012-10-21 8:34 ` [PATCH 0/3] at91sam9x5 add nand pmecc support Sascha Hauer
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=1350497065-21893-2-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.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