Skip to content

Commit

Permalink
davinci: Add machine checks to DA8XX serial console init routines
Browse files Browse the repository at this point in the history
This patch adds machine checks in the serial console init routines
for the DA8XX EVM boards.  This is needed because there are other
DA8XX based machines that use a different UART/tty as the console
and may be included in a common kernel build.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Michael Williamson authored and Kevin Hilman committed Sep 24, 2010
1 parent 0b3fc7b commit 1aa5f2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-davinci/board-da830-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ static __init void da830_evm_init(void)
#ifdef CONFIG_SERIAL_8250_CONSOLE
static int __init da830_evm_console_init(void)
{
if (!machine_is_davinci_da830_evm())
return 0;

return add_preferred_console("ttyS", 2, "115200");
}
console_initcall(da830_evm_console_init);
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-davinci/board-da850-evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,9 @@ static __init void da850_evm_init(void)
#ifdef CONFIG_SERIAL_8250_CONSOLE
static int __init da850_evm_console_init(void)
{
if (!machine_is_davinci_da850_evm())
return 0;

return add_preferred_console("ttyS", 2, "115200");
}
console_initcall(da850_evm_console_init);
Expand Down

0 comments on commit 1aa5f2a

Please sign in to comment.