summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-10-20 14:28:52 +0200
committerStefan Roese <sr@denx.de>2006-10-20 15:17:55 +0200
commit43a2b0e76a56995f17e1b7628c192ebafe6051ee (patch)
tree38eca89a07197a458f46aecc4bfc2901b54e8fc6 /drivers
parent73652699dd224dffb5cd8cca24d767bed02d7a28 (diff)
downloadu-boot-imx-43a2b0e76a56995f17e1b7628c192ebafe6051ee.zip
u-boot-imx-43a2b0e76a56995f17e1b7628c192ebafe6051ee.tar.gz
u-boot-imx-43a2b0e76a56995f17e1b7628c192ebafe6051ee.tar.bz2
Add board/cpu specific NAND chip select function to 440 NDFC
Based on idea and implementation from Jeff Mann Patch by Stefan Roese, 20 Oct 2006
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nand/nand.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/nand/nand.c b/drivers/nand/nand.c
index e1781fc..3899045 100644
--- a/drivers/nand/nand.c
+++ b/drivers/nand/nand.c
@@ -66,8 +66,15 @@ void nand_init(void)
size += nand_info[i].size;
if (nand_curr_device == -1)
nand_curr_device = i;
-}
+ }
printf("%lu MiB\n", size / (1024 * 1024));
+
+#ifdef CFG_NAND_SELECT_DEVICE
+ /*
+ * Select the chip in the board/cpu specific driver
+ */
+ board_nand_select_device(nand_info[nand_curr_device].priv, nand_curr_device);
+#endif
}
#endif