blob: 6273c286e1d8fc877bfc6d20d7cdfa50530119c8 [file] [log] [blame]
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +05301/*
Hemant Pedanekara890b672011-12-13 10:48:55 -08002 * Code for TI8168/TI8148 EVM.
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +05303 *
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>
Felipe Balbie8c4a7a2012-10-24 14:26:19 -070017#include <linux/platform_device.h>
18#include <linux/usb/musb.h>
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053019
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053020#include <asm/mach-types.h>
21#include <asm/mach/arch.h>
22#include <asm/mach/map.h>
23
Tony Lindgren4e653312011-11-10 22:45:17 +010024#include "common.h"
Ravi Babuf36217f2011-12-13 10:50:59 -080025
26static 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};
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053032
Hemant Pedanekara890b672011-12-13 10:48:55 -080033static void __init ti81xx_evm_init(void)
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053034{
35 omap_serial_init();
Tony Lindgrena4ca9db2011-08-22 23:57:23 -070036 omap_sdrc_init(NULL, NULL);
Ravi Babuf36217f2011-12-13 10:50:59 -080037 usb_musb_init(&musb_board_data);
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053038}
39
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053040MACHINE_START(TI8168EVM, "ti8168evm")
41 /* Maintainer: Texas Instruments */
Nicolas Pitre5e52b432011-07-05 22:38:15 -040042 .atag_offset = 0x100,
Hemant Pedanekara9203602011-12-13 10:46:44 -080043 .map_io = ti81xx_map_io,
44 .init_early = ti81xx_init_early,
45 .init_irq = ti81xx_init_irq,
Stephen Warren6bb27d72012-11-08 12:40:59 -070046 .init_time = omap3_sync32k_timer_init,
Hemant Pedanekara890b672011-12-13 10:48:55 -080047 .init_machine = ti81xx_evm_init,
Shawn Guobbd707a2012-04-26 16:06:50 +080048 .init_late = ti81xx_init_late,
Paul Walmsley187e3e02012-10-29 20:56:12 -060049 .restart = omap44xx_restart,
Hemant Pedanekara890b672011-12-13 10:48:55 -080050MACHINE_END
51
52MACHINE_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,
Stephen Warren6bb27d72012-11-08 12:40:59 -070058 .init_time = omap3_sync32k_timer_init,
Hemant Pedanekara890b672011-12-13 10:48:55 -080059 .init_machine = ti81xx_evm_init,
Shawn Guobbd707a2012-04-26 16:06:50 +080060 .init_late = ti81xx_init_late,
Paul Walmsley187e3e02012-10-29 20:56:12 -060061 .restart = omap44xx_restart,
Hemant Pedanekar2c87fb22011-02-15 23:06:08 +053062MACHINE_END