arm: tegra3: change max current to 10000mA for T33
Naveen Kumar S [Thu, 2 May 2013 10:44:47 +0000 (15:44 +0530)]
6000mA is the max current for regular T30 SOCs. Conditionally changing
it to 10000mA for T33 SOCs to avoid passing the command line parameter
max_cpu_cur_ma=10000 explicitly.

Bug 1166110

Change-Id: I453c8e128a6cf32f10e0f6e4a577b857d38d8e4d
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/245335
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

index 7ff5465..4d3cbd1 100644 (file)
@@ -39,6 +39,7 @@
 #include <mach/edp.h>
 #include <mach/gpio-tegra.h>
 #include <mach/pinmux-tegra30.h>
+#include <mach/hardware.h>
 
 #include "gpio-names.h"
 #include "board.h"
@@ -1311,7 +1312,12 @@ int __init cardhu_edp_init(void)
 
        regulator_mA = get_maximum_cpu_current_supported();
        if (!regulator_mA) {
-               regulator_mA = 6000; /* regular T30/s */
+               if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA3) {
+                       if (tegra_get_minor_rev() == 0x03) /* T33 */
+                               regulator_mA = 10000;
+                       else
+                               regulator_mA = 6000; /* regular T30/s */
+               }
        }
        pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);