mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2] Fix baudrate setting
@ 2010-11-22 12:32 Juergen Beisert
  0 siblings, 0 replies; only message in thread
From: Juergen Beisert @ 2010-11-22 12:32 UTC (permalink / raw)
  To: barebox

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@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/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-22 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 12:32 [PATCH v2] Fix baudrate setting Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox