aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-innovator.c')
-rw-r--r--arch/arm/mach-omap1/board-innovator.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c
index 0b1ba462d388..309369ea6978 100644
--- a/arch/arm/mach-omap1/board-innovator.c
+++ b/arch/arm/mach-omap1/board-innovator.c
@@ -15,7 +15,7 @@
15 * it under the terms of the GNU General Public License version 2 as 15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation. 16 * published by the Free Software Foundation.
17 */ 17 */
18 18#include <linux/gpio.h>
19#include <linux/kernel.h> 19#include <linux/kernel.h>
20#include <linux/init.h> 20#include <linux/init.h>
21#include <linux/platform_device.h> 21#include <linux/platform_device.h>
@@ -34,11 +34,10 @@
34#include <plat/mux.h> 34#include <plat/mux.h>
35#include <plat/flash.h> 35#include <plat/flash.h>
36#include <plat/fpga.h> 36#include <plat/fpga.h>
37#include <mach/gpio.h>
38#include <plat/tc.h> 37#include <plat/tc.h>
39#include <plat/usb.h> 38#include <plat/usb.h>
40#include <plat/keypad.h> 39#include <plat/keypad.h>
41#include <plat/common.h> 40#include "common.h"
42#include <plat/mmc.h> 41#include <plat/mmc.h>
43 42
44/* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ 43/* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */
@@ -289,12 +288,6 @@ static void __init innovator_init_smc91x(void)
289 } 288 }
290} 289}
291 290
292static void __init innovator_init_irq(void)
293{
294 omap1_init_common_hw();
295 omap1_init_irq();
296}
297
298#ifdef CONFIG_ARCH_OMAP15XX 291#ifdef CONFIG_ARCH_OMAP15XX
299static struct omap_usb_config innovator1510_usb_config __initdata = { 292static struct omap_usb_config innovator1510_usb_config __initdata = {
300 /* for bundled non-standard host and peripheral cables */ 293 /* for bundled non-standard host and peripheral cables */
@@ -439,30 +432,33 @@ static void __init innovator_init(void)
439 innovator_mmc_init(); 432 innovator_mmc_init();
440} 433}
441 434
435/*
436 * REVISIT: Assume 15xx for now, we don't want to do revision check
437 * until later on. The right way to fix this is to set up a different
438 * machine_id for 16xx Innovator, or use device tree.
439 */
442static void __init innovator_map_io(void) 440static void __init innovator_map_io(void)
443{ 441{
444 omap1_map_common_io(); 442 omap15xx_map_io();
445 443
446#ifdef CONFIG_ARCH_OMAP15XX 444 iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc));
447 if (cpu_is_omap1510()) { 445 udelay(10); /* Delay needed for FPGA */
448 iotable_init(innovator1510_io_desc, ARRAY_SIZE(innovator1510_io_desc)); 446
449 udelay(10); /* Delay needed for FPGA */ 447 /* Dump the Innovator FPGA rev early - useful info for support. */
450 448 pr_debug("Innovator FPGA Rev %d.%d Board Rev %d\n",
451 /* Dump the Innovator FPGA rev early - useful info for support. */ 449 fpga_read(OMAP1510_FPGA_REV_HIGH),
452 printk("Innovator FPGA Rev %d.%d Board Rev %d\n", 450 fpga_read(OMAP1510_FPGA_REV_LOW),
453 fpga_read(OMAP1510_FPGA_REV_HIGH), 451 fpga_read(OMAP1510_FPGA_BOARD_REV));
454 fpga_read(OMAP1510_FPGA_REV_LOW),
455 fpga_read(OMAP1510_FPGA_BOARD_REV));
456 }
457#endif
458} 452}
459 453
460MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") 454MACHINE_START(OMAP_INNOVATOR, "TI-Innovator")
461 /* Maintainer: MontaVista Software, Inc. */ 455 /* Maintainer: MontaVista Software, Inc. */
462 .boot_params = 0x10000100, 456 .atag_offset = 0x100,
463 .map_io = innovator_map_io, 457 .map_io = innovator_map_io,
458 .init_early = omap1_init_early,
464 .reserve = omap_reserve, 459 .reserve = omap_reserve,
465 .init_irq = innovator_init_irq, 460 .init_irq = omap1_init_irq,
466 .init_machine = innovator_init, 461 .init_machine = innovator_init,
467 .timer = &omap1_timer, 462 .timer = &omap1_timer,
463 .restart = omap1_restart,
468MACHINE_END 464MACHINE_END