[PATCH v2] Fix baudrate setting

Juergen Beisert jbe at pengutronix.de
Mon Nov 22 07:32:17 EST 2010


This one seems still forgotten, yet.

Subject: Fix baudrate setting

The menu entry to set CONFIG_BAUDRATE makes no sense, if its content is not
used. This patch makes barebox using the setting again.

Signed-off-by: Juergen Beisert <jbe at pengutronix.de>

---
 common/console.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: barebox-2010.10.0/common/console.c
===================================================================
--- barebox-2010.10.0.orig/common/console.c
+++ barebox-2010.10.0/common/console.c
@@ -34,6 +34,7 @@
 #include <clock.h>
 #include <kfifo.h>
 #include <module.h>
+#include <linux/stringify.h>
 #include <linux/list.h>
 
 LIST_HEAD(console_list);
@@ -140,7 +141,7 @@ int console_register(struct console_devi
 
 	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);

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the barebox mailing list