gflt110 uboot: disable serial console
* disables serial console if CONFIG_DISABLE_STDIN is defined
* loader-bin/marvell/gflt110/HOW.build sets this for a production uboot
Change-Id: Ic7a2bce8bacc3074a30d93ec2876801147569be4
diff --git a/board/mv_feroceon/mv_kw2/mv_main.c b/board/mv_feroceon/mv_kw2/mv_main.c
index 89c29ae..f89ff9d 100644
--- a/board/mv_feroceon/mv_kw2/mv_main.c
+++ b/board/mv_feroceon/mv_kw2/mv_main.c
@@ -188,6 +188,9 @@
printf(" ** LOADER **\n");
#endif /* MV_INCLUDE_MONT_EXT */
//#endif
+#if defined(CONFIG_DISABLE_STDIN)
+ printf(" ** STDIN DISABLED **\n");
+#endif
return;
}
diff --git a/common/console.c b/common/console.c
index dc0d13b..509593e 100644
--- a/common/console.c
+++ b/common/console.c
@@ -496,6 +496,12 @@
int flag;
struct stdio_dev *dev;
+#ifdef CONFIG_DISABLE_STDIN
+ if (file == stdin) {
+ devname = "nulldev";
+ }
+#endif
+
/* Check for valid file */
switch (file) {
case stdin:
diff --git a/include/configs/gflt110.h b/include/configs/gflt110.h
index 7dff577..1137026 100644
--- a/include/configs/gflt110.h
+++ b/include/configs/gflt110.h
@@ -2,4 +2,7 @@
#define __LT110_CONFIG_H
// The first rev of lt110 matches the reference design.
#include <configs/mv_kw2.h>
+
+#define CONFIG_SYS_DEVICE_NULLDEV 1
+
#endif /* __LT110_CONFIG_H */