ARM: OMAP1: Use I2C bus registration helper for omap1
authorJarkko Nikula <jarkko.nikula@nokia.com>
Wed, 7 Nov 2007 04:54:32 +0000 (06:54 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Feb 2008 18:38:01 +0000 (10:38 -0800)
This patch starts using introduced I2C bus registration helper by cleaning
up registration currently done in various places and by doing necessary
board file modifications.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 files changed:
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/board-fsample.c
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-h3.c
arch/arm/mach-omap1/board-innovator.c
arch/arm/mach-omap1/board-nokia770.c
arch/arm/mach-omap1/board-osk.c
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/board-palmtt.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-perseus2.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap1/board-voiceblue.c

index 6aac72dc430613a1988346bd72383bb7a077fe41..8b102ad59c147bc43999a26f59976ae9a9524caf 100644 (file)
@@ -227,6 +227,7 @@ static void __init ams_delta_init(void)
        omap_board_config = ams_delta_config;
        omap_board_config_size = ARRAY_SIZE(ams_delta_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 
        /* Clear latch2 (NAND, LCD, modem enable) */
        ams_delta_latch2_write(~0, 0);
index 4f4640ba2a97134fdaa38dd44b08c3de97f265ef..1bdb66638e29cdf5546ad171d85af3343f5d50ec 100644 (file)
@@ -234,6 +234,7 @@ static void __init omap_fsample_init(void)
        omap_board_config = fsample_config;
        omap_board_config_size = ARRAY_SIZE(fsample_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 }
 
 static void __init fsample_init_smc91x(void)
index 33d01adab1ed6338c1608d33de4733304084aae7..005bf0e3e1e3ea0c2848261259e946231cd8d73b 100644 (file)
@@ -101,6 +101,7 @@ 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);
 }
 
 static void __init omap_generic_map_io(void)
index ab6e68b00064fef99713684a35b045cb34977e02..00b7623b9b0c72cc5956b02a88a9643dda5c77b5 100644 (file)
@@ -458,17 +458,14 @@ static void __init h2_init(void)
        omap_board_config = h2_config;
        omap_board_config_size = ARRAY_SIZE(h2_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, h2_i2c_board_info,
+                             ARRAY_SIZE(h2_i2c_board_info));
        h2_mmc_init();
 
        /* irq for tps65010 chip */
        omap_cfg_reg(W4_GPIO58);
        if (gpio_request(58, "tps65010") == 0)
                gpio_direction_input(58);
-
-#ifdef CONFIG_I2C_BOARDINFO
-       i2c_register_board_info(1, h2_i2c_board_info,
-                       ARRAY_SIZE(h2_i2c_board_info));
-#endif
 }
 
 static void __init h2_map_io(void)
index f28f05d6760dfbf95c8d57267ef3241c36b934b8..7cf6ccd4e7ffd89858c7b7633e59082f0383b630 100644 (file)
@@ -517,11 +517,9 @@ static void __init h3_init(void)
        omap_board_config = h3_config;
        omap_board_config_size = ARRAY_SIZE(h3_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, h3_i2c_board_info,
+                             ARRAY_SIZE(h3_i2c_board_info));
        h3_mmc_init();
-
-       /* FIXME setup irq for tps65013 chip */
-       i2c_register_board_info(1, h3_i2c_board_info,
-                       ARRAY_SIZE(h3_i2c_board_info));
 }
 
 static void __init h3_init_smc91x(void)
index 92c14d364b5126690028fd129ab62ae7702b4363..4b8ae3ee0d05f420c66f4689e3bb5db5fd76eb32 100644 (file)
@@ -411,6 +411,7 @@ static void __init innovator_init(void)
        omap_board_config = innovator_config;
        omap_board_config_size = ARRAY_SIZE(innovator_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 }
 
 static void __init innovator_map_io(void)
index e2c8ffd75cff45ceaa6a28f00acf2fc58edbdc2f..9e8cdd4bd7dc97a34a1da6d3ca83fca93593eed5 100644 (file)
@@ -330,6 +330,7 @@ static void __init omap_nokia770_init(void)
        omap_board_config_size = ARRAY_SIZE(nokia770_config);
        omap_gpio_init();
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
        omap_dsp_init();
        ads7846_dev_init();
        mipid_dev_init();
index e1f813d4417db9337eb476a1c4aec3213a1d0928..effa176be57b9a6dbef31f6b115d37e3a672f187 100644 (file)
@@ -473,10 +473,9 @@ static void __init osk_init(void)
        if (gpio_request(OMAP_MPUIO(1), "tps65010") == 0)
                gpio_direction_input(OMAP_MPUIO(1));
 
-       i2c_register_board_info(1, osk_i2c_board_info,
-                       ARRAY_SIZE(osk_i2c_board_info));
-
        omap_serial_init();
+       omap_register_i2c_bus(1, 400, osk_i2c_board_info,
+                             ARRAY_SIZE(osk_i2c_board_info));
        osk_mistral_init();
 }
 
index 2f9d00a001351da0b4806dc524beed96ce58d2b0..f392f5a014ea09020b6656dd636dccaac69be5ab 100644 (file)
@@ -419,6 +419,7 @@ static void __init omap_palmte_init(void)
        spi_register_board_info(palmte_spi_info, ARRAY_SIZE(palmte_spi_info));
 
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
        palmte_gpio_setup();
 }
 
index 772daed493c195dde978b92ce8bf1b5350b40bfc..e9a1ef52f8870f9f8c87fff6c0b165bbf9947998 100644 (file)
@@ -338,6 +338,7 @@ static void __init omap_palmtt_init(void)
 
        spi_register_board_info(palmtt_boardinfo,ARRAY_SIZE(palmtt_boardinfo));
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 }
 
 static void __init omap_palmtt_map_io(void)
index a9a0f6610c3deef2427ee72f6b80ae7c1885c53e..2e1dbfc28efe555d4ec1b7dc85e08cf8002be9c6 100644 (file)
@@ -363,6 +363,7 @@ omap_palmz71_init(void)
        spi_register_board_info(palmz71_boardinfo,
                                ARRAY_SIZE(palmz71_boardinfo));
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
        palmz71_gpio_setup(0);
 }
 
index e79749df434be7426f2dacd3e9bdaf8a5467f3e7..cafe91f06ab82bc13e1d2d1c269de5b7529002c9 100644 (file)
@@ -234,6 +234,7 @@ static void __init omap_perseus2_init(void)
        omap_board_config = perseus2_config;
        omap_board_config_size = ARRAY_SIZE(perseus2_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 }
 
 static void __init perseus2_init_smc91x(void)
index be3ecd8c890e302e3c458ce91dc165722baceec9..faa99b54c1ec422e4b5d4fe24df82fa5f54f9f57 100644 (file)
@@ -442,6 +442,7 @@ static void __init omap_sx1_init(void)
        omap_board_config = sx1_config;
        omap_board_config_size = ARRAY_SIZE(sx1_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
        sx1_mmc_init();
 
        /* turn on USB power */
index c82a1cd20ad4a9e435e0619a6cf087ef68d94993..02cac41aa5a7fc38b7dd313df1241710bc28e27e 100644 (file)
@@ -198,6 +198,7 @@ static void __init voiceblue_init(void)
        omap_board_config = voiceblue_config;
        omap_board_config_size = ARRAY_SIZE(voiceblue_config);
        omap_serial_init();
+       omap_register_i2c_bus(1, 100, NULL, 0);
 
        /* There is a good chance board is going up, so enable power LED
         * (it is connected through invertor) */