mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] console_simple: set baudrate at register
@ 2013-09-22  6:39 Jean-Christophe PLAGNIOL-VILLARD
  2013-09-22  6:39 ` [PATCH 2/2] serial: do not set default baudrate at init Jean-Christophe PLAGNIOL-VILLARD
  2013-09-22 18:29 ` [PATCH 1/2] console_simple: set baudrate at register Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-09-22  6:39 UTC (permalink / raw)
  To: barebox

as the console is always enable

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 common/console_simple.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/console_simple.c b/common/console_simple.c
index 5c80dcd..e1d4c85 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -89,6 +89,11 @@ int console_register(struct console_device *newcdev)
 	console_list.prev = console_list.next = &newcdev->list;
 	newcdev->list.prev = newcdev->list.next = &console_list;
 
+	if (newcdev->setbrg) {
+		newcdev->baudrate = CONFIG_BAUDRATE;
+		newcdev->setbrg(newcdev, newcdev->baudrate);
+	}
+
 	barebox_banner();
 
 	return 0;
-- 
1.8.4.rc3


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-22 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-22  6:39 [PATCH 1/2] console_simple: set baudrate at register Jean-Christophe PLAGNIOL-VILLARD
2013-09-22  6:39 ` [PATCH 2/2] serial: do not set default baudrate at init Jean-Christophe PLAGNIOL-VILLARD
2013-09-22 18:29 ` [PATCH 1/2] console_simple: set baudrate at register Sascha Hauer

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