int __init ardbeg_edp_init(void)
{
unsigned int regulator_mA;
+ struct board_info pmu_board_info;
+
+ tegra_get_pmu_board_info(&pmu_board_info);
regulator_mA = get_maximum_cpu_current_supported();
- if (!regulator_mA)
- regulator_mA = 14000;
+ if (!regulator_mA) {
+ if (pmu_board_info.board_id == BOARD_E1936)
+ regulator_mA = 16800;
+ else if (pmu_board_info.board_id == BOARD_PM374)
+ regulator_mA = 32000;
+ else
+ regulator_mA = 14000;
+ }
pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
tegra_init_cpu_edp_limits(regulator_mA);
/* gpu maximum current */
- regulator_mA = 12000;
- pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);
+ if (pmu_board_info.board_id == BOARD_E1936)
+ regulator_mA = 11200;
+ else if (pmu_board_info.board_id == BOARD_PM374)
+ regulator_mA = 16000;
+ else
+ regulator_mA = 12000;
+ pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);
tegra_init_gpu_edp_limits(regulator_mA);
+
return 0;
}
return 0;
}
-int __init norrin_edp_init(void)
-{
- unsigned int regulator_mA;
-
- regulator_mA = get_maximum_cpu_current_supported();
- if (!regulator_mA)
- regulator_mA = 15000;
-
- pr_info("%s: CPU regulator %d mA\n", __func__, regulator_mA);
-
- tegra_init_cpu_edp_limits(regulator_mA);
-
- /* gpu maximum current */
- regulator_mA = 8000;
- pr_info("%s: GPU regulator %d mA\n", __func__, regulator_mA);
-
- tegra_init_gpu_edp_limits(regulator_mA);
- return 0;
-}
-
static struct pid_thermal_gov_params soctherm_pid_params = {
.max_err_temp = 9000,
.max_err_gain = 1000,