uboot for gfmn100: add support for disabling input

	* for production images

Change-Id: Ifa7d0565ddd961c30ebf12fe2816f975dc2b08fa
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..67d2cd6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,65 @@
+#
+# NOTE! Don't add files that are generated in specific
+# subdirectories here. Add them in the ".gitignore" file
+# in that subdirectory instead.
+#
+# Normal rules
+#
+
+*.rej
+*.orig
+*.a
+*.o
+*~
+*.swp
+*.patch
+
+#
+# Top-level generic files
+#
+
+/System.map
+/u-boot
+/u-boot.hex
+/u-boot.map
+/u-boot.bin
+/u-boot.srec
+/u-boot.ldr
+/u-boot.ldr.hex
+/u-boot.ldr.srec
+/u-boot.lds
+/u-boot-onenand.bin
+/u-boot-flexonenand.bin
+
+#
+# Generated files
+#
+
+*.depend
+/LOG
+/errlog
+/reloc_off
+
+# stgit generated dirs
+patches-*
+.stgit-edit.txt
+
+# quilt's files
+patches
+series
+
+# gdb files
+.gdb_history
+
+# cscope files
+cscope.*
+
+# tags files
+/tags
+/ctags
+/etags
+
+# OneNAND IPL files
+/onenand_ipl/onenand-ipl*
+/onenand_ipl/board/*/onenand*
+/onenand_ipl/board/*/*.S
diff --git a/common/console.c b/common/console.c
index e9f23be..3499e70 100755
--- a/common/console.c
+++ b/common/console.c
@@ -329,6 +329,12 @@
 {
 	int flag, i;
 
+#ifdef CONFIG_DISABLE_STDIN
+	if (file == stdin) {
+		devname = "nulldev";
+	}
+#endif
+
 	/* Check for valid file */
 	switch (file) {
 	case stdin:
diff --git a/common/main.c b/common/main.c
index 6696f31..46b2564 100755
--- a/common/main.c
+++ b/common/main.c
@@ -232,6 +232,9 @@
 	}
 #endif
 
+#if defined(CONFIG_DISABLE_STDIN)
+	printf(" ** STDIN DISABLED **\n");
+#endif
 #ifdef CONFIG_MENUPROMPT
 	printf(CONFIG_MENUPROMPT, bootdelay);
 #else