Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Code for TI8168 EVM. |
| 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> |
| 25 | #include <plat/common.h> |
| 26 | |
| 27 | static struct omap_board_config_kernel ti8168_evm_config[] __initdata = { |
| 28 | }; |
| 29 | |
Tony Lindgren | e811d32 | 2011-02-16 08:45:46 -0800 | [diff] [blame] | 30 | static void __init ti8168_init_early(void) |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 31 | { |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 32 | omap2_init_common_infrastructure(); |
| 33 | omap2_init_common_devices(NULL, NULL); |
Tony Lindgren | e811d32 | 2011-02-16 08:45:46 -0800 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | static void __init ti8168_evm_init_irq(void) |
| 37 | { |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 38 | omap_init_irq(); |
| 39 | } |
| 40 | |
| 41 | static void __init ti8168_evm_init(void) |
| 42 | { |
| 43 | omap_serial_init(); |
Tony Lindgren | e41cccf | 2011-02-24 14:36:03 -0800 | [diff] [blame] | 44 | omap_board_config = ti8168_evm_config; |
| 45 | omap_board_config_size = ARRAY_SIZE(ti8168_evm_config); |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | static void __init ti8168_evm_map_io(void) |
| 49 | { |
| 50 | omap2_set_globals_ti816x(); |
| 51 | omapti816x_map_common_io(); |
| 52 | } |
| 53 | |
| 54 | MACHINE_START(TI8168EVM, "ti8168evm") |
| 55 | /* Maintainer: Texas Instruments */ |
| 56 | .boot_params = 0x80000100, |
| 57 | .map_io = ti8168_evm_map_io, |
Tony Lindgren | e811d32 | 2011-02-16 08:45:46 -0800 | [diff] [blame] | 58 | .init_early = ti8168_init_early, |
Hemant Pedanekar | 2c87fb2 | 2011-02-15 23:06:08 +0530 | [diff] [blame] | 59 | .init_irq = ti8168_evm_init_irq, |
| 60 | .timer = &omap_timer, |
| 61 | .init_machine = ti8168_evm_init, |
| 62 | MACHINE_END |