All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 00/15] nand: device model bringup on am335x evm and am437x gpevm
Date: Tue, 31 Jan 2017 15:37:02 -0600	[thread overview]
Message-ID: <20170131213717.30745-1-grygorii.strashko@ti.com> (raw)

This patch seires adds nand uclass driver and enables omap_gpmc to
adopt driver model. This has been tested on AM335x GP EVM and
AM437x GP EVM.

As preparation for introducing nand uclass driver the new API
get_nand_dev_by_index() was added to avoid direct acces to nand_info array and
u-boot core files were updated to use it.

Patches can be found at:
git at git.ti.com:~gragst/ti-u-boot/gragsts-ti-u-boot.git dm-nand-v2

Test case1:
 mmc rescan
 fatload mmc 0 ${loadaddr} MLO1
 nand erase.part <part>
 nand write ${loadaddr} <part>
 nand read 0x84000000 0 ${filesize}
 cmp ${loadaddr} 0x84000000 ${filesize}

Test case2:
 nand read $loadaddr NAND.kernel
 nand read $fdtaddr NAND.u-boot-spl-os
 run args_mmc
 bootz ${loadaddr} - ${fdtaddr}

Changes in v2:
 - series rebased on top of u-boot master
 - added more patches to convert u-boot core files to use get_nand_dev_by_index()
 - nand uclass driver was simplified thanks to commits
   17cb4b8 mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data
   b616d9b nand: Embed mtd_info in struct nand_chip

link on v1:
 http://lists.denx.de/pipermail/u-boot/2016-April/250197.html

Grygorii Strashko (8):
  cmd: bootm: fix build when CONFIG_CMD_IMLS_NAND
  common: env_nand: use get_nand_dev_by_index()
  dfu: dfu_nand: use get_nand_dev_by_index()
  cmd: bootm: use get_nand_dev_by_index()
  cmd: jffs2: use get_nand_dev_by_index()
  common: use get_nand_dev_by_index()
  fs: use get_nand_dev_by_index()
  cmd: nand: remove direct access to struct mtd_info->priv

Mugunthan V N (7):
  cmd: nand: abstract global variable usage for dm conversion
  drivers: nand: implement a NAND uclass
  drivers: nand: omap_gpmc: convert driver to adopt driver model
  am43xx_evm: nand: do not define DM_NAND for spl
  defconfig: am43xx_evm: enable NAND driver model
  am335x_evm: nand: do not define DM_NAND for spl
  defconfig: am335x_evm: enable NAND driver model

 cmd/bootm.c                    |   6 +-
 cmd/jffs2.c                    |   7 +-
 cmd/nand.c                     |  69 ++++++++------
 common/env_nand.c              |  33 ++++---
 common/fb_nand.c               |   2 +-
 common/splash_source.c         |   5 +-
 configs/am335x_evm_defconfig   |   1 +
 configs/am43xx_evm_defconfig   |   1 +
 drivers/dfu/dfu_nand.c         |  12 +--
 drivers/mtd/nand/Kconfig       |  10 ++
 drivers/mtd/nand/Makefile      |   2 +
 drivers/mtd/nand/nand-uclass.c |  38 ++++++++
 drivers/mtd/nand/nand.c        |  40 ++++++--
 drivers/mtd/nand/omap_gpmc.c   | 212 ++++++++++++++++++++++++++++++++++++++++-
 fs/jffs2/jffs2_1pass.c         |   9 +-
 fs/jffs2/jffs2_nand_1pass.c    |   6 +-
 fs/yaffs2/yaffs_uboot_glue.c   |   8 +-
 include/configs/am335x_evm.h   |   1 +
 include/configs/am43xx_evm.h   |   1 +
 include/dm/uclass-id.h         |   1 +
 include/nand.h                 |   9 ++
 21 files changed, 397 insertions(+), 76 deletions(-)
 create mode 100644 drivers/mtd/nand/nand-uclass.c

-- 
2.10.1.dirty

             reply	other threads:[~2017-01-31 21:37 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 21:37 Grygorii Strashko [this message]
2017-01-31 21:37 ` [U-Boot] [PATCH v2 01/15] cmd: bootm: fix build when CONFIG_CMD_IMLS_NAND Grygorii Strashko
2017-02-06  1:56   ` Tom Rini
2017-02-06 15:33     ` Simon Glass
2017-02-09  3:03   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-01-31 21:37 ` [U-Boot] [PATCH v2 02/15] cmd: nand: abstract global variable usage for dm conversion Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-09 17:51     ` Grygorii Strashko
2017-02-09 18:12       ` Tom Rini
2017-02-06 15:33   ` Simon Glass
2017-02-08 21:23   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-01-31 21:37 ` [U-Boot] [PATCH v2 03/15] common: env_nand: use get_nand_dev_by_index() Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:33     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 04/15] dfu: dfu_nand: " Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:34     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 05/15] cmd: bootm: " Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:34     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 06/15] cmd: jffs2: " Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:34     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 07/15] common: " Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:33     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 08/15] fs: " Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:34     ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 09/15] cmd: nand: remove direct access to struct mtd_info->priv Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 15:34   ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 10/15] drivers: nand: implement a NAND uclass Grygorii Strashko
2017-02-06 15:34   ` Simon Glass
2017-02-06 18:39     ` Grygorii Strashko
2017-02-10 16:22       ` Simon Glass
2017-02-10 18:23         ` Grygorii Strashko
2017-01-31 21:37 ` [U-Boot] [PATCH v2 11/15] drivers: nand: omap_gpmc: convert driver to adopt driver model Grygorii Strashko
2017-02-06  1:57   ` Tom Rini
2017-02-06 18:40     ` Grygorii Strashko
2017-02-10 16:22   ` Simon Glass
2017-01-31 21:37 ` [U-Boot] [PATCH v2 12/15] am43xx_evm: nand: do not define DM_NAND for spl Grygorii Strashko
2017-01-31 21:37 ` [U-Boot] [PATCH v2 13/15] defconfig: am43xx_evm: enable NAND driver model Grygorii Strashko
2017-01-31 21:37 ` [U-Boot] [PATCH v2 14/15] am335x_evm: nand: do not define DM_NAND for spl Grygorii Strashko
2017-01-31 21:37 ` [U-Boot] [PATCH v2 15/15] defconfig: am335x_evm: enable NAND driver model Grygorii Strashko
2017-02-06  1:56 ` [U-Boot] [PATCH v2 00/15] nand: device model bringup on am335x evm and am437x gpevm Tom Rini
2017-02-06 18:50   ` Grygorii Strashko
2017-02-07 17:19     ` Tom Rini

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=20170131213717.30745-1-grygorii.strashko@ti.com \
    --to=grygorii.strashko@ti.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.