All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@grandegger.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC/PATCH 4/4] Add multi-chip NAND support for the TQM8548 modules
Date: Wed, 07 Jan 2009 19:58:52 +0100	[thread overview]
Message-ID: <4964FB6C.3060305@grandegger.com> (raw)

This patches configures the NAND UPM-FSL driver with multi-chip support
for the Micro MT29F8G08FAB on the TQM8548 modules.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
---
 board/tqc/tqm85xx/nand.c  |    2 ++
 include/configs/TQM85xx.h |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

Index: u-boot/board/tqc/tqm85xx/nand.c
===================================================================
--- u-boot.orig/board/tqc/tqm85xx/nand.c
+++ u-boot/board/tqc/tqm85xx/nand.c
@@ -446,6 +446,8 @@ static struct fsl_upm_nand fun = {
 	.width = 8,
 	.upm_cmd_offset = 0x08,
 	.upm_addr_offset = 0x10,
+	.upm_mar_chip_offset = CONFIG_SYS_NAND_CS_DIST,
+	.chip_offset = CONFIG_SYS_NAND_CS_DIST,
 	.chip_delay = NAND_BIG_DELAY_US,
 };
 
Index: u-boot/include/configs/TQM85xx.h
===================================================================
--- u-boot.orig/include/configs/TQM85xx.h
+++ u-boot/include/configs/TQM85xx.h
@@ -362,8 +362,8 @@
 #define CONFIG_SYS_NAND2_BASE		(CONFIG_SYS_NAND1_BASE + CONFIG_SYS_NAND_CS_DIST)
 #define CONFIG_SYS_NAND3_BASE		(CONFIG_SYS_NAND2_BASE + CONFIG_SYS_NAND_CS_DIST)
 
-#define CONFIG_SYS_MAX_NAND_DEVICE     2	/* Max number of NAND devices	*/
-#define NAND_MAX_CHIPS		1
+#define CONFIG_SYS_MAX_NAND_DEVICE     1	/* Max number of NAND devices	*/
+#define NAND_MAX_CHIPS		2
 
 #if (CONFIG_SYS_MAX_NAND_DEVICE == 1)
 #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND0_BASE }

                 reply	other threads:[~2009-01-07 18:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4964FB6C.3060305@grandegger.com \
    --to=wg@grandegger.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.