2 * linux/arch/arm/mach-omap2/board-omap3evm.c
4 * Copyright (C) 2008 Texas Instruments
6 * Modified from mach-omap2/board-3430sdp.c
8 * Initial code: Syed Mohammed Khasim
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <linux/kernel.h>
16 #include <linux/init.h>
17 #include <linux/platform_device.h>
18 #include <linux/delay.h>
19 #include <linux/err.h>
20 #include <linux/clk.h>
23 #include <asm/hardware.h>
24 #include <asm/mach-types.h>
25 #include <asm/mach/arch.h>
26 #include <asm/mach/map.h>
28 #include <asm/arch/gpio.h>
29 #include <asm/arch/board.h>
30 #include <asm/arch/hsmmc.h>
31 #include <asm/arch/common.h>
33 static struct omap_uart_config omap3_evm_uart_config __initdata = {
34 .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
37 static int __init omap3_evm_i2c_init(void)
39 omap_register_i2c_bus(1, 2600, NULL, 0);
40 omap_register_i2c_bus(2, 400, NULL, 0);
41 omap_register_i2c_bus(3, 400, NULL, 0);
45 static struct omap_mmc_config omap3_evm_mmc_config __initdata = {
52 static void __init omap3_evm_init_irq(void)
54 omap2_init_common_hw();
59 static struct omap_board_config_kernel omap3_evm_config[] __initdata = {
60 { OMAP_TAG_UART, &omap3_evm_uart_config },
61 { OMAP_TAG_MMC, &omap3_evm_mmc_config },
64 static void __init omap3_evm_init(void)
66 omap_board_config = omap3_evm_config;
67 omap_board_config_size = ARRAY_SIZE(omap3_evm_config);
72 arch_initcall(omap3_evm_i2c_init);
74 static void __init omap3_evm_map_io(void)
76 omap2_set_globals_343x();
77 omap2_map_common_io();
80 MACHINE_START(OMAP3EVM, "OMAP3 EVM")
81 /* Maintainer: Syed Mohammed Khasim - Texas Instruments */
82 .phys_io = 0x48000000,
83 .io_pg_offst = ((0xd8000000) >> 18) & 0xfffc,
84 .boot_params = 0x80000100,
85 .map_io = omap3_evm_map_io,
86 .init_irq = omap3_evm_init_irq,
87 .init_machine = omap3_evm_init,