From: Wolfgang Grandegger <wg@grandegger.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] TQM85xx: NAND support via local bus UPMB
Date: Sat, 31 May 2008 09:06:42 +0200 [thread overview]
Message-ID: <4840F902.7020103@grandegger.com> (raw)
In-Reply-To: <20080530182858.GA28822@polina.dev.rtsoft.ru>
Anton Vorontsov wrote:
> On Fri, May 30, 2008 at 08:00:32PM +0200, Wolfgang Grandegger wrote:
> [...]
>> Fix that, but I can still not access the device properly. I'm a bit
>> puzzled because it uses a different algorithm to access the device.
>> While my and the Linux fsl_upm driver uses NAND_ALE, NAND_CLE and
>> friends to manage the access via hwcontrol callback, the fsl_upm driver
>> of U-Boot uses the cmdfunc callback doing different things.
>
> I wonder if your NAND chip is a large page one? Because currently
> fsl_upm_nand hardcodes OOB stuff (bad thing, but with old mtd subsystem
> I didn't find better way ;-).
On my TQM8548 there is a Micron MT29F8G08FABWP, page size 2048 + 64
bytes, block size 128K + 4K bytes.
> As for u-boot and linux doing different things... with this patch
> u-boot and linux are identical:
>
> http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot/u-boot-nand-flash.git;a=commitdiff;h=dffa9a8b31b2c21fd3a72ba1f58dd04911b95b6f
>
> This is in U-Boot's mtd-2.6.22.1 branch though. :-/ Your approach with hwctl
> seem to be more universal (for old mtd subsystem), since it doesn't duplicate
> MTD cmdfunc, thus should work for all NAND chips...
A closer look to the code confirms that.
> Could you prepare a patch that replacing fsl_upm_nand.c's current logic
> with yours (that should work for your NAND chip), and I'll test it
> on MPC8360E-RDK?
The attached preliminary patch works for me. Compared to my specific
driver, it saves start_pattern and end_pattern calls :-).
It now also supports a bus width of 8, 16 and 32 bits and width is now
in bits like in the Linux driver. I'm going to prepare a proper patch
series beginning of next week.
Wolfgang.
next prev parent reply other threads:[~2008-05-31 7:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 18:12 [U-Boot-Users] [PATCH 0/12] 85xx: various fixes for TQM85xx and support for TQM8548 Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] MPC85xx: Beatify boot output of L2 cache configuration Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Various coding style fixes Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Fix CPM port pin configuration Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Support for Spansion 'N' type flashes added Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Fix chip select configuration for second FLASH bank Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Bugfix in the SDRAM initialisation Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Support for Intel 82527 compatible CAN controller Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Support for Flat Device Tree Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM8548: Basic support for the TQM8548 modules Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM8548: PCI express support Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: NAND support via local bus UPMB Wolfgang Grandegger
2008-05-28 18:12 ` [U-Boot-Users] [PATCH] TQM85xx: Change memory map to support Flash memory > 128 MiB Wolfgang Grandegger
2008-05-28 18:25 ` [U-Boot-Users] [PATCH] TQM85xx: NAND support via local bus UPMB Scott Wood
2008-05-28 18:38 ` Wolfgang Grandegger
2008-05-29 11:39 ` Anton Vorontsov
2008-05-29 11:58 ` Wolfgang Grandegger
2008-05-29 12:44 ` Anton Vorontsov
2008-05-30 18:00 ` Wolfgang Grandegger
2008-05-30 18:28 ` Anton Vorontsov
2008-05-31 7:06 ` Wolfgang Grandegger [this message]
2008-05-31 7:11 ` Wolfgang Grandegger
2008-06-02 10:06 ` Wolfgang Grandegger
2008-06-03 3:15 ` [U-Boot-Users] [PATCH] MPC85xx: Beatify boot output of L2 cache configuration Andy Fleming
2008-06-03 7:28 ` Wolfgang Grandegger
2008-06-03 16:50 ` Detlev Zundel
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=4840F902.7020103@grandegger.com \
--to=wg@grandegger.com \
--cc=u-boot@lists.denx.de \
/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.