Root/
1 | /* |
2 | * Hawkboard.org based on TI's OMAP-L138 Platform |
3 | * |
4 | * Initial code: Syed Mohammed Khasim |
5 | * |
6 | * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com |
7 | * |
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. |
11 | */ |
12 | #include <linux/kernel.h> |
13 | #include <linux/init.h> |
14 | #include <linux/console.h> |
15 | #include <linux/gpio.h> |
16 | |
17 | #include <asm/mach-types.h> |
18 | #include <asm/mach/arch.h> |
19 | |
20 | #include <mach/cp_intc.h> |
21 | #include <mach/da8xx.h> |
22 | |
23 | static struct davinci_uart_config omapl138_hawk_uart_config __initdata = { |
24 | .enabled_uarts = 0x7, |
25 | }; |
26 | |
27 | static __init void omapl138_hawk_init(void) |
28 | { |
29 | int ret; |
30 | |
31 | davinci_serial_init(&omapl138_hawk_uart_config); |
32 | |
33 | ret = da8xx_register_watchdog(); |
34 | if (ret) |
35 | pr_warning("omapl138_hawk_init: " |
36 | "watchdog registration failed: %d\n", |
37 | ret); |
38 | } |
39 | |
40 | #ifdef CONFIG_SERIAL_8250_CONSOLE |
41 | static int __init omapl138_hawk_console_init(void) |
42 | { |
43 | if (!machine_is_omapl138_hawkboard()) |
44 | return 0; |
45 | |
46 | return add_preferred_console("ttyS", 2, "115200"); |
47 | } |
48 | console_initcall(omapl138_hawk_console_init); |
49 | #endif |
50 | |
51 | static void __init omapl138_hawk_map_io(void) |
52 | { |
53 | da850_init(); |
54 | } |
55 | |
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 |
63 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9