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> | |
e8c4a7ac FB |
17 | #include <linux/platform_device.h> |
18 | #include <linux/usb/musb.h> | |
2c87fb2e | 19 | |
2c87fb2e HP |
20 | #include <asm/mach-types.h> |
21 | #include <asm/mach/arch.h> | |
22 | #include <asm/mach/map.h> | |
23 | ||
4e65331c | 24 | #include "common.h" |
f36217f3 RB |
25 | |
26 | static struct omap_musb_board_data musb_board_data = { | |
27 | .set_phy_power = ti81xx_musb_phy_power, | |
28 | .interface_type = MUSB_INTERFACE_ULPI, | |
29 | .mode = MUSB_OTG, | |
30 | .power = 500, | |
31 | }; | |
2c87fb2e | 32 | |
a890b676 | 33 | static void __init ti81xx_evm_init(void) |
2c87fb2e HP |
34 | { |
35 | omap_serial_init(); | |
a4ca9dbe | 36 | omap_sdrc_init(NULL, NULL); |
f36217f3 | 37 | usb_musb_init(&musb_board_data); |
2c87fb2e HP |
38 | } |
39 | ||
2c87fb2e HP |
40 | MACHINE_START(TI8168EVM, "ti8168evm") |
41 | /* Maintainer: Texas Instruments */ | |
5e52b435 | 42 | .atag_offset = 0x100, |
a920360f HP |
43 | .map_io = ti81xx_map_io, |
44 | .init_early = ti81xx_init_early, | |
45 | .init_irq = ti81xx_init_irq, | |
6bb27d73 | 46 | .init_time = omap3_sync32k_timer_init, |
a890b676 | 47 | .init_machine = ti81xx_evm_init, |
bbd707ac | 48 | .init_late = ti81xx_init_late, |
187e3e06 | 49 | .restart = omap44xx_restart, |
a890b676 HP |
50 | MACHINE_END |
51 | ||
52 | MACHINE_START(TI8148EVM, "ti8148evm") | |
53 | /* Maintainer: Texas Instruments */ | |
54 | .atag_offset = 0x100, | |
55 | .map_io = ti81xx_map_io, | |
56 | .init_early = ti81xx_init_early, | |
57 | .init_irq = ti81xx_init_irq, | |
6bb27d73 | 58 | .init_time = omap3_sync32k_timer_init, |
a890b676 | 59 | .init_machine = ti81xx_evm_init, |
bbd707ac | 60 | .init_late = ti81xx_init_late, |
187e3e06 | 61 | .restart = omap44xx_restart, |
2c87fb2e | 62 | MACHINE_END |