arm: tegra: cardhu: Registering ISL29028 device
Laxman Dewangan [Tue, 22 Mar 2011 13:10:06 +0000 (18:10 +0530)]
Registering ALS and proximity sensor device ISL29028 on i2c bus 2.

Original-Change-Id: Ic538b3e59e6b62a797a81f51a1d11b0869318c5f
Reviewed-on: http://git-master/r/23848
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Original-Change-Id: I0d9474d4986d5284b589bb06eec106b32d90ea36

Rebase-Id: R5f645f094917d2f9c436740c2cd2b1aab655afd4

arch/arm/mach-tegra/board-cardhu-sensors.c

index 86a8d44..2c4531a 100644 (file)
@@ -440,6 +440,12 @@ static void cardhu_mpuirq_init(void)
 #endif
 
 
+static struct i2c_board_info cardhu_i2c2_isl_board_info[] = {
+       {
+               I2C_BOARD_INFO("isl29028", 0x44),
+       }
+};
+
 int __init cardhu_sensors_init(void)
 {
        int err;
@@ -463,6 +469,9 @@ int __init cardhu_sensors_init(void)
        i2c_register_board_info(4, cardhu_i2c4_board_info,
                ARRAY_SIZE(cardhu_i2c4_board_info));
 
+       i2c_register_board_info(2, cardhu_i2c2_isl_board_info,
+               ARRAY_SIZE(cardhu_i2c2_isl_board_info));
+
        err = cardhu_nct1008_init();
        if (err)
                return err;