summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2011-01-18 13:31:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-18 14:24:09 +0100
commit76dd3e70a560fa69548f6b44ce933c78185b7dc4 (patch)
treeb874ab6109157e8c1c19f6375be6498f5506a972
parentd0e7facd5482c31a5640b31c9a4555e5a4ee215c (diff)
downloadbarebox-76dd3e70a560fa69548f6b44ce933c78185b7dc4.tar.gz
barebox-76dd3e70a560fa69548f6b44ce933c78185b7dc4.tar.xz
Fix default baudrate setting
The menu entry to set the default baudrate (CONFIG_BAUDRATE) makes no sense, as long as its content is not used. This patch makes barebox using the setting again. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/console.c b/common/console.c
index 39ead4b58b..5548a409ac 100644
--- a/common/console.c
+++ b/common/console.c
@@ -36,6 +36,7 @@
#include <module.h>
#include <poller.h>
#include <linux/list.h>
+#include <linux/stringify.h>
LIST_HEAD(console_list);
EXPORT_SYMBOL(console_list);
@@ -141,7 +142,7 @@ int console_register(struct console_device *newcdev)
if (newcdev->setbrg) {
dev_add_param(dev, "baudrate", console_baudrate_set, NULL, 0);
- dev_set_param(dev, "baudrate", "115200");
+ dev_set_param(dev, "baudrate", __stringify(CONFIG_BAUDRATE));
}
dev_add_param(dev, "active", console_std_set, NULL, 0);