All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabien Parent <fparent@baylibre.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] NAND: davinci: add support for NAND chips with 16 bits bus
Date: Tue, 29 Nov 2016 14:31:29 +0100	[thread overview]
Message-ID: <20161129133134.19415-2-fparent@baylibre.com> (raw)
In-Reply-To: <20161129133134.19415-1-fparent@baylibre.com>

The OMAPL138-LCD board uses a NAND chip with a 16 bits bus. Add
support into the davinci driver for 16 bit bus NAND chips.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
 drivers/mtd/nand/davinci_nand.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 48a8ca7..0624644 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -799,6 +799,9 @@ void davinci_nand_init(struct nand_chip *nand)
 #ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
 	nand->options	  |= NAND_NO_SUBPAGE_WRITE;
 #endif
+#ifdef CONFIG_SYS_NAND_BUSWIDTH_16BIT
+	nand->options	  |= NAND_BUSWIDTH_16;
+#endif
 #ifdef CONFIG_SYS_NAND_HW_ECC
 	nand->ecc.mode = NAND_ECC_HW;
 	nand->ecc.size = 512;
-- 
2.10.2

  reply	other threads:[~2016-11-29 13:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 13:31 [U-Boot] [PATCH 0/6] davinci: omapl138_lcdk: add SPL NAND boot support Fabien Parent
2016-11-29 13:31 ` Fabien Parent [this message]
2016-11-29 18:08   ` [U-Boot] [PATCH 1/6] NAND: davinci: add support for NAND chips with 16 bits bus Tom Rini
2016-12-04  0:56   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 13:31 ` [U-Boot] [PATCH 2/6] davinci: omapl138_lcdk: use correct define for 16 bit NAND chips Fabien Parent
2016-11-29 18:08   ` Tom Rini
2016-12-04  0:57   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 13:31 ` [U-Boot] [PATCH 3/6] davinci: omapl138_lcdk: use correct name for CONFIG_SYS_NAND_MASK_CLE Fabien Parent
2016-11-29 18:09   ` Tom Rini
2016-12-04  0:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 13:31 ` [U-Boot] [PATCH 4/6] davinci: omapl138_lcdk: use correct name for CONFIG_SYS_NAND_MASK_ALE Fabien Parent
2016-11-29 18:09   ` Tom Rini
2016-12-04  0:59   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 13:31 ` [U-Boot] [PATCH 5/6] davinci: omapl138_lck: remove obsolete define Fabien Parent
2016-11-29 18:09   ` Tom Rini
2016-12-04  1:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 13:31 ` [U-Boot] [PATCH 6/6] davinci: omapl138_lcdk: add NAND SPL boot support Fabien Parent
2016-11-29 18:10   ` Tom Rini
2016-12-04  1:00   ` [U-Boot] [U-Boot, " Tom Rini
2016-11-29 18:10 ` [U-Boot] [PATCH 0/6] davinci: omapl138_lcdk: add SPL NAND " 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=20161129133134.19415-2-fparent@baylibre.com \
    --to=fparent@baylibre.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.