* [U-Boot] [RFC/PATCH 4/4] Add multi-chip NAND support for the TQM8548 modules
@ 2009-01-07 18:58 Wolfgang Grandegger
0 siblings, 0 replies; only message in thread
From: Wolfgang Grandegger @ 2009-01-07 18:58 UTC (permalink / raw)
To: u-boot
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 }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-07 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07 18:58 [U-Boot] [RFC/PATCH 4/4] Add multi-chip NAND support for the TQM8548 modules Wolfgang Grandegger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox