summaryrefslogtreecommitdiffstats
path: root/common/console_simple.c
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 /common/console_simple.c
parente62d4255172540805a77fee1c58382103f43bb2f (diff)
downloadbarebox-3b2263c86507d8549989e51333dda1bb91f8bdda.tar.gz
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>
Diffstat (limited to 'common/console_simple.c')
-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 101064b..202d244 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;