ARM: tegra: tn8: disable CM32181 registration
Daniel Fu [Mon, 2 Sep 2013 08:50:48 +0000 (16:50 +0800)]
ALS will not support on TN8 by now.
Disable CM32181 registartion on TN8.
Remove CM32181 power entry in TN8 power board-file.

Bug 1359627

Change-Id: I6fd1ef4e5a68ff394bab3586b36303a55ff0fc1e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/269027
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/mach-tegra/board-ardbeg-sensors.c
arch/arm/mach-tegra/board-tn8-power.c

index a4d88e5..722bce7 100644 (file)
@@ -747,7 +747,9 @@ int __init ardbeg_sensors_init(void)
        ardbeg_camera_init();
        ardbeg_nct72_init();
 
-       i2c_register_board_info(0, ardbeg_i2c_board_info_cm32181,
+       /* TN8 don't have ALS CM32181 */
+       if (!of_machine_is_compatible("nvidia,tn8"))
+               i2c_register_board_info(0, ardbeg_i2c_board_info_cm32181,
                        ARRAY_SIZE(ardbeg_i2c_board_info_cm32181));
 
        if (get_power_supply_type() == POWER_SUPPLY_TYPE_BATTERY)
index c5ef415..ee9ae37 100644 (file)
@@ -123,7 +123,6 @@ static struct regulator_consumer_supply palmas_smps8_supply[] = {
        REGULATOR_SUPPLY("pwrdet_uart", NULL),
        REGULATOR_SUPPLY("vddio_bb", NULL),
        REGULATOR_SUPPLY("pwrdet_bb", NULL),
-       REGULATOR_SUPPLY("vdd_1v8b", "0-0048"),
        REGULATOR_SUPPLY("vdd_dtv", NULL),
        REGULATOR_SUPPLY("vdd_1v8_eeprom", NULL),
        REGULATOR_SUPPLY("vddio_cam", "tegra_camera"),