From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Radensky Date: Tue, 07 Dec 2010 12:50:14 +0200 Subject: [U-Boot] Multiple chip support in ndfc driver In-Reply-To: <201012061109.36445.sr@denx.de> References: <4CFBA136.9030808@embedded-sol.com> <201012061109.36445.sr@denx.de> Message-ID: <4CFE1166.8030800@embedded-sol.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, Thanks for a prompt reply. Stefan Roese wrote: > Hi Felix, > > On Sunday 05 December 2010 15:27:02 Felix Radensky wrote: > >> On a custom 460EX board I have a 2Gbyte NAND device, 1Gbyte per chip >> select. I'm trying to enable support for the second NAND CS, so far >> without success. >> >> U-Boot properly detects both devices, (manufacturer, size, bus width). >> First device >> works as expected, on second device bad blocks are reported correctly, >> but attempt >> to erase the device results in I/O errors on every block. The bank >> settings are identical >> for both chips. >> >> What am I missing ? >> > > Perhaps a misconfiguration in your board config header? How did you configure > the NAND driver? Take a look at DU440.h or bamboo.h for example. Those boards > use multiple NAND devices. > > Thanks for the hint. I've looked at these boards, and I cannot see what's wrong with my configuration. Since second chip is properly detected, I think configuration is correct. Read also works, only erase and program fail. Looks like a hardware problem to me. >> BTW, I was wandering why NAND TLB window size on Canyonlands is 16Mbytes. >> > > Yes. This TLB could be smaller. 1KiB should be enough. Patch welcome. ;) > > OK, I'll send the patch. Felix.