net: use pci_dev->revision, again
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-davinci / board-omapl138-hawk.c
blob0b8dbdb79fe058fad26807c1b40520e7db20182c
1 /*
2 * Hawkboard.org based on TI's OMAP-L138 Platform
4 * Initial code: Syed Mohammed Khasim
6 * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of
10 * any kind, whether express or implied.
12 #include <linux/kernel.h>
13 #include <linux/init.h>
14 #include <linux/console.h>
15 #include <linux/gpio.h>
17 #include <asm/mach-types.h>
18 #include <asm/mach/arch.h>
20 #include <mach/cp_intc.h>
21 #include <mach/da8xx.h>
23 static struct davinci_uart_config omapl138_hawk_uart_config __initdata = {
24 .enabled_uarts = 0x7,
27 static __init void omapl138_hawk_init(void)
29 int ret;
31 davinci_serial_init(&omapl138_hawk_uart_config);
33 ret = da8xx_register_watchdog();
34 if (ret)
35 pr_warning("omapl138_hawk_init: "
36 "watchdog registration failed: %d\n",
37 ret);
40 #ifdef CONFIG_SERIAL_8250_CONSOLE
41 static int __init omapl138_hawk_console_init(void)
43 if (!machine_is_omapl138_hawkboard())
44 return 0;
46 return add_preferred_console("ttyS", 2, "115200");
48 console_initcall(omapl138_hawk_console_init);
49 #endif
51 static void __init omapl138_hawk_map_io(void)
53 da850_init();
56 MACHINE_START(OMAPL138_HAWKBOARD, "AM18x/OMAP-L138 Hawkboard")
57 .boot_params = (DA8XX_DDR_BASE + 0x100),
58 .map_io = omapl138_hawk_map_io,
59 .init_irq = cp_intc_init,
60 .timer = &davinci_timer,
61 .init_machine = omapl138_hawk_init,
62 MACHINE_END