From: Stefan Agner <stefan@agner.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/2] arm: vf610: add NAND flash support
Date: Thu, 11 Sep 2014 15:07:07 +0200 [thread overview]
Message-ID: <cover.1410440407.git.stefan@agner.ch> (raw)
This patch set adds NAND Flash Controller (NFC) support for
Freescale Vybrid ARM SoCs (vf610).
The driver is based on Bill Pringlemeirs prelineary patch sent
in January 2014 to the MTD mailing list:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-January/226623.html
Changes in v4
- Drop preparation patches 1 and 2 since they are already merged upstream
- Add memcpy accessor function vf610_nfc_memcpy
- Remove disabled code
Changes in v3
- Further optimizations in vf610_nfc_send_command(s) to avoid performance
hit by additional barriers introduced through using writel/readl
- Removed unnecessary barrier and added comment
- Use void __iomem * as memory base data type
- Set page to -1 on read error to allow reread of pages by the higher
layers
- Minor style fixes
Changes in v2:
- Renamed the driver from fsl_nfc to vf610_nfc
- Use writel/readl in register access functions
- Optimized some register accesses by read/write value only once in code
- Use CONFIG_SYS_NAND_SELF_INIT and fix board_nand_init implementation
- Removed uncommented code/fixed comments
- Add CONFIG_USE_ARCH_MEMCPY for improved NAND performance
- Use hweight32 for improved count_written_bits performance
- Implement page_read/page_write rather than reuse MTD stacks version
Stefan Agner (2):
mtd: nand: add Freescale vf610_nfc driver
arm: vf610: add NAND support for vf610twr
board/freescale/vf610twr/vf610twr.c | 47 ++-
configs/vf610twr_defconfig | 2 +-
configs/vf610twr_nand_defconfig | 3 +
drivers/mtd/nand/Makefile | 1 +
drivers/mtd/nand/vf610_nfc.c | 721 ++++++++++++++++++++++++++++++++++++
include/configs/vf610twr.h | 46 ++-
6 files changed, 815 insertions(+), 5 deletions(-)
create mode 100644 configs/vf610twr_nand_defconfig
create mode 100644 drivers/mtd/nand/vf610_nfc.c
--
2.1.0
next reply other threads:[~2014-09-11 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 13:07 Stefan Agner [this message]
2014-09-11 13:07 ` [U-Boot] [PATCH v4 1/2] mtd: nand: add Freescale vf610_nfc driver Stefan Agner
2014-09-11 18:57 ` Bill Pringlemeir
2014-09-12 6:51 ` Stefano Babic
2014-09-12 8:05 ` Stefano Babic
2014-09-11 13:07 ` [U-Boot] [PATCH v4 2/2] arm: vf610: add NAND support for vf610twr Stefan Agner
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=cover.1410440407.git.stefan@agner.ch \
--to=stefan@agner.ch \
--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