ARM: tegra: pm375: update the minor rev of pmic
Bibek Basu [Tue, 25 Feb 2014 17:09:02 +0000 (22:09 +0530)]
Update the  minor revision of pmic based in board_id

Bug 1454434

Change-Id: I986aa1183ff8aa06962f151f40aa2575b3901f6e
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/374342
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
GVS: Gerrit_Virtual_Submit

arch/arm/mach-tegra/board-laguna-power.c

index 42dcede..5eae68f 100644 (file)
@@ -327,8 +327,10 @@ int __init laguna_as3722_regulator_init(void)
        as3722_ldo3_reg_pdata.enable_tracking = true;
        as3722_ldo3_reg_pdata.disable_tracking_suspend = true;
 
-       if ((board_info.board_id == BOARD_PM359) &&
-                               (board_info.major_revision == 'C'))
+       if (board_info.board_id == BOARD_PM375 ||
+           board_info.board_id == BOARD_PM377 ||
+           ((board_info.board_id == BOARD_PM359) &&
+            (board_info.major_revision == 'C')))
                as3722_pdata.minor_rev = 2;
 
        printk(KERN_INFO "%s: i2c_register_board_info\n",