summaryrefslogtreecommitdiff
path: root/common
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 /common
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 'common')
-rw-r--r--common/cmd_nand.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 7042a9c..4fb3b65 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -178,6 +178,14 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
printf("Device %d: %s", dev, nand_info[dev].name);
puts("... is now current device\n");
nand_curr_device = dev;
+
+#ifdef CFG_NAND_SELECT_DEVICE
+ /*
+ * Select the chip in the board/cpu specific driver
+ */
+ board_nand_select_device(nand_info[dev].priv, dev);
+#endif
+
return 0;
}