From: Vladimir Zapolskiy <vz@mleia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 2/4] nand: lpc32xx: add SLC NAND controller support
Date: Mon, 27 Jul 2015 19:25:54 +0300 [thread overview]
Message-ID: <55B65B92.2010909@mleia.com> (raw)
In-Reply-To: <1437178072-31112-1-git-send-email-vz@mleia.com>
Hello Scott,
On 18.07.2015 03:07, Vladimir Zapolskiy wrote:
> The change adds support of LPC32xx SLC NAND controller.
>
> LPC32xx SoC has two different mutually exclusive NAND controllers to
> communicate with single and multiple layer chips.
>
> This simple driver allows to specify NAND chip timings and defines
> custom read_buf()/write_buf() operations, because access to 8-bit data
> register must be 32-bit aligned.
>
> Support of hardware ECC calculation is not implemented (data
> correction is always done by software), since it requires a working
> DMA engine.
>
> The driver can be included to an SPL image.
>
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> ---
> Changes from v3 to v4:
> * renamed "lpc32xx_nand_slc_registers" to "lpc32xx_nand_slc_regs",
> * replaced non-leading tabs with spaces to get columned assignments,
> * removed leftover redundant type casts,
> * lpc32xx_nand_cmd_ctrl() sets address register iff (ctrl & NAND_ALE).
>
> Changes from v2 to v3:
> * no changes, sent a non-rebased version by mistake.
>
> Changes from v1 to v2:
> * addressed Albert's and Scott's comments to LPC32xx SLC NAND driver:
> - removed unnecessary uint32_t casts in write_buf()/write_byte(),
> - removed IO_ADDR_[RW] assignment, this is done in nand.c for SPL
> and generally not needed for custom defined PIO interfaces in
> U-boot (with exception of simple NAND SPL, addressed by 1/4),
> - removed leftover declarations of HW ECC related bit fields,
> this should be added along with HW ECC support,
> - improved description of a reason why software ECC is selected,
> if DMA is unavailable (explicit reference to User Manual from NXP).
>
> Previous review can be found here:
> v3:
> http://lists.denx.de/pipermail/u-boot/2015-July/219431.html
>
> v2:
> http://lists.denx.de/pipermail/u-boot/2015-July/219422.html
>
> v1:
> http://lists.denx.de/pipermail/u-boot/2015-July/219095.html
> http://lists.denx.de/pipermail/u-boot/2015-July/219254.html
>
> arch/arm/cpu/arm926ejs/lpc32xx/devices.c | 6 +
> arch/arm/include/asm/arch-lpc32xx/clk.h | 2 +
> arch/arm/include/asm/arch-lpc32xx/sys_proto.h | 1 +
> drivers/mtd/nand/Makefile | 1 +
> drivers/mtd/nand/lpc32xx_nand_slc.c | 176 ++++++++++++++++++++++++++
> 5 files changed, 186 insertions(+)
> create mode 100644 drivers/mtd/nand/lpc32xx_nand_slc.c
>
please let me know, if this change is ready for inclusion to the next
U-boot release. The following changes from the series to a board file
(NAND and SPL build) depend on this one, if this SLC NAND change is
accepted I hope Albert may find time to include board specific changes
as well.
Thank you in advance.
--
With best wishes,
Vladimir
next prev parent reply other threads:[~2015-07-27 16:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 22:46 [U-Boot] [PATCH v2 0/4] lpc32xx: devkit3250 board update Vladimir Zapolskiy
2015-07-17 22:47 ` [U-Boot] [PATCH v2 1/4] spl: nand: simple: replace readb() with chip specific read_buf() Vladimir Zapolskiy
2015-07-28 1:22 ` Scott Wood
2015-08-13 13:18 ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-07-17 22:47 ` [U-Boot] [PATCH v2 2/4] nand: lpc32xx: add SLC NAND controller support Vladimir Zapolskiy
2015-07-17 23:12 ` Scott Wood
2015-07-17 23:38 ` Vladimir Zapolskiy
2015-07-17 23:53 ` Scott Wood
2015-07-17 23:55 ` Scott Wood
2015-07-18 0:05 ` Vladimir Zapolskiy
2015-07-17 23:49 ` [U-Boot] [PATCH v3 " Vladimir Zapolskiy
2015-07-18 0:07 ` [U-Boot] [PATCH v4 " Vladimir Zapolskiy
2015-07-27 16:25 ` Vladimir Zapolskiy [this message]
2015-07-28 1:23 ` Scott Wood
2015-07-29 18:46 ` LEMIEUX, SYLVAIN
2015-08-13 13:18 ` [U-Boot] [U-Boot, v4, " Tom Rini
2015-07-17 22:47 ` [U-Boot] [PATCH v2 3/4] lpc32xx: devkit3250: update of board configuration Vladimir Zapolskiy
2015-08-13 13:18 ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-07-17 22:47 ` [U-Boot] [PATCH v2 4/4] lpc32xx: devkit3250: add spl build support Vladimir Zapolskiy
2015-08-13 13:18 ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-08-10 14:34 ` [U-Boot] [PATCH v2 0/4] lpc32xx: devkit3250 board update Vladimir Zapolskiy
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=55B65B92.2010909@mleia.com \
--to=vz@mleia.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