linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mx31pdk: Add NAND support
@ 2010-02-25 22:22 Fabio Estevam
  2010-02-25 22:33 ` Alberto Panizzo
  0 siblings, 1 reply; 23+ messages in thread
From: Fabio Estevam @ 2010-02-25 22:22 UTC (permalink / raw)
  To: linux-arm-kernel


--- On Thu, 2/25/10, Fabio Estevam <fabioestevam@yahoo.com> wrote:

...

> > 
> > Are you sure that this works? Don't you see a lot of
> Bad
> > blocks reports
> > in boot messages?
> 
> I followed the same approach used on other i.MX boards.
> This is what I see:
> ...
> NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung
> NAND 256MiB 1,8V 8-bit)? ? ? ? ?
> Scanning device for bad blocks? ? ? ?
> Bad eraseblock 42 at 0x000000540000? ? ?
> Bad eraseblock 125 at 0x000000fa0000? ? ?
> Bad eraseblock 887 at 0x000006ee0000? ? ?
> Bad eraseblock 1750 at 0x00000dac0000? ? ?
> Bad eraseblock 2046 at 0x00000ffc0000? ? ?
> Bad eraseblock 2047 at 0x00000ffe0000? ? ?
> ? ? ? ? ? ? ? ?

Just looked at what Redboot reported:

++Searching for BBT table in the flash ...                                      
.                                                                               
Found version 1 Bbt0 at block 2047 (0xffe0000)                                  
Block 42 is bad                                                                 
Block 125 is bad                                                                
Block 887 is bad                                                                
Block 1750 is bad                                                               
Total bad blocks: 4   

So the only mismatch is 2046 eraseblock.

Regards,

Fabio Estevam


      

^ permalink raw reply	[flat|nested] 23+ messages in thread
* [PATCH] mx31pdk: Add NAND support
@ 2010-02-25  0:58 Fabio Estevam
  2010-02-25 10:58 ` Alberto Panizzo
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Fabio Estevam @ 2010-02-25  0:58 UTC (permalink / raw)
  To: linux-arm-kernel

Add NAND support to MX31PDK board.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-mx3/mach-mx31_3ds.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c
index b88c18a..2d78754 100644
--- a/arch/arm/mach-mx3/mach-mx31_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx31_3ds.c
@@ -34,6 +34,7 @@
 #include <mach/board-mx31pdk.h>
 #include <mach/imx-uart.h>
 #include <mach/iomux-mx3.h>
+#include <mach/mxc_nand.h>
 #include "devices.h"
 
 /*!
@@ -80,6 +81,11 @@ static struct resource smsc911x_resources[] = {
 	},
 };
 
+static struct mxc_nand_platform_data mx31pdk_nand_board_info = {
+	.width = 1,
+	.hw_ecc = 1,
+};
+
 static struct platform_device smsc911x_device = {
 	.name		= "smsc911x",
 	.id		= -1,
@@ -236,6 +242,7 @@ static void __init mxc_board_init(void)
 				      "mx31pdk");
 
 	mxc_register_device(&mxc_uart_device0, &uart_pdata);
+	mxc_register_device(&mxc_nand_device, &mx31pdk_nand_board_info);
 
 	if (!mx31pdk_init_expio())
 		platform_device_register(&smsc911x_device);
-- 
1.6.0.4


      

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-02-27 16:17 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 22:22 [PATCH] mx31pdk: Add NAND support Fabio Estevam
2010-02-25 22:33 ` Alberto Panizzo
2010-02-25 22:52   ` Fabio Estevam
  -- strict thread matches above, loose matches on Subject: below --
2010-02-25  0:58 Fabio Estevam
2010-02-25 10:58 ` Alberto Panizzo
2010-02-25 22:09   ` Fabio Estevam
2010-02-26  9:36     ` Uwe Kleine-König
2010-02-26 10:19       ` Alberto Panizzo
2010-02-26 10:46         ` Uwe Kleine-König
2010-02-26 11:05           ` Alberto Panizzo
2010-02-26 13:14             ` Ivo Clarysse
2010-02-25 11:12 ` Alberto Panizzo
2010-02-25 21:59   ` Fabio Estevam
2010-02-25 22:19     ` Alberto Panizzo
2010-02-26  9:56     ` Juergen Beisert
2010-02-26 10:33       ` Alberto Panizzo
2010-02-26 11:48         ` Juergen Beisert
2010-02-26 13:29           ` Alberto Panizzo
2010-02-26 13:40             ` Juergen Beisert
2010-02-27  1:34 ` Fabio Estevam
2010-02-27 14:25   ` Alberto Panizzo
2010-02-27 15:38     ` Fabio Estevam
2010-02-27 16:17       ` Alberto Panizzo

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).