]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: N800: Use I2C bus registration helper
authorJarkko Nikula <jarkko.nikula@nokia.com>
Wed, 7 Nov 2007 10:54:33 +0000 (12:54 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2007 21:57:15 +0000 (13:57 -0800)
Use 400 kHz bus clock for both busses since board components are rated
for it.

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>
arch/arm/mach-omap2/board-n800.c

index 061877fb867267049a687f7ef55dc2a8b90e6545..1604513271b2d9d474af6add267a2a92daa9983d 100644 (file)
@@ -452,12 +452,6 @@ static void __init nokia_n800_init(void)
 {
        platform_add_devices(n800_devices, ARRAY_SIZE(n800_devices));
 
-       i2c_register_board_info(1, n800_i2c_board_info_1,
-                               ARRAY_SIZE(n800_i2c_board_info_1));
-
-       i2c_register_board_info(2, n800_i2c_board_info_2,
-                               ARRAY_SIZE(n800_i2c_board_info_2));
-
        n800_flash_init();
        n800_mmc_init();
        n800_bt_init();
@@ -469,6 +463,10 @@ static void __init nokia_n800_init(void)
        spi_register_board_info(n800_spi_board_info,
                                ARRAY_SIZE(n800_spi_board_info));
        omap_serial_init();
+       omap_register_i2c_bus(1, 400, n800_i2c_board_info_1,
+                             ARRAY_SIZE(n800_i2c_board_info_1));
+       omap_register_i2c_bus(2, 400, n800_i2c_board_info_2,
+                             ARRAY_SIZE(n800_i2c_board_info_2));
        mipid_dev_init();
        blizzard_dev_init();
        tsc2301_dev_init();