public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 6/7] mtd: nand: add driver for diskonchip g4 nand flash
Date: Thu, 11 Apr 2013 16:00:07 -0500	[thread overview]
Message-ID: <1365714007.3640.13@snotra> (raw)
In-Reply-To: <1365641128-15812-7-git-send-email-mikedunn@newsguy.com> (from mikedunn@newsguy.com on Wed Apr 10 19:45:27 2013)

On 04/10/2013 07:45:27 PM, Mike Dunn wrote:
> 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.
> 
> [port from linux kernel 3.4 commit  
> 570469f3bde7f71cc1ece07a18d54a05b6a8775d]
> 
> Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
> ---
>  drivers/mtd/nand/Makefile    |    2 +
>  drivers/mtd/nand/docg4.c     | 1035  
> ++++++++++++++++++++++++++++++++++++++++++
>  drivers/mtd/nand/docg4_spl.c |  222 +++++++++
>  include/linux/mtd/docg4.h    |  134 ++++++
>  4 files changed, 1393 insertions(+), 0 deletions(-)
>  create mode 100644 drivers/mtd/nand/docg4.c
>  create mode 100644 drivers/mtd/nand/docg4_spl.c
>  create mode 100644 include/linux/mtd/docg4.h
[snip]
> +#ifdef DEBUG_DOCG4
> +#define dbg(format, arg...) printf("DEBUG: " format, ##arg)
> +#else
> +#define dbg(format, arg...) do {} while (0)
> +#endif

Maybe use MTDDEBUG?

Otherwise:
Acked-by: Scott Wood <scottwood@freescale.com>

-Scott

  parent reply	other threads:[~2013-04-11 21:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11  0:45 [U-Boot] [PATCH v2 0/7] palm treo 680 smartphone board support Mike Dunn
2013-04-11  0:45 ` [U-Boot] [PATCH v2 1/7] pxa_lcd: add the ACX544AKN lcd device Mike Dunn
2013-04-11 19:14   ` Marek Vasut
2013-04-11  0:45 ` [U-Boot] [PATCH v2 2/7] pxa_lcd: make lcd_enable() a weak pointer Mike Dunn
2013-04-11 19:15   ` Marek Vasut
2013-04-11  0:45 ` [U-Boot] [PATCH v2 3/7] pxa27x_udc: remove call to unimplemented set_GPIO_mode() Mike Dunn
2013-04-11 19:16   ` Marek Vasut
2013-04-11  0:45 ` [U-Boot] [PATCH v2 4/7] arm: bootm: call udc_disable()before booting linux Mike Dunn
2013-04-11 19:18   ` Marek Vasut
2013-04-11  0:45 ` [U-Boot] [PATCH v2 5/7] lib: import bitrev library from the linux kernel Mike Dunn
2013-04-11 19:19   ` Marek Vasut
2013-04-12 12:01     ` Mike Dunn
2013-04-12 17:28       ` Marek Vasut
2013-04-13 19:27       ` Wolfgang Denk
2013-04-11  0:45 ` [U-Boot] [PATCH v2 6/7] mtd: nand: add driver for diskonchip g4 nand flash Mike Dunn
2013-04-11 19:19   ` Marek Vasut
2013-04-12 16:29     ` Scott Wood
2013-04-11 21:00   ` Scott Wood [this message]
2013-04-12 13:36     ` Mike Dunn
2013-04-12 17:27     ` Marek Vasut
2013-04-12 17:34       ` Scott Wood
2013-04-11  0:45 ` [U-Boot] [PATCH v2 7/7] add support for palm treo 680 board Mike Dunn
2013-04-11 19:20   ` Marek Vasut
2013-04-12 12:51     ` Mike Dunn
2013-04-12 17:26       ` Marek Vasut
2013-04-14 17:44 ` [U-Boot] [PATCH v2 0/7] palm treo 680 smartphone board support Marek Vasut
2013-04-14 20:10   ` Mike Dunn
2013-04-14 20:13     ` 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=1365714007.3640.13@snotra \
    --to=scottwood@freescale.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