Commit | Line | Data |
---|---|---|
2c87fb2e | 1 | /* |
a890b676 | 2 | * Code for TI8168/TI8148 EVM. |
2c87fb2e HP |
3 | * |
4 | * Copyright (C) 2010 Texas Instruments, Inc. - http://www.ti.com/ | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or | |
7 | * modify it under the terms of the GNU General Public License as | |
8 | * published by the Free Software Foundation version 2. | |
9 | * | |
10 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | |
11 | * kind, whether express or implied; without even the implied warranty | |
12 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | */ | |
15 | #include <linux/kernel.h> | |
16 | #include <linux/init.h> | |
17 | ||
18 | #include <mach/hardware.h> | |
19 | #include <asm/mach-types.h> | |
20 | #include <asm/mach/arch.h> | |
21 | #include <asm/mach/map.h> | |
22 | ||
23 | #include <plat/irqs.h> | |
24 | #include <plat/board.h> | |
4e65331c | 25 | #include "common.h" |
f36217f3 RB |
26 | #include <plat/usb.h> |
27 | ||
28 | static struct omap_musb_board_data musb_board_data = { | |
29 | .set_phy_power = ti81xx_musb_phy_power, | |
30 | .interface_type = MUSB_INTERFACE_ULPI, | |
31 | .mode = MUSB_OTG, | |
32 | .power = 500, | |
33 | }; | |
2c87fb2e | 34 | |
a890b676 | 35 | static struct omap_board_config_kernel ti81xx_evm_config[] __initdata = { |
2c87fb2e HP |
36 | }; |
37 | ||
a890b676 | 38 | static void __init ti81xx_evm_init(void) |
2c87fb2e HP |
39 | { |
40 | omap_serial_init(); | |
a4ca9dbe | 41 | omap_sdrc_init(NULL, NULL); |
a890b676 HP |
42 | omap_board_config = ti81xx_evm_config; |
43 | omap_board_config_size = ARRAY_SIZE(ti81xx_evm_config); | |
f36217f3 | 44 | usb_musb_init(&musb_board_data); |
2c87fb2e HP |
45 | } |
46 | ||
2c87fb2e HP |
47 | MACHINE_START(TI8168EVM, "ti8168evm") |
48 | /* Maintainer: Texas Instruments */ | |
5e52b435 | 49 | .atag_offset = 0x100, |
a920360f HP |
50 | .map_io = ti81xx_map_io, |
51 | .init_early = ti81xx_init_early, | |
52 | .init_irq = ti81xx_init_irq, | |
e74984e4 | 53 | .timer = &omap3_timer, |
a890b676 | 54 | .init_machine = ti81xx_evm_init, |
421b759b | 55 | .restart = omap_prcm_restart, |
a890b676 HP |
56 | MACHINE_END |
57 | ||
58 | MACHINE_START(TI8148EVM, "ti8148evm") | |
59 | /* Maintainer: Texas Instruments */ | |
60 | .atag_offset = 0x100, | |
61 | .map_io = ti81xx_map_io, | |
62 | .init_early = ti81xx_init_early, | |
63 | .init_irq = ti81xx_init_irq, | |
64 | .timer = &omap3_timer, | |
65 | .init_machine = ti81xx_evm_init, | |
baa95883 | 66 | .restart = omap_prcm_restart, |
2c87fb2e | 67 | MACHINE_END |