From: Mike Dunn <mikedunn@newsguy.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash
Date: Tue, 09 Apr 2013 08:36:41 -0700 [thread overview]
Message-ID: <51643589.70800@newsguy.com> (raw)
In-Reply-To: <1365469141.28843.31@snotra>
On 04/08/2013 05:59 PM, Scott Wood wrote:
> On 04/08/2013 01:25:01 AM, Marek Vasut wrote:
>> Dear Mike Dunn,
>>
>> > This patch adds a driver for the diskonchip G4 nand flash device. It is
>> > based on the driver from the linux kernel.
>> >
>> > This also includes a separate SPL driver. A separate SPL driver is used
>> > because the device operates in a different mode (reliable mode) when
>> > loading a boot image, and also because the storage format of the boot
>> > image is different from normal data (pages are stored redundantly). The
>> > SPL driver basically mimics how a typical IPL reads data from the device.
>> > The special operating mode and storage format are used to compensate for
>> > the fact that the IPL does not contain the BCH ecc decoding algorithm (due
>> > to size constraints). Although the u-boot SPL *could* use ecc, it
>> > operates like an IPL for the sake of simplicity and uniformity, since the
>> > IPL and SPL share the task of loading the u-boot image. As a side benefit,
>> > the SPL driver is very small.
>> >
>> > Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
>>
>> Try #ifdef U_BOOT instead of #if 0, no?
>
> Just remove the code that would be hidden by #if 0. Besides making the U-Boot
> code easier to read, we *want* to get a conflict marker if we try to merge in a
> new upstream version, and those lines were changed in Linux. This would give us
> an opportunity to see if similar changes are needed to the U-Boot version of the
> code.
OK.
>
> Another option would be to introduce for_each_set_bit in U-Boot.
This was my first inclination, but it looked like a lot of work across multiple
architectures, so I let it go.
Thanks,
Mike
next prev parent reply other threads:[~2013-04-09 15:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-07 16:40 [U-Boot] [PATCH 0/8] palm treo 680 smartphone board support Mike Dunn
2013-04-07 16:40 ` [U-Boot] [PATCH 1/8] pxa_lcd: add the ACX544AKN lcd device Mike Dunn
2013-04-07 16:40 ` [U-Boot] [PATCH 2/8] pxa_lcd: make lcd_enable() a weak pointer Mike Dunn
2013-04-07 19:08 ` Fabio Estevam
2013-04-08 17:49 ` Mike Dunn
2013-04-07 16:41 ` [U-Boot] [PATCH 3/8] pxa_lcd: allow L_BIAS line to be unused Mike Dunn
2013-04-08 5:28 ` Marek Vasut
2013-04-09 17:02 ` Mike Dunn
2013-04-07 16:41 ` [U-Boot] [PATCH 4/8] pxa27x_udc: remove call to unimplemented set_GPIO_mode() Mike Dunn
2013-04-07 16:41 ` [U-Boot] [PATCH 5/8] arm: bootm: call udc_disable() before booting linux Mike Dunn
2013-04-08 5:29 ` Marek Vasut
2013-04-07 16:41 ` [U-Boot] [PATCH 6/8] lib: import bitrev library from linux kernel Mike Dunn
2013-04-08 6:23 ` Marek Vasut
2013-04-08 16:46 ` Mike Dunn
2013-04-08 7:38 ` Wolfgang Denk
2013-04-07 16:41 ` [U-Boot] [PATCH 7/8] mtd: nand: add driver for diskonchip g4 nand flash Mike Dunn
2013-04-08 6:25 ` Marek Vasut
2013-04-08 17:10 ` Mike Dunn
2013-04-08 17:26 ` Marek Vasut
2013-04-09 0:59 ` Scott Wood
2013-04-09 15:36 ` Mike Dunn [this message]
2013-04-07 16:41 ` [U-Boot] [PATCH 8/8] board support for palm treo 680 Mike Dunn
2013-04-08 6:27 ` Marek Vasut
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=51643589.70800@newsguy.com \
--to=mikedunn@newsguy.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox