summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-22 08:39:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-22 16:46:51 +0200
commit3b2263c86507d8549989e51333dda1bb91f8bdda (patch)
tree37b06d978d0eeae4cf2c672bce0e8936287b8161
parente62d4255172540805a77fee1c58382103f43bb2f (diff)
downloadbarebox-3b2263c86507d8549989e51333dda1bb91f8bdda.tar.gz
barebox-3b2263c86507d8549989e51333dda1bb91f8bdda.tar.xz
console_simple: set baudrate at register
as the console is always enable Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/console_simple.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 101064b69a..202d2442f7 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -82,6 +82,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;