diff options
author | Michael Williamson <michael.williamson@criticallink.com> | 2010-08-31 20:30:15 +0200 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-09-24 16:40:27 +0200 |
commit | 1aa5f2a9c1575279baf06e94a4bd3b3b86b7f176 (patch) | |
tree | b3e29cf4347dc3cd48ddb534ff187db64fbf7584 /arch/arm/mach-davinci/board-da830-evm.c | |
parent | davinci: dm6467t evm: setup NAND flash timing (diff) | |
download | linux-1aa5f2a9c1575279baf06e94a4bd3b3b86b7f176.tar.xz linux-1aa5f2a9c1575279baf06e94a4bd3b3b86b7f176.zip |
davinci: Add machine checks to DA8XX serial console init routines
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>
Diffstat (limited to 'arch/arm/mach-davinci/board-da830-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da830-evm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index de82739c00ec..ef1ab0b6576e 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -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); |