]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-generic.c
Add mcbsp_clks used by other clocks to the clock list.
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-generic.c
index b937123e5c65dc7c093a3a296d6bb09a2d599131..6e7b13215c4cf3f7e852654c2bcd85a6eae142ca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * linux/arch/arm/mach-omap/omap2/board-generic.c
+ * linux/arch/arm/mach-omap2/board-generic.c
  *
  * Copyright (C) 2005 Nokia Corporation
  * Author: Paul Mundt <paul.mundt@nokia.com>
@@ -33,6 +33,7 @@
 
 static void __init omap_generic_init_irq(void)
 {
+       omap2_init_common_hw();
        omap_init_irq();
 }
 
@@ -50,7 +51,7 @@ static struct omap_mmc_config generic_mmc_config __initdata = {
        },
 };
 
-static struct omap_board_config_kernel generic_config[] = {
+static struct omap_board_config_kernel generic_config[] __initdata = {
        { OMAP_TAG_UART,        &generic_uart_config },
        { OMAP_TAG_MMC,         &generic_mmc_config },
 };
@@ -60,11 +61,14 @@ static void __init omap_generic_init(void)
        omap_board_config = generic_config;
        omap_board_config_size = ARRAY_SIZE(generic_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
+       omap_register_i2c_bus(2, 100, NULL, 0);
 }
 
 static void __init omap_generic_map_io(void)
 {
-       omap_map_common_io();
+       omap2_set_globals_242x(); /* should be 242x, 243x, or 343x */
+       omap2_map_common_io();
 }
 
 MACHINE_START(OMAP_GENERIC, "Generic OMAP24xx")