9
0
Fork 0

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>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2013-09-22 08:39:55 +02:00 committed by Sascha Hauer
parent e62d425517
commit 3b2263c865
1 changed files with 5 additions and 0 deletions

View File

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