Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 1 | /* |
Hemant Pedanekar | a890b67 | 2011-12-13 10:48:55 -0800 | [diff] [blame] | 2 | * Code for TI8168/TI8148 EVM. |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 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> |
Tony Lindgren | 4e65331 | 2011-11-10 22:45:17 +0100 | [diff] [blame] | 25 | #include "common.h" |
Ravi Babu | f36217f | 2011-12-13 10:50:59 -0800 | [diff] [blame^] | 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 | }; |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 34 | |
Hemant Pedanekar | a890b67 | 2011-12-13 10:48:55 -0800 | [diff] [blame] | 35 | static struct omap_board_config_kernel ti81xx_evm_config[] __initdata = { |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 36 | }; |
| 37 | |
Hemant Pedanekar | a890b67 | 2011-12-13 10:48:55 -0800 | [diff] [blame] | 38 | static void __init ti81xx_evm_init(void) |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 39 | { |
| 40 | omap_serial_init(); |
Tony Lindgren | a4ca9db | 2011-08-22 23:57:23 -0700 | [diff] [blame] | 41 | omap_sdrc_init(NULL, NULL); |
Hemant Pedanekar | a890b67 | 2011-12-13 10:48:55 -0800 | [diff] [blame] | 42 | omap_board_config = ti81xx_evm_config; |
| 43 | omap_board_config_size = ARRAY_SIZE(ti81xx_evm_config); |
Ravi Babu | f36217f | 2011-12-13 10:50:59 -0800 | [diff] [blame^] | 44 | usb_musb_init(&musb_board_data); |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 45 | } |
| 46 | |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 47 | MACHINE_START(TI8168EVM, "ti8168evm") |
| 48 | /* Maintainer: Texas Instruments */ |
Nicolas Pitre | 5e52b43 | 2011-07-05 22:38:15 -0400 | [diff] [blame] | 49 | .atag_offset = 0x100, |
Hemant Pedanekar | a920360 | 2011-12-13 10:46:44 -0800 | [diff] [blame] | 50 | .map_io = ti81xx_map_io, |
| 51 | .init_early = ti81xx_init_early, |
| 52 | .init_irq = ti81xx_init_irq, |
Tony Lindgren | e74984e | 2011-03-29 15:54:48 -0700 | [diff] [blame] | 53 | .timer = &omap3_timer, |
Hemant Pedanekar | a890b67 | 2011-12-13 10:48:55 -0800 | [diff] [blame] | 54 | .init_machine = ti81xx_evm_init, |
| 55 | MACHINE_END |
| 56 | |
| 57 | MACHINE_START(TI8148EVM, "ti8148evm") |
| 58 | /* Maintainer: Texas Instruments */ |
| 59 | .atag_offset = 0x100, |
| 60 | .map_io = ti81xx_map_io, |
| 61 | .init_early = ti81xx_init_early, |
| 62 | .init_irq = ti81xx_init_irq, |
| 63 | .timer = &omap3_timer, |
| 64 | .init_machine = ti81xx_evm_init, |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 65 | MACHINE_END |